@@ -218,175 +218,175 @@ fn unhandled_interrupt(irq_number: u8) {
218
218
increment_irq_counter ( ( 32 + irq_number) . into ( ) ) ;
219
219
}
220
220
221
- extern "x86-interrupt" fn unhandled_interrupt0 ( _stack_frame : & mut ExceptionStackFrame ) {
221
+ extern "x86-interrupt" fn unhandled_interrupt0 ( _stack_frame : ExceptionStackFrame ) {
222
222
unhandled_interrupt ( 0 ) ;
223
223
}
224
224
225
- extern "x86-interrupt" fn unhandled_interrupt1 ( _stack_frame : & mut ExceptionStackFrame ) {
225
+ extern "x86-interrupt" fn unhandled_interrupt1 ( _stack_frame : ExceptionStackFrame ) {
226
226
unhandled_interrupt ( 1 ) ;
227
227
}
228
228
229
- extern "x86-interrupt" fn unhandled_interrupt2 ( _stack_frame : & mut ExceptionStackFrame ) {
229
+ extern "x86-interrupt" fn unhandled_interrupt2 ( _stack_frame : ExceptionStackFrame ) {
230
230
unhandled_interrupt ( 2 ) ;
231
231
}
232
232
233
- extern "x86-interrupt" fn unhandled_interrupt3 ( _stack_frame : & mut ExceptionStackFrame ) {
233
+ extern "x86-interrupt" fn unhandled_interrupt3 ( _stack_frame : ExceptionStackFrame ) {
234
234
unhandled_interrupt ( 3 ) ;
235
235
}
236
236
237
- extern "x86-interrupt" fn unhandled_interrupt4 ( _stack_frame : & mut ExceptionStackFrame ) {
237
+ extern "x86-interrupt" fn unhandled_interrupt4 ( _stack_frame : ExceptionStackFrame ) {
238
238
unhandled_interrupt ( 4 ) ;
239
239
}
240
240
241
- extern "x86-interrupt" fn unhandled_interrupt5 ( _stack_frame : & mut ExceptionStackFrame ) {
241
+ extern "x86-interrupt" fn unhandled_interrupt5 ( _stack_frame : ExceptionStackFrame ) {
242
242
unhandled_interrupt ( 5 ) ;
243
243
}
244
244
245
- extern "x86-interrupt" fn unhandled_interrupt6 ( _stack_frame : & mut ExceptionStackFrame ) {
245
+ extern "x86-interrupt" fn unhandled_interrupt6 ( _stack_frame : ExceptionStackFrame ) {
246
246
unhandled_interrupt ( 6 ) ;
247
247
}
248
248
249
- extern "x86-interrupt" fn unhandled_interrupt7 ( _stack_frame : & mut ExceptionStackFrame ) {
249
+ extern "x86-interrupt" fn unhandled_interrupt7 ( _stack_frame : ExceptionStackFrame ) {
250
250
unhandled_interrupt ( 7 ) ;
251
251
}
252
252
253
- extern "x86-interrupt" fn unhandled_interrupt8 ( _stack_frame : & mut ExceptionStackFrame ) {
253
+ extern "x86-interrupt" fn unhandled_interrupt8 ( _stack_frame : ExceptionStackFrame ) {
254
254
unhandled_interrupt ( 8 ) ;
255
255
}
256
256
257
- extern "x86-interrupt" fn unhandled_interrupt9 ( _stack_frame : & mut ExceptionStackFrame ) {
257
+ extern "x86-interrupt" fn unhandled_interrupt9 ( _stack_frame : ExceptionStackFrame ) {
258
258
unhandled_interrupt ( 9 ) ;
259
259
}
260
260
261
- extern "x86-interrupt" fn unhandled_interrupt10 ( _stack_frame : & mut ExceptionStackFrame ) {
261
+ extern "x86-interrupt" fn unhandled_interrupt10 ( _stack_frame : ExceptionStackFrame ) {
262
262
unhandled_interrupt ( 10 ) ;
263
263
}
264
264
265
- extern "x86-interrupt" fn unhandled_interrupt11 ( _stack_frame : & mut ExceptionStackFrame ) {
265
+ extern "x86-interrupt" fn unhandled_interrupt11 ( _stack_frame : ExceptionStackFrame ) {
266
266
unhandled_interrupt ( 11 ) ;
267
267
}
268
268
269
- extern "x86-interrupt" fn unhandled_interrupt12 ( _stack_frame : & mut ExceptionStackFrame ) {
269
+ extern "x86-interrupt" fn unhandled_interrupt12 ( _stack_frame : ExceptionStackFrame ) {
270
270
unhandled_interrupt ( 12 ) ;
271
271
}
272
272
273
- extern "x86-interrupt" fn unhandled_interrupt13 ( _stack_frame : & mut ExceptionStackFrame ) {
273
+ extern "x86-interrupt" fn unhandled_interrupt13 ( _stack_frame : ExceptionStackFrame ) {
274
274
unhandled_interrupt ( 13 ) ;
275
275
}
276
276
277
- extern "x86-interrupt" fn unhandled_interrupt14 ( _stack_frame : & mut ExceptionStackFrame ) {
277
+ extern "x86-interrupt" fn unhandled_interrupt14 ( _stack_frame : ExceptionStackFrame ) {
278
278
unhandled_interrupt ( 14 ) ;
279
279
}
280
280
281
- extern "x86-interrupt" fn unhandled_interrupt15 ( _stack_frame : & mut ExceptionStackFrame ) {
281
+ extern "x86-interrupt" fn unhandled_interrupt15 ( _stack_frame : ExceptionStackFrame ) {
282
282
unhandled_interrupt ( 15 ) ;
283
283
}
284
284
285
- extern "x86-interrupt" fn unhandled_interrupt16 ( _stack_frame : & mut ExceptionStackFrame ) {
285
+ extern "x86-interrupt" fn unhandled_interrupt16 ( _stack_frame : ExceptionStackFrame ) {
286
286
unhandled_interrupt ( 16 ) ;
287
287
}
288
288
289
- extern "x86-interrupt" fn unhandled_interrupt17 ( _stack_frame : & mut ExceptionStackFrame ) {
289
+ extern "x86-interrupt" fn unhandled_interrupt17 ( _stack_frame : ExceptionStackFrame ) {
290
290
unhandled_interrupt ( 17 ) ;
291
291
}
292
292
293
- extern "x86-interrupt" fn unhandled_interrupt18 ( _stack_frame : & mut ExceptionStackFrame ) {
293
+ extern "x86-interrupt" fn unhandled_interrupt18 ( _stack_frame : ExceptionStackFrame ) {
294
294
unhandled_interrupt ( 18 ) ;
295
295
}
296
296
297
- extern "x86-interrupt" fn unhandled_interrupt19 ( _stack_frame : & mut ExceptionStackFrame ) {
297
+ extern "x86-interrupt" fn unhandled_interrupt19 ( _stack_frame : ExceptionStackFrame ) {
298
298
unhandled_interrupt ( 19 ) ;
299
299
}
300
300
301
- extern "x86-interrupt" fn unhandled_interrupt20 ( _stack_frame : & mut ExceptionStackFrame ) {
301
+ extern "x86-interrupt" fn unhandled_interrupt20 ( _stack_frame : ExceptionStackFrame ) {
302
302
unhandled_interrupt ( 20 ) ;
303
303
}
304
304
305
- extern "x86-interrupt" fn unhandled_interrupt21 ( _stack_frame : & mut ExceptionStackFrame ) {
305
+ extern "x86-interrupt" fn unhandled_interrupt21 ( _stack_frame : ExceptionStackFrame ) {
306
306
unhandled_interrupt ( 21 ) ;
307
307
}
308
308
309
- extern "x86-interrupt" fn unhandled_interrupt22 ( _stack_frame : & mut ExceptionStackFrame ) {
309
+ extern "x86-interrupt" fn unhandled_interrupt22 ( _stack_frame : ExceptionStackFrame ) {
310
310
unhandled_interrupt ( 22 ) ;
311
311
}
312
312
313
- extern "x86-interrupt" fn unhandled_interrupt23 ( _stack_frame : & mut ExceptionStackFrame ) {
313
+ extern "x86-interrupt" fn unhandled_interrupt23 ( _stack_frame : ExceptionStackFrame ) {
314
314
unhandled_interrupt ( 23 ) ;
315
315
}
316
316
317
- extern "x86-interrupt" fn unhandled_interrupt24 ( _stack_frame : & mut ExceptionStackFrame ) {
317
+ extern "x86-interrupt" fn unhandled_interrupt24 ( _stack_frame : ExceptionStackFrame ) {
318
318
unhandled_interrupt ( 24 ) ;
319
319
}
320
320
321
- extern "x86-interrupt" fn unhandled_interrupt25 ( _stack_frame : & mut ExceptionStackFrame ) {
321
+ extern "x86-interrupt" fn unhandled_interrupt25 ( _stack_frame : ExceptionStackFrame ) {
322
322
unhandled_interrupt ( 25 ) ;
323
323
}
324
324
325
- extern "x86-interrupt" fn unhandled_interrupt26 ( _stack_frame : & mut ExceptionStackFrame ) {
325
+ extern "x86-interrupt" fn unhandled_interrupt26 ( _stack_frame : ExceptionStackFrame ) {
326
326
unhandled_interrupt ( 26 ) ;
327
327
}
328
328
329
- extern "x86-interrupt" fn unhandled_interrupt27 ( _stack_frame : & mut ExceptionStackFrame ) {
329
+ extern "x86-interrupt" fn unhandled_interrupt27 ( _stack_frame : ExceptionStackFrame ) {
330
330
unhandled_interrupt ( 27 ) ;
331
331
}
332
332
333
- extern "x86-interrupt" fn unhandled_interrupt28 ( _stack_frame : & mut ExceptionStackFrame ) {
333
+ extern "x86-interrupt" fn unhandled_interrupt28 ( _stack_frame : ExceptionStackFrame ) {
334
334
unhandled_interrupt ( 28 ) ;
335
335
}
336
336
337
- extern "x86-interrupt" fn unhandled_interrupt29 ( _stack_frame : & mut ExceptionStackFrame ) {
337
+ extern "x86-interrupt" fn unhandled_interrupt29 ( _stack_frame : ExceptionStackFrame ) {
338
338
unhandled_interrupt ( 29 ) ;
339
339
}
340
340
341
- extern "x86-interrupt" fn unhandled_interrupt30 ( _stack_frame : & mut ExceptionStackFrame ) {
341
+ extern "x86-interrupt" fn unhandled_interrupt30 ( _stack_frame : ExceptionStackFrame ) {
342
342
unhandled_interrupt ( 30 ) ;
343
343
}
344
344
345
- extern "x86-interrupt" fn unhandled_interrupt31 ( _stack_frame : & mut ExceptionStackFrame ) {
345
+ extern "x86-interrupt" fn unhandled_interrupt31 ( _stack_frame : ExceptionStackFrame ) {
346
346
unhandled_interrupt ( 31 ) ;
347
347
}
348
348
349
- extern "x86-interrupt" fn unknown_interrupt ( _stack_frame : & mut ExceptionStackFrame ) {
349
+ extern "x86-interrupt" fn unknown_interrupt ( _stack_frame : ExceptionStackFrame ) {
350
350
info ! ( "Receive unknown interrupt" ) ;
351
351
apic:: eoi ( ) ;
352
352
}
353
353
354
- extern "x86-interrupt" fn divide_error_exception ( stack_frame : & mut ExceptionStackFrame ) {
354
+ extern "x86-interrupt" fn divide_error_exception ( stack_frame : ExceptionStackFrame ) {
355
355
error ! ( "Divide Error (#DE) Exception: {:#?}" , stack_frame) ;
356
356
scheduler:: abort ( ) ;
357
357
}
358
358
359
- extern "x86-interrupt" fn debug_exception ( stack_frame : & mut ExceptionStackFrame ) {
359
+ extern "x86-interrupt" fn debug_exception ( stack_frame : ExceptionStackFrame ) {
360
360
error ! ( "Debug (#DB) Exception: {:#?}" , stack_frame) ;
361
361
scheduler:: abort ( ) ;
362
362
}
363
363
364
- extern "x86-interrupt" fn nmi_exception ( stack_frame : & mut ExceptionStackFrame ) {
364
+ extern "x86-interrupt" fn nmi_exception ( stack_frame : ExceptionStackFrame ) {
365
365
error ! ( "Non-Maskable Interrupt (NMI) Exception: {:#?}" , stack_frame) ;
366
366
scheduler:: abort ( ) ;
367
367
}
368
368
369
- extern "x86-interrupt" fn breakpoint_exception ( stack_frame : & mut ExceptionStackFrame ) {
369
+ extern "x86-interrupt" fn breakpoint_exception ( stack_frame : ExceptionStackFrame ) {
370
370
error ! ( "Breakpoint (#BP) Exception: {:#?}" , stack_frame) ;
371
371
scheduler:: abort ( ) ;
372
372
}
373
373
374
- extern "x86-interrupt" fn overflow_exception ( stack_frame : & mut ExceptionStackFrame ) {
374
+ extern "x86-interrupt" fn overflow_exception ( stack_frame : ExceptionStackFrame ) {
375
375
error ! ( "Overflow (#OF) Exception: {:#?}" , stack_frame) ;
376
376
scheduler:: abort ( ) ;
377
377
}
378
378
379
- extern "x86-interrupt" fn bound_range_exceeded_exception ( stack_frame : & mut ExceptionStackFrame ) {
379
+ extern "x86-interrupt" fn bound_range_exceeded_exception ( stack_frame : ExceptionStackFrame ) {
380
380
error ! ( "BOUND Range Exceeded (#BR) Exception: {:#?}" , stack_frame) ;
381
381
scheduler:: abort ( ) ;
382
382
}
383
383
384
- extern "x86-interrupt" fn invalid_opcode_exception ( stack_frame : & mut ExceptionStackFrame ) {
384
+ extern "x86-interrupt" fn invalid_opcode_exception ( stack_frame : ExceptionStackFrame ) {
385
385
error ! ( "Invalid Opcode (#UD) Exception: {:#?}" , stack_frame) ;
386
386
scheduler:: abort ( ) ;
387
387
}
388
388
389
- extern "x86-interrupt" fn device_not_available_exception ( _stack_frame : & mut ExceptionStackFrame ) {
389
+ extern "x86-interrupt" fn device_not_available_exception ( _stack_frame : ExceptionStackFrame ) {
390
390
// We set the CR0_TASK_SWITCHED flag every time we switch to a task.
391
391
// This causes the "Device Not Available" Exception (int #7) to be thrown as soon as we use the FPU for the first time.
392
392
@@ -402,7 +402,7 @@ extern "x86-interrupt" fn device_not_available_exception(_stack_frame: &mut Exce
402
402
}
403
403
404
404
extern "x86-interrupt" fn double_fault_exception (
405
- stack_frame : & mut ExceptionStackFrame ,
405
+ stack_frame : ExceptionStackFrame ,
406
406
error_code : u64 ,
407
407
) {
408
408
error ! (
@@ -412,28 +412,26 @@ extern "x86-interrupt" fn double_fault_exception(
412
412
scheduler:: abort ( ) ;
413
413
}
414
414
415
- extern "x86-interrupt" fn coprocessor_segment_overrun_exception (
416
- stack_frame : & mut ExceptionStackFrame ,
417
- ) {
415
+ extern "x86-interrupt" fn coprocessor_segment_overrun_exception ( stack_frame : ExceptionStackFrame ) {
418
416
error ! (
419
417
"CoProcessor Segment Overrun (#MF) Exception: {:#?}" ,
420
418
stack_frame
421
419
) ;
422
420
scheduler:: abort ( ) ;
423
421
}
424
422
425
- extern "x86-interrupt" fn invalid_tss_exception ( stack_frame : & mut ExceptionStackFrame ) {
423
+ extern "x86-interrupt" fn invalid_tss_exception ( stack_frame : ExceptionStackFrame ) {
426
424
error ! ( "Invalid TSS (#TS) Exception: {:#?}" , stack_frame) ;
427
425
scheduler:: abort ( ) ;
428
426
}
429
427
430
- extern "x86-interrupt" fn segment_not_present_exception ( stack_frame : & mut ExceptionStackFrame ) {
428
+ extern "x86-interrupt" fn segment_not_present_exception ( stack_frame : ExceptionStackFrame ) {
431
429
error ! ( "Segment Not Present (#NP) Exception: {:#?}" , stack_frame) ;
432
430
scheduler:: abort ( ) ;
433
431
}
434
432
435
433
extern "x86-interrupt" fn stack_segment_fault_exception (
436
- stack_frame : & mut ExceptionStackFrame ,
434
+ stack_frame : ExceptionStackFrame ,
437
435
error_code : u64 ,
438
436
) {
439
437
error ! (
@@ -444,7 +442,7 @@ extern "x86-interrupt" fn stack_segment_fault_exception(
444
442
}
445
443
446
444
extern "x86-interrupt" fn general_protection_exception (
447
- stack_frame : & mut ExceptionStackFrame ,
445
+ stack_frame : ExceptionStackFrame ,
448
446
error_code : u64 ,
449
447
) {
450
448
error ! (
@@ -459,32 +457,32 @@ extern "x86-interrupt" fn general_protection_exception(
459
457
scheduler:: abort ( ) ;
460
458
}
461
459
462
- extern "x86-interrupt" fn floating_point_exception ( stack_frame : & mut ExceptionStackFrame ) {
460
+ extern "x86-interrupt" fn floating_point_exception ( stack_frame : ExceptionStackFrame ) {
463
461
error ! ( "Floating-Point Error (#MF) Exception: {:#?}" , stack_frame) ;
464
462
scheduler:: abort ( ) ;
465
463
}
466
464
467
- extern "x86-interrupt" fn alignment_check_exception ( stack_frame : & mut ExceptionStackFrame ) {
465
+ extern "x86-interrupt" fn alignment_check_exception ( stack_frame : ExceptionStackFrame ) {
468
466
error ! ( "Alignment Check (#AC) Exception: {:#?}" , stack_frame) ;
469
467
scheduler:: abort ( ) ;
470
468
}
471
469
472
- extern "x86-interrupt" fn machine_check_exception ( stack_frame : & mut ExceptionStackFrame ) {
470
+ extern "x86-interrupt" fn machine_check_exception ( stack_frame : ExceptionStackFrame ) {
473
471
error ! ( "Machine Check (#MC) Exception: {:#?}" , stack_frame) ;
474
472
scheduler:: abort ( ) ;
475
473
}
476
474
477
- extern "x86-interrupt" fn simd_floating_point_exception ( stack_frame : & mut ExceptionStackFrame ) {
475
+ extern "x86-interrupt" fn simd_floating_point_exception ( stack_frame : ExceptionStackFrame ) {
478
476
error ! ( "SIMD Floating-Point (#XM) Exception: {:#?}" , stack_frame) ;
479
477
scheduler:: abort ( ) ;
480
478
}
481
479
482
- extern "x86-interrupt" fn virtualization_exception ( stack_frame : & mut ExceptionStackFrame ) {
480
+ extern "x86-interrupt" fn virtualization_exception ( stack_frame : ExceptionStackFrame ) {
483
481
error ! ( "Virtualization (#VE) Exception: {:#?}" , stack_frame) ;
484
482
scheduler:: abort ( ) ;
485
483
}
486
484
487
- extern "x86-interrupt" fn reserved_exception ( stack_frame : & mut ExceptionStackFrame ) {
485
+ extern "x86-interrupt" fn reserved_exception ( stack_frame : ExceptionStackFrame ) {
488
486
error ! ( "Reserved Exception: {:#?}" , stack_frame) ;
489
487
scheduler:: abort ( ) ;
490
488
}
0 commit comments