-
-
Notifications
You must be signed in to change notification settings - Fork 618
Closed
Description
We currently just set argc to 0 on the bootloaders before calling main. This is particularly interesting because we can run several userland examples on baremetal.
Maybe this will be easy on QEMU with -device loader which according to docs supports direct data memory mapping: https://github.com/qemu/qemu/blob/60905286cb5150de854e08279bca7dfc4b549e91/docs/generic-loader.txt
This mechanism would be analogous to kernel CLI parameters and DTB, and would therefore allow us to have a single binary that works on either QEMU or gem5, just like the Linux kernel does! We just have to pass CLI arguments that describe the hardware!