1010; Default exception handler
1111align 8
1212exception_gate:
13- mov rsi , int_string00
13+ mov esi , int_string00
1414 call b_output
15- mov rsi , exc_string
15+ mov esi , exc_string
1616 call b_output
1717 jmp $ ; Hang
1818; -----------------------------------------------------------------------------
@@ -175,7 +175,7 @@ ap_wakeup:
175175align 8
176176ap_reset:
177177 ; Don't use 'os_apic_write' as we can't guarantee the state of the stack
178- mov rax , ap_clear ; Set RAX to the address of ap_clear
178+ mov eax , ap_clear ; Set RAX to the address of ap_clear
179179 mov [ rsp ], rax ; Overwrite the return address on the CPU's stack
180180 mov rdi , [ os_LocalAPICAddress ] ; Acknowledge the IPI
181181 add rdi , 0xB0
@@ -378,24 +378,24 @@ exception_gate_main:
378378 push rcx ; Char counter for b_output
379379 push rax ; Save RAX since b_smp_get_id clobbers it
380380 call os_debug_newline
381- mov rsi , int_string00
382- mov rcx , 6
381+ mov esi , int_string00
382+ mov ecx , 6
383383 call b_output
384384 call b_smp_get_id ; Get the local CPU ID and print it
385385 call os_debug_dump_ax
386- mov rsi , int_string01
387- mov rcx , 15
386+ mov esi , int_string01
387+ mov ecx , 15
388388 call b_output
389- mov rsi , exc_string00
389+ mov esi , exc_string00
390390 pop rax
391- and rax , 0x00000000000000FF ; Clear out everything in RAX except for AL
391+ and eax , 0x00000000000000FF ; Clear out everything in RAX except for AL
392392 push rax
393393 mov bl , 6 ; Length of each message
394394 mul bl ; AX = AL x BL
395395 add rsi , rax ; Use the value in RAX as an offset to get to the right message
396396 pop rax
397397 mov bl , 0x0F
398- mov rcx , 6
398+ mov ecx , 6
399399 call b_output
400400 pop rcx
401401 pop rsi
@@ -420,14 +420,14 @@ exception_gate_main:
420420 push rcx
421421 push rbx
422422 push rax
423- mov rsi , reg_string00 ; Load address of first register string
423+ mov esi , reg_string00 ; Load address of first register string
424424 mov ecx , 4 ; Number of characters per reg_string
425425 mov edx , 16 ; Counter of registers to left to output
426426 xor ebx , ebx ; Counter of registers output per line
427427 call os_debug_newline
428428exception_gate_main_nextreg:
429429 call b_output
430- add rsi , 4
430+ add esi , 4
431431 pop rax
432432 call os_debug_dump_rax
433433 add ebx , 1
@@ -445,7 +445,7 @@ exception_gate_main_nextreg_continue:
445445 mov rax , [ rsp + 8 ] ; RIP of caller
446446 call os_debug_dump_rax
447447 call os_debug_space
448- add rsi , 4
448+ add esi , 4
449449 call b_output
450450 mov rax , cr2
451451 call os_debug_dump_rax
0 commit comments