Commit 588cff38 authored by schneider's avatar schneider
Browse files

change(stack): Initialize stack to 0xAA to aid debugging overflows

parent edcff13e
......@@ -250,6 +250,19 @@ ecc_init_exit:
ldr r0, =__StackTop
mov sp, r0
* Loop to initialize out stack section to aid debugging.
ldr r1, =__StackLimit
ldr r2, =__StackTop
movs r0, 0xAAAAAAAA
cmp r1, r2
itt lt
strlt r0, [r1], #4
blt .LC3
/* PreInit runs before any RAM initialization. Example usage: DDR setup, etc. */
ldr r0, =PreInit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment