*** tpb has joined #litex | 00:00 | |
*** futarisIRCcloud has joined #litex | 01:08 | |
*** futarisIRCcloud has quit IRC | 03:47 | |
*** futarisIRCcloud has joined #litex | 03:49 | |
xobs | somlo: I actually just set stuff up for Foboot. | 05:25 |
---|---|---|
xobs | Everything is self-contained in https://github.com/im-tomu/foboot/tree/master/sw -- you might be interested in third_party/libbase/crt0--vexriscv.S | 05:26 |
tpb | Title: foboot/sw at master · im-tomu/foboot · GitHub (at github.com) | 05:26 |
xobs | I'm not sure why they have all those nops. I'm going to try removing them. Maybe it's a caching thing? | 05:26 |
xobs | trap_entry probably doesn't need to be marked .global, but it'll generate a symbol so the debugger can read it. | 05:27 |
keesj | xobs: it looks like a jump table . e.g. when the CPU gets an exception (or starts) it normally jumpt to an address in memory (the first one is typically the start addres) . I did some searching around in the code but did not find what the other addresses are supposed to be | 06:20 |
keesj | normally for debug the nops are replace by jump/branch to current address . the readme has some hint on the resetAdress (ans so does some asm samples) in the code | 06:22 |
keesj | https://github.com/slavaim/riscv-notes/blob/master/bbl/boot.md also has some notes (this is probably simply part of the risc v specs) | 06:27 |
tpb | Title: riscv-notes/boot.md at master · slavaim/riscv-notes · GitHub (at github.com) | 06:27 |
*** futarisIRCcloud has quit IRC | 07:37 | |
xobs | keesj: that's a good guess. | 08:06 |
xobs | maybe it could also be from the lm32 crt0.S, which is also 8 instructions (with two nop at the end)? | 08:07 |
*** futarisIRCcloud has joined #litex | 08:24 | |
*** acathpala is now known as acathla | 09:20 | |
*** acathla has joined #litex | 09:21 | |
*** futarisIRCcloud has quit IRC | 10:47 | |
*** futarisIRCcloud has joined #litex | 11:36 | |
somlo | xobs: thanks, I'll have a look -- turns out there's a bunch more stuff like per-arch functions for flushing [i|d]caches, etc. scattered throughout the headers that I need to come up with | 12:04 |
*** futarisIRCcloud has quit IRC | 14:57 | |
*** futarisIRCcloud has joined #litex | 23:32 | |
*** acathla has quit IRC | 23:51 | |
*** acathla has joined #litex | 23:55 | |
*** acathla has joined #litex | 23:55 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!