Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/locore.S
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | #endif | ||||
PTR_LA sp, _C_LABEL(thread0_st) | PTR_LA sp, _C_LABEL(thread0_st) | ||||
PTR_L a0, TD_PCB(sp) | PTR_L a0, TD_PCB(sp) | ||||
REG_LI t0, ~7 | REG_LI t0, ~7 | ||||
and a0, a0, t0 | and a0, a0, t0 | ||||
PTR_SUBU sp, a0, CALLFRAME_SIZ | PTR_SUBU sp, a0, CALLFRAME_SIZ | ||||
jal _C_LABEL(mi_startup) # mi_startup(frame) | jal _C_LABEL(mi_startup) # mi_startup(frame) | ||||
sw zero, CALLFRAME_SIZ - 8(sp) # Zero out old fp for debugger | sw zero, ((CALLFRAME_SIZ) - 8)(sp) # Zero out old fp for debugger | ||||
PANIC("Startup failed!") | PANIC("Startup failed!") | ||||
VECTOR_END(_locore) | VECTOR_END(_locore) |