mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-29 06:49:20 +00:00
Reserve 4 bytes at end of RAM for magic number
This will be used during firmware updates so that the main firmware can communicate to the bootloader that it should stay in the bootloader for a firmware update rather than run the main firmware again.
This commit is contained in:
parent
7c368aa816
commit
9f0299a9c4
@ -185,8 +185,8 @@ SECTIONS
|
|||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
/* Set stack top to end of RAM, and stack limit move down by
|
/* Set stack top to end of RAM, and stack limit move down by
|
||||||
* size of stack_dummy section */
|
* size of stack_dummy section. Reserve 4 bytes at end of RAM for magic number. */
|
||||||
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
|
__StackTop = ORIGIN(RAM) + LENGTH(RAM) - 4;
|
||||||
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
|
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
|
||||||
PROVIDE(__stack = __StackTop);
|
PROVIDE(__stack = __StackTop);
|
||||||
|
|
||||||
|
@ -185,8 +185,8 @@ SECTIONS
|
|||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
/* Set stack top to end of RAM, and stack limit move down by
|
/* Set stack top to end of RAM, and stack limit move down by
|
||||||
* size of stack_dummy section */
|
* size of stack_dummy section. Reserve 4 bytes at end of RAM for magic number. */
|
||||||
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
|
__StackTop = ORIGIN(RAM) + LENGTH(RAM) - 4;
|
||||||
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
|
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
|
||||||
PROVIDE(__stack = __StackTop);
|
PROVIDE(__stack = __StackTop);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user