[riot-notifications] [RIOT-OS/RIOT] riscv: Simplify reset trampoline (#16876)

Joakim Nohlgård notifications at github.com
Wed Sep 22 11:13:44 CEST 2021


This PR machine code output:

```
08000000 <_start>:
 8000000:   30047073            csrci   mstatus,8
 8000004:   08000537            lui a0,0x8000
 8000008:   00e50513            addi    a0,a0,14 # 800000e <_start_real>
 800000c:   8502                    jr  a0
```

Original machine code output:
```
08000000 <_start>:
 8000000:   30047073            csrci   mstatus,8
 8000004:   00000517            auipc   a0,0x0
 8000008:   ffc50513            addi    a0,a0,-4 # 8000000 <_start>
 800000c:   080005b7            lui a1,0x8000
 8000010:   00b57863            bgeu    a0,a1,8000020 <_start_real>
 8000014:   00000517            auipc   a0,0x0
 8000018:   00c50513            addi    a0,a0,12 # 8000020 <_start_real>
 800001c:   952e                    add a0,a0,a1
 800001e:   8502                    jr  a0
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16876#issuecomment-924737705
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210922/c246c02b/attachment.htm>


More information about the notifications mailing list