stm32h7: set 8-byte alignment on main and irq stack

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 2b09078b928b8f309d3638ca7b3dc47c9718c34a
Author: Aidan MacDonald <[email protected]>
Date:   Sun Jan 25 22:26:53 2026 +0000

    stm32h7: set 8-byte alignment on main and irq stack
    
    Explicitly set 8-byte alignment as per the AAPCS, which
    says the stack should be 8-byte aligned at a public ABI
    boundary.
    
    Change-Id: Ie60b664718119ea576e7c6b5efaac011eb907531

diff --git a/firmware/target/arm/stm32/app.lds b/firmware/target/arm/stm32/app.lds
index 1fbcd140cd..fc8bd381f7 100644
--- a/firmware/target/arm/stm32/app.lds
+++ b/firmware/target/arm/stm32/app.lds
@@ -21,7 +21,7 @@ SECTIONS
         *(.icode*);
     } > ITCM
 
-    .stack (NOLOAD) :
+    .stack (NOLOAD) : ALIGN(8)
     {
         irqstackbegin = .;
         . += 0x400;
diff --git a/firmware/target/arm/stm32/boot.lds b/firmware/target/arm/stm32/boot.lds
index 0994787666..06d3471303 100644
--- a/firmware/target/arm/stm32/boot.lds
+++ b/firmware/target/arm/stm32/boot.lds
@@ -42,7 +42,7 @@ SECTIONS
         _bssend = .;
     } > SRAM_AXI
 
-    .stack (NOLOAD) : ALIGN(4)
+    .stack (NOLOAD) : ALIGN(8)
     {
         irqstackbegin = .;
         . += 0x400;
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.