Revision | 721f0983ea98376644a22df578740b6489a4e49a (tree) |
---|---|
Time | 2019-07-05 21:47:21 |
Author | Christoph Hellwig <hch@lst....> |
Commiter | Waldemar Brodkorb |
riscv: clear a3/a4 in crt1
We don't support shared libraries and thus _init/_fini. But loading
nommu binaries blows they aren't cleared, so do that.
Signed-off-by: Christoph Hellwig <hch@lst.de>
@@ -52,6 +52,11 @@ _start: | ||
52 | 52 | la a0, main |
53 | 53 | REG_L a1, 0(sp) /* argc. */ |
54 | 54 | addi a2, sp, SZREG /* argv. */ |
55 | + /* | |
56 | + * No support fo app_init/app_fini as we don't support shared libraries. | |
57 | + */ | |
58 | + mv a3, zero | |
59 | + mv a4, zero | |
55 | 60 | andi sp, sp, ALMASK /* Align stack. */ |
56 | 61 | mv a6, sp /* stack_end. */ |
57 | 62 |