Writing to a Register in C
Posted: Tue Jan 10, 2023 11:06 am
I am trying to set up the APIC and have come across an issue. I am having trouble to set the Spurious Interrupt Vector Register bit 8. I am not sure exactly how the 'write_reg' function works. I know I have asked this question before but I can't seem to figure out how to write to the register.
Help would be much appreciated!
Code: Select all
write_reg(0xF0, ReadRegister(0xF0) | 0x100);