~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/Devices/PC/DevFwCommon.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: DevFwCommon.cpp $ */
 
1
/* $Id: DevFwCommon.cpp 35353 2010-12-27 17:25:52Z vboxsync $ */
2
2
/** @file
3
3
 * FwCommon - Shared firmware code (used by DevPcBios & DevEFI).
4
4
 */
19
19
*   Header Files                                                               *
20
20
*******************************************************************************/
21
21
#define LOG_GROUP LOG_GROUP_DEV
22
 
#include <VBox/pdmdev.h>
 
22
#include <VBox/vmm/pdmdev.h>
23
23
 
24
24
#include <VBox/log.h>
25
25
#include <VBox/err.h>
34
34
#include <iprt/uuid.h>
35
35
#include <iprt/system.h>
36
36
 
37
 
#include "../Builtins.h"
38
 
#include "../Builtins2.h"
 
37
#include "VBoxDD.h"
 
38
#include "VBoxDD2.h"
39
39
#include "DevFwCommon.h"
40
40
 
41
41
 
824
824
 *
825
825
 * Only applicable if IOAPIC is active!
826
826
 *
827
 
 * See ``MultiProcessor Specificatiton Version 1.4 (May 1997)'':
 
827
 * See ``MultiProcessor Specification Version 1.4 (May 1997)'':
828
828
 *   ``1.3 Scope
829
829
 *     ...
830
830
 *     The hardware required to implement the MP specification is kept to a
943
943
        /* IRQ0 mapped to pin 2, other are identity mapped */
944
944
        /* If changing, also update PDMIsaSetIrq() and MADT */
945
945
        pIrqEntry->u8SrcBusIrq     = (iPin == 2) ? 0 : iPin; /* IRQ on the bus */
946
 
        pIrqEntry->u8DstIOAPICId   = iApicId;        /* destintion IO-APIC */
 
946
        pIrqEntry->u8DstIOAPICId   = iApicId;        /* destination IO-APIC */
947
947
        pIrqEntry->u8DstIOAPICInt  = iPin;           /* pin on destination IO-APIC */
948
948
    }
949
949
    /* Local delivery */