Skip to content

Baremetal command line arguments #67

@cirosantilli

Description

@cirosantilli

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions