phil-opp / blog_os

Writing an OS in Rust
http://os.phil-opp.com
Apache License 2.0
15.85k stars 1.09k forks source link

APIC enable failed on UEFI, but work on BIOS #1335

Closed xuanplus closed 4 months ago

xuanplus commented 4 months ago

I try to add apic for my code, and it works on bios. When I selected the uefi, I got result like that: image

I have closed the pic, and my local apic code is following:

self.lapic = LocalApicBuilder::default()
    .timer_vector(32)
    .error_vector(51)
    .spurious_vector(39)
    .set_xapic_base(apic_virtual_address)
    .build()
    .ok();

I don't what cause that, what should I do for that?

phil-opp commented 4 months ago

Thanks for reporting!

Closing in favor of https://github.com/rust-osdev/bootloader/issues/447