Fixed dfr register in apic

This commit is contained in:
Stanislav Shwartsman 2009-02-20 20:44:20 +00:00
parent 21d753c378
commit 87268a1ba5

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// $Id: apic.cc,v 1.125 2009-02-20 17:35:55 sshwarts Exp $ // $Id: apic.cc,v 1.126 2009-02-20 20:44:20 sshwarts Exp $
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// //
// Copyright (c) 2002 Zwane Mwaikambo, Stanislav Shwartsman // Copyright (c) 2002 Zwane Mwaikambo, Stanislav Shwartsman
@ -552,7 +552,7 @@ Bit32u bx_local_apic_c::read_aligned(bx_phy_address addr)
case BX_LAPIC_LDR: // logical destination case BX_LAPIC_LDR: // logical destination
data = (ldr & APIC_ID_MASK) << 24; break; data = (ldr & APIC_ID_MASK) << 24; break;
case BX_LAPIC_DESTINATION_FORMAT: case BX_LAPIC_DESTINATION_FORMAT:
data = ((dest_format & 0xf) << 24) | 0x0fffffff; break; data = ((dest_format & 0xf) << 28) | 0x0fffffff; break;
case BX_LAPIC_SPURIOUS_VECTOR: case BX_LAPIC_SPURIOUS_VECTOR:
{ {
Bit32u reg = spurious_vector; Bit32u reg = spurious_vector;