rust-osdev / bootloader

An experimental pure-Rust x86 bootloader
Apache License 2.0
1.39k stars 212 forks source link

Does it allow to disable virtual memory? #450

Open bingmatv opened 3 months ago

bingmatv commented 3 months ago

The generated kernel prints virtual_addr, does it allow to disable virtual memory? Because implicitly adding these features makes a kernel not so lightweight.

bingmatv commented 3 months ago

Is it the QEMU Seabios output? Perhaps, I mistook the output as from this bootloader.

bjorn3 commented 3 months ago

Blog os is written for 64bit x86 (x86_64), which does not allow disabling paging. Only 16bit and 32bit x86 allow disabling it. If you try entering long mode with paging disabled you will get a #GP fault (general protection fault).