Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
emulator_workarounds.S 449 B
//; In the current state of our emulator, it doesn't run a proper boot ROM.
//; This function does some minor fixups (setting stack pointer etc.)
//; and runs the MDK init function.
.section .text
.align 2
.global emulator_workarounds
emulator_workarounds:
//; Not sure if this is the best address for the stack
//; FIXME: This should be set to a range specified in the linker script
li sp, 0x40384400
//; Jump to MDK's real setup function
j _reset