VirtualBox

Changeset 51725 in vbox


Ignore:
Timestamp:
Jun 25, 2014 11:57:41 AM (11 years ago)
Author:
vboxsync
Message:

BIOS: Enable APIC in SVR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/pmsetup.inc

    r51057 r51725  
    1515;;
    1616
     17SVR             equ     0FEE000F0h
    1718LVT_LINT0       equ     0FEE00350h
    1819LVT_LINT1       equ     0FEE00360h
     
    2021public          pmode_setup
    2122
    22 ;; Program LINT0/LINT1 entries in the local APIC. Some Linux kernels (e.g.,
    23 ;; RHEL4 SMP 32-bit) expect the entries to be unmasked in virtual wire mode.
    24 ;; Also make sure APIC timer is masked.
     23;; Enable the local APIC and program LINT0/LINT1 entries. Without that,
     24;; virtual wire interrupts could not be delivered. Note that the APIC must
     25;; be enabled first because when disabled, all LVTs are forced masked.
    2526
    2627pmode_setup     proc    near
     
    3637                and     eax, 09FFFFFFFh
    3738                mov     cr0, eax
     39
     40                mov     esi, SVR        ; Program the SVR -- enable the APIC,
     41                mov     eax, 010Fh      ; set spurious interrupt vector to 15
     42                mov     [esi], eax
    3843
    3944                mov     esi, LVT_LINT0  ; Program LINT0 to ExtINT and unmask
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette