diff options
author | Luca Dariz <luca@orpolo.org> | 2023-05-21 22:49:18 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-21 22:54:53 +0200 |
commit | 54a4ca27230ae85bf75804d5d581ebf68e620cee (patch) | |
tree | a03eef368175363d1e546ca8252fdb282d0b4a32 /x86_64 | |
parent | d9c47d8e829fbb6f15fdb3796776d78be1b082fc (diff) | |
download | gnumach-54a4ca27230ae85bf75804d5d581ebf68e620cee.tar.gz gnumach-54a4ca27230ae85bf75804d5d581ebf68e620cee.tar.bz2 gnumach-54a4ca27230ae85bf75804d5d581ebf68e620cee.zip |
x86_64: fix APIC initialization
* i386/i386at/acpi_parse_apic.c: use vm_offset_t instead of uint32_t
for vm addresses
* x86_64/Makefrag.am: support --enable-apic
Message-Id: <20230521204918.492957-1-luca@orpolo.org>
Diffstat (limited to 'x86_64')
-rw-r--r-- | x86_64/Makefrag.am | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/x86_64/Makefrag.am b/x86_64/Makefrag.am index 7de56f9e..7e0ef25b 100644 --- a/x86_64/Makefrag.am +++ b/x86_64/Makefrag.am @@ -28,6 +28,8 @@ if HOST_x86_64 # libkernel_a_SOURCES += \ + i386/i386at/acpi_parse_apic.h \ + i386/i386at/acpi_parse_apic.c \ i386/i386at/autoconf.c \ i386/i386at/autoconf.h \ i386/i386at/biosmem.c \ @@ -65,7 +67,6 @@ libkernel_a_SOURCES += \ i386/i386at/kdsoft.h \ i386/i386at/mem.c \ i386/i386at/mem.h \ - i386/i386at/pic_isa.c \ i386/i386at/rtc.c \ i386/i386at/rtc.h endif @@ -95,15 +96,25 @@ libkernel_a_SOURCES += \ if PLATFORM_at libkernel_a_SOURCES += \ + i386/i386/apic.h \ + i386/i386/apic.c \ i386/i386/hardclock.c \ i386/i386/hardclock.h \ i386/i386/irq.c \ i386/i386/irq.h \ i386/i386/msr.h \ - i386/i386/pic.c \ - i386/i386/pic.h \ i386/i386/pit.c \ i386/i386/pit.h + +if enable_apic +libkernel_a_SOURCES += \ + i386/i386at/ioapic.c +else +libkernel_a_SOURCES += \ + i386/i386/pic.c \ + i386/i386/pic.h \ + i386/i386at/pic_isa.c +endif endif # |