Skip to content

Commit

Permalink
x86_32: use apic_ops at print_local_APIC()
Browse files Browse the repository at this point in the history
Use apic_icr_read at print_local_APIC() in io_apic_32.c

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Jul 31, 2008
1 parent 10a010f commit 7ab6af7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/x86/kernel/io_apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ static void print_APIC_bitfield(int base)
void /*__init*/ print_local_APIC(void *dummy)
{
unsigned int v, ver, maxlvt;
u64 icr;

if (apic_verbosity == APIC_QUIET)
return;
Expand Down Expand Up @@ -1536,10 +1537,9 @@ void /*__init*/ print_local_APIC(void *dummy)
printk(KERN_DEBUG "... APIC ESR: %08x\n", v);
}

v = apic_read(APIC_ICR);
printk(KERN_DEBUG "... APIC ICR: %08x\n", v);
v = apic_read(APIC_ICR2);
printk(KERN_DEBUG "... APIC ICR2: %08x\n", v);
icr = apic_icr_read();
printk(KERN_DEBUG "... APIC ICR: %08x\n", icr);
printk(KERN_DEBUG "... APIC ICR2: %08x\n", icr >> 32);

v = apic_read(APIC_LVTT);
printk(KERN_DEBUG "... APIC LVTT: %08x\n", v);
Expand Down

0 comments on commit 7ab6af7

Please sign in to comment.