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:
Florent Kermarrec 2020-06-22 17:09:55 +02:00
parent 0c0689f444
commit 5b2f9c244d
1 changed files with 3 additions and 4 deletions

View File

@ -76,10 +76,9 @@ _start:
bdnz 0b bdnz 0b
1: 1:
/* setup stack */ /* setup stack */
LOAD_IMM64(%r1, _fstack - 0x100) ld %r1,_fstack@got(%r2)
LOAD_IMM64(%r12, main) subi %r1,%r1,0x100
mtctr %r12, bl main
bctrl
b . b .
#define EXCEPTION(nr) \ #define EXCEPTION(nr) \