Quantum
e50fb2de2c
Mostly stolen from https://github.com/avdgrinten/riscv-toy-os Changed load address to 0x45000000 so it would run on real hardware Played around with GPIO and the watchdog
26 lines
572 B
Meson
26 lines
572 B
Meson
project('riscv-qtech-os', ['c', 'cpp'])
|
|
|
|
kernel = executable('kernel',
|
|
'kernel/boot.S',
|
|
'kernel/kernel.cpp',
|
|
link_args: [
|
|
'-Wl,-T,' + (meson.current_source_dir() / 'kernel/kernel.ld'),
|
|
'-static'
|
|
]
|
|
)
|
|
|
|
run_target('qemu',
|
|
command: [
|
|
find_program('qemu-system-riscv64'),
|
|
'-machine', 'virt',
|
|
'-cpu', 'rv64',
|
|
'-bios', 'opensbi-riscv64-generic-fw_dynamic.bin',
|
|
'-m', '256m',
|
|
'-serial', 'stdio',
|
|
'-s',
|
|
'-display', 'none',
|
|
# '-d', 'int',
|
|
'-kernel', kernel
|
|
]
|
|
)
|
|
|