Write to Register to Receive Interrupts for APIC
Posted: Sun Oct 30, 2022 8:55 pm
Code: Select all
write_reg(0xF0, ReadRegister(0xF0) | 0x100);
The Place to Start for Operating System Developers
http://f.osdev.org/
Code: Select all
write_reg(0xF0, ReadRegister(0xF0) | 0x100);
It sets bit 8 without modifying the other bits.FunnyGuy9796 wrote:It seems as though it writes the value 0x100 to the register 0xF0.
If you're using xAPIC or one of the ancient APICs, you access it the same as any other MMIO, and the ACPI MADT will tell you the base address. If you're using x2APIC, you access it using RDMSR/WRMSR, and the base address is 0x800.FunnyGuy9796 wrote:I am also wondering how I would perform a task such as writing to this register as well as read from it.