Skip to content

Commit efbf082

Browse files
committed
make _estack be double-word aligned
1 parent 302ad40 commit efbf082

9 files changed

+18
-9
lines changed

ports/atmel-samd/boards/samd21x18-bootloader-crystalless.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ MEMORY
1111
}
1212

1313
/* top end of the stack */
14-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
14+
/* stack must be double-word (8 byte) aligned */
15+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1516
_bootloader_dbl_tap = _estack;
1617

1718
/* define output sections */

ports/atmel-samd/boards/samd21x18-bootloader-external-flash-crystalless.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ MEMORY
1111
}
1212

1313
/* top end of the stack */
14-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
14+
/* stack must be double-word (8 byte) aligned */
15+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1516
_bootloader_dbl_tap = _estack;
1617

1718
/* define output sections */

ports/atmel-samd/boards/samd21x18-bootloader-external-flash.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

ports/atmel-samd/boards/samd21x18-bootloader.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ MEMORY
1111
}
1212

1313
/* top end of the stack */
14-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
14+
/* stack must be double-word (8 byte) aligned */
15+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1516
_bootloader_dbl_tap = _estack;
1617

1718
/* define output sections */

ports/atmel-samd/boards/samd51x18-bootloader-external-flash.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

ports/atmel-samd/boards/samd51x19-bootloader-external-flash.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

ports/atmel-samd/boards/samd51x19-bootloader.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

ports/atmel-samd/boards/samd51x20-bootloader-external-flash.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

ports/atmel-samd/boards/samd51x20-bootloader.ld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ MEMORY
1010
}
1111

1212
/* top end of the stack */
13-
_estack = ORIGIN(RAM) + LENGTH(RAM) - 4;
13+
/* stack must be double-word (8 byte) aligned */
14+
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
1415
_bootloader_dbl_tap = _estack;
1516

1617
/* define output sections */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy