revert apic change
this is now on its own branch and will be worked on separately from the main focus of this project, which is to get a VFS and into userspace as soon as possible
This commit is contained in:
parent
c78085373c
commit
9cf4b71559
5 changed files with 7 additions and 20 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include <kernel/acpi.h>
|
||||
#include <kernel/mem.h>
|
||||
#include <kernel/slab.h>
|
||||
#include <dev/apic.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
|
@ -82,7 +81,7 @@ int madt_parse_next_entry(int offset)
|
|||
printf(LOG_INFO "LAPIC ID: %xh\n", m_lapic->apic_id);
|
||||
break;
|
||||
case MADT_IOAPIC:
|
||||
ioapic_addr = m_ioapic->ioapic_addr | hhdm_start;
|
||||
ioapic_addr = m_ioapic->ioapic_addr;
|
||||
printf(LOG_INFO "IOAPIC address: %xh\n", m_ioapic->ioapic_addr);
|
||||
break;
|
||||
case MADT_IOAPIC_OVRD:
|
||||
|
|
@ -126,7 +125,7 @@ void apic_init()
|
|||
while ((offset = madt_parse_next_entry(offset)))
|
||||
;
|
||||
|
||||
lapic_addr = __madt->lapic_addr | hhdm_start;
|
||||
lapic_addr = __madt->lapic_addr;
|
||||
|
||||
printf(LOG_INFO "IOAPIC ADDR: %X\n", ioapic_addr);
|
||||
printf(LOG_INFO "LAPIC ADDR : %X\n", lapic_addr);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
popq %rsi
|
||||
movq $\nr, %rdi
|
||||
call exception
|
||||
call yield
|
||||
iretq
|
||||
.endm
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue