diff options
author | mario.six@gdsys.cc <mario.six@gdsys.cc> | 2016-04-05 15:05:37 +0200 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-04-08 15:42:10 -0700 |
commit | 50689461205e0125759eb1a43787383a3fa09b48 (patch) | |
tree | 00deec51ae3651b7c7544c20cdef3610226661cd /include | |
parent | b39d1213e30717c435c8ed43411d573d435557cb (diff) | |
download | u-boot-imx-50689461205e0125759eb1a43787383a3fa09b48.zip u-boot-imx-50689461205e0125759eb1a43787383a3fa09b48.tar.gz u-boot-imx-50689461205e0125759eb1a43787383a3fa09b48.tar.bz2 |
powerpc: mpc85xx: Enable pre-relocation malloc for MPC85xx
To enable DM on MPC85xx, we need pre-relocation malloc, which is
implemented in this patch.
We also make sure that the IVORs are always 4-aligned on e500 to prevent
alignment exceptions caused by code changes in start.S.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Cc: York Sun <york.sun@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ppc_asm.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ppc_asm.tmpl b/include/ppc_asm.tmpl index ba166eb..379c493 100644 --- a/include/ppc_asm.tmpl +++ b/include/ppc_asm.tmpl @@ -263,12 +263,14 @@ b transfer_to_handler #define STD_EXCEPTION(n, label, hdlr) \ +.align 4; \ label: \ EXCEPTION_PROLOG(SRR0, SRR1); \ addi r3,r1,STACK_FRAME_OVERHEAD; \ EXC_XFER_TEMPLATE(n, label, hdlr, MSR_KERNEL, NOCOPY) \ #define CRIT_EXCEPTION(n, label, hdlr) \ +.align 4; \ label: \ EXCEPTION_PROLOG(CSRR0, CSRR1); \ addi r3,r1,STACK_FRAME_OVERHEAD; \ @@ -276,6 +278,7 @@ label: \ MSR_KERNEL & ~(MSR_ME|MSR_DE|MSR_CE), NOCOPY) \ #define MCK_EXCEPTION(n, label, hdlr) \ +.align 4; \ label: \ EXCEPTION_PROLOG(MCSRR0, MCSRR1); \ addi r3,r1,STACK_FRAME_OVERHEAD; \ |