2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 10:54:02 +08:00

bootloader: disable minimum stack space check in linker script

* The value varies greatly whether netboot is enabled or not.
* There is no simple solution to detect has_ethmac in the linker script and set the value accordingly.
* The space check is an imperfect solution that will be superseded by stack pointer limits.
* Left commented out so we can re-enable it manually during development if stack corruption is suspected.
This commit is contained in:
Sebastien Bourdeauducq 2019-11-01 10:21:49 +08:00
parent deadfead2a
commit 5362f92b39

View File

@ -46,7 +46,7 @@ SECTIONS
.stack :
{
/* Ensure we have a certain amount of space available for stack. */
. = ORIGIN(sram) + LENGTH(sram) - 0x1a00;
/*. = ORIGIN(sram) + LENGTH(sram) - 0x1a00; */
. = ORIGIN(sram) + LENGTH(sram) - 4;
_fstack = .;
} > sram