From 5899fd82aa2f5c3855eb6630f702f3239b6b7015 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Thu, 24 Apr 2003 06:25:08 +0000 Subject: - Small step forward Linux boots and almost works... git-svn-id: svn://svn.coreboot.org/coreboot/trunk@795 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/lib/cpu.c | 6 ++++++ src/arch/i386/lib/pci_ops.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/arch/i386/lib') diff --git a/src/arch/i386/lib/cpu.c b/src/arch/i386/lib/cpu.c index 3e27e7acdc..8ace3fbf53 100644 --- a/src/arch/i386/lib/cpu.c +++ b/src/arch/i386/lib/cpu.c @@ -18,6 +18,7 @@ #define APIC 1 #endif + static void cache_on(struct mem_range *mem) { post_code(0x60); @@ -90,6 +91,11 @@ static void interrupts_on() | (APIC_LVT_REMOTE_IRR |APIC_SEND_PENDING | APIC_DELIVERY_MODE_NMI) ); +#if 1 + printk_debug(" apic_id: %d ", + apic_read(APIC_ID)); +#endif + #else /* APIC */ #ifdef i686 /* Only Pentium Pro and later have those MSR stuff */ diff --git a/src/arch/i386/lib/pci_ops.c b/src/arch/i386/lib/pci_ops.c index 80921bf9da..7ea40ba738 100644 --- a/src/arch/i386/lib/pci_ops.c +++ b/src/arch/i386/lib/pci_ops.c @@ -1,9 +1,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include static const struct pci_ops *conf; struct pci_ops { -- cgit v1.2.3