How to determine available physical RAM in a RISC-V OS?
I was recently going through the source code for xv6 (https://github.com/mit-pdos/xv6-riscv), when I recently came across this line: (https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/memlayout.h) #define PHYSTOP (KERNBASE + 128*1024*1024) combine this with the Makefile of the project (https://github.com/mit-pdos/xv6-riscv/blob/riscv/Makefile): QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 128M -smp $(CPUS) -nographic This made me realise that they are just hard