Reset the stack pointer after seeding the RNG

This commit is contained in:
Ry 2022-07-27 14:00:53 -07:00
parent 050bd7e0af
commit e2abb1c3f8

View File

@ -29,7 +29,10 @@ entry_seed_loop:
entry_seed_done: entry_seed_done:
mov [RANDOM_STATE], r0 mov [RANDOM_STATE], r0
; set up the vsync interrupt ; set the stach pointer again to pop the return address and flags off the stack
mov rsp, SYSTEM_STACK
; set the interrupt vector for interrupt 0xFF - vsync
mov [0x000003FC], system_vsync_handler mov [0x000003FC], system_vsync_handler
ise ise