Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Marek Vasut's avatar
    3a96ad85
    PXA: Align stack to 8 bytes · 3a96ad85
    Marek Vasut authored
    
    Part of this patch is by: Mikhail Kshevetskiy.
    
    Stack must be aligned to 8 bytes on PXA (possibly all armv5te) for LDRD/STRD
    instructions. In case LDRD/STRD is issued on an unaligned address, the behaviour
    is undefined.
    
    The issue was observed when working with the NAND code, which was rendered
    disfunctional. Also, the vsprintf() function had serious problems with printing
    64bit wide long longs. After aligning the stack, this wrong behaviour is no
    longer present.
    
    Tested on:
    	Marvell Littleton PXA310 board
    	Toradex Colibri PXA320 board
    	Aeronix Zipit Z2 PXA270 handheld
    	Voipac PXA270 board
    
    Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
    3a96ad85
    History
    PXA: Align stack to 8 bytes
    Marek Vasut authored
    
    Part of this patch is by: Mikhail Kshevetskiy.
    
    Stack must be aligned to 8 bytes on PXA (possibly all armv5te) for LDRD/STRD
    instructions. In case LDRD/STRD is issued on an unaligned address, the behaviour
    is undefined.
    
    The issue was observed when working with the NAND code, which was rendered
    disfunctional. Also, the vsprintf() function had serious problems with printing
    64bit wide long longs. After aligning the stack, this wrong behaviour is no
    longer present.
    
    Tested on:
    	Marvell Littleton PXA310 board
    	Toradex Colibri PXA320 board
    	Aeronix Zipit Z2 PXA270 handheld
    	Voipac PXA270 board
    
    Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>