[kernel] Make bsp_idle a separate symbol

When debugging, or in panic callstacks, the BSP idle thread used to be
reported as `_kernel_start`, because it was just the loop at the end of
that assembly function. Now, wrap that loop in a separate symbol called
`bsp_idle` to make it clearer that the cpu is in the idle thread.
This commit is contained in:
Justin C. Miller
2022-02-26 13:04:21 -08:00
parent 2640cea175
commit 82025bacad

View File

@@ -32,11 +32,14 @@ _kernel_start:
extern kernel_main extern kernel_main
call kernel_main call kernel_main
; Kernel init is over, wait for the scheduler to ; Kernel init is over, fall through to bsp_idle and wait for
; take over ; the scheduler to take over
.hang: .end:
global bsp_idle:function (bsp_idle.end - bsp_idle)
bsp_idle:
hlt hlt
jmp .hang jmp bsp_idle
.end: .end:
global interrupts_enable global interrupts_enable