cores/cpu/microwatt: revert setup stack and fix missing subi %r1,%r1,0x100 (thanks ozbenh).
Tested with powerpc64le-buildroot-linux-gnu-gcc.br_real (Buildroot 2020.02-00011-g7ea8a52) 8.4.0.
This commit is contained in:
parent
0c0689f444
commit
5b2f9c244d
|
@ -76,10 +76,9 @@ _start:
|
|||
bdnz 0b
|
||||
1:
|
||||
/* setup stack */
|
||||
LOAD_IMM64(%r1, _fstack - 0x100)
|
||||
LOAD_IMM64(%r12, main)
|
||||
mtctr %r12,
|
||||
bctrl
|
||||
ld %r1,_fstack@got(%r2)
|
||||
subi %r1,%r1,0x100
|
||||
bl main
|
||||
b .
|
||||
|
||||
#define EXCEPTION(nr) \
|
||||
|
|
Loading…
Reference in New Issue