diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-04-15 17:33:21 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-04-15 17:33:21 +0000 |
commit | 8e79fc3fa892f3a44f127239012dd3794cc71bbd (patch) | |
tree | 9185170faedb53342a5d44c3373f7215bbdcfded /src/arch | |
parent | 6463ae7f1bd1f7ab60725529cf79af30a0e7297d (diff) |
code reformat
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1505 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/boot/pirq_routing.c | 20 | ||||
-rw-r--r-- | src/arch/i386/boot/tables.c | 1 | ||||
-rw-r--r-- | src/arch/i386/smp/mpspec.c | 4 |
3 files changed, 13 insertions, 12 deletions
diff --git a/src/arch/i386/boot/pirq_routing.c b/src/arch/i386/boot/pirq_routing.c index bb0f66b280..52e76a77eb 100644 --- a/src/arch/i386/boot/pirq_routing.c +++ b/src/arch/i386/boot/pirq_routing.c @@ -15,9 +15,9 @@ void check_pirq_routing_table(void) #if defined(IRQ_SLOT_COUNT) if (sizeof(intel_irq_routing_table) != intel_irq_routing_table.size) { printk_warning("Inconsistent IRQ routing table size (0x%x/0x%x)\n", - sizeof(intel_irq_routing_table), - intel_irq_routing_table.size - ); + sizeof(intel_irq_routing_table), + intel_irq_routing_table.size + ); intel_irq_routing_table.size=sizeof(intel_irq_routing_table); } #endif @@ -30,23 +30,23 @@ void check_pirq_routing_table(void) sum += addr[i]; printk_debug("%s:%6d:%s() - irq_routing_table located at: 0x%p\n", - __FILE__, __LINE__, __FUNCTION__, addr); + __FILE__, __LINE__, __FUNCTION__, addr); sum = rt->checksum - sum; if (sum != rt->checksum) { printk_warning("%s:%6d:%s() - " - "checksum is: 0x%02x but should be: 0x%02x\n", - __FILE__, __LINE__, __FUNCTION__, rt->checksum, sum); + "checksum is: 0x%02x but should be: 0x%02x\n", + __FILE__, __LINE__, __FUNCTION__, rt->checksum, sum); rt->checksum = sum; } if (rt->signature != PIRQ_SIGNATURE || rt->version != PIRQ_VERSION || rt->size % 16 || rt->size < sizeof(struct irq_routing_table)) { printk_warning("%s:%6d:%s() - " - "Interrupt Routing Table not valid\n", - __FILE__, __LINE__, __FUNCTION__); + "Interrupt Routing Table not valid\n", + __FILE__, __LINE__, __FUNCTION__); return; } @@ -56,8 +56,8 @@ void check_pirq_routing_table(void) if (sum) { printk_warning("%s:%6d:%s() - " - "checksum error in irq routing table\n", - __FILE__, __LINE__, __FUNCTION__); + "checksum error in irq routing table\n", + __FILE__, __LINE__, __FUNCTION__); } printk_info("done.\n"); diff --git a/src/arch/i386/boot/tables.c b/src/arch/i386/boot/tables.c index 827b46ed32..b7e4024f5d 100644 --- a/src/arch/i386/boot/tables.c +++ b/src/arch/i386/boot/tables.c @@ -47,6 +47,7 @@ struct lb_memory *write_tables(struct mem_range *mem, unsigned long *processor_m post_code(0x9a); check_pirq_routing_table(); + /* This table must be betweeen 0xf0000 & 0x100000 */ rom_table_end = copy_pirq_routing_table(rom_table_end); rom_table_end = (rom_table_end + 1023) & ~1023; diff --git a/src/arch/i386/smp/mpspec.c b/src/arch/i386/smp/mpspec.c index d7b8c3e2f0..4a1e233be9 100644 --- a/src/arch/i386/smp/mpspec.c +++ b/src/arch/i386/smp/mpspec.c @@ -136,8 +136,8 @@ void smp_write_bus(struct mp_config_table *mc, } void smp_write_ioapic(struct mp_config_table *mc, - unsigned char id, unsigned char ver, - unsigned long apicaddr) + unsigned char id, unsigned char ver, + unsigned long apicaddr) { struct mpc_config_ioapic *mpc; mpc = smp_next_mpc_entry(mc); |