rust-osdev / bootloader

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

Potental triple fault some some devices #345

Open an-owl opened 1 year ago

an-owl commented 1 year ago

Testing the UEFI boot on my Dell latitude E5510 (firmware A07) I discovered that bootloader will always triple fault, but not while booting with BIOS. After some testing I discovered this happens immediately when enable_write_protect_bit() is called.

After setting up an IDT I wasn't able to catch a page fault or a double fault to find exactly what is causing the triple fault. I can only assume that the stack is set to read only