IsaacWoods / poplar

Microkernel and userspace written in Rust exploring modern ideas
https://poplar.isaacwoods.dev
Mozilla Public License 2.0
250 stars 8 forks source link

Support the MangoPi MQ-Pro #100

Open IsaacWoods opened 10 months ago

IsaacWoods commented 10 months ago

Getting the kernel running

Boot from persistent media

IsaacWoods commented 1 month ago

Adding a note here to hopefully remember (we're not going to be near our workstation for a while :( ). I think we need to do a VMA fence after switching to new sets of page tables - I don't think this is going to be what's causing issues on the D1, but is the correct thing to do.

IsaacWoods commented 1 month ago

Also some thoughts about debugging on real hardware - I wonder if we could get some kind of timer running in M-mode (with an altered OpenSBI I guess) that pings back a set of registers / other info over UART. This would be a useful extra tool for dealing with stuff like the core seemingly freezing when entering usermode (although we need to have a look at our trap handling to rule out dumb mistakes first).

Could also look at the ebreak instruction to see if we can do any instrumentation through that via M-mode too.