VirtualBox

Changeset 51057 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
Apr 11, 2014 9:24:29 PM (11 years ago)
Author:
vboxsync
Message:

Improved code readability slightly.

File:
1 edited

Legend:

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

    r38699 r51057  
    1515;;
    1616
    17 LVT0            equ     0FEE00350h
    18 LVT1            equ     0FEE00360h
     17LVT_LINT0       equ     0FEE00350h
     18LVT_LINT1       equ     0FEE00360h
    1919
    2020public          pmode_setup
    2121
    22 ;; Program LVT0/LVT1 entries in the local APIC. Some Linux kernels (e.g., RHEL4
    23 ;; SMP 32-bit) expect the entries to be unmasked in virtual wire mode.
     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.
    2425
    2526pmode_setup     proc    near
     
    3132                cli                     ; Interrupts would kill us!
    3233                call    pmode_enter
     34
    3335                mov     eax, cr0        ; Clear CR0.CD and CR0.NW
    3436                and     eax, 09FFFFFFFh
    3537                mov     cr0, eax
    36                 mov     esi, LVT0       ; Program LVT0 to ExtINT and unmask
     38
     39                mov     esi, LVT_LINT0  ; Program LINT0 to ExtINT and unmask
    3740                mov     eax, [esi]
    3841                and     eax, 0FFFE00FFh
    3942                or      ah,  7
    4043                mov     [esi], eax
    41                 mov     esi, LVT1       ; Program LVT1 to NMI and unmask
     44
     45                mov     esi, LVT_LINT1  ; Program LINT1 to NMI and unmask
    4246                mov     eax, [esi]
    4347                and     eax, 0FFFE00FFh
    4448                or      ah,  4
    4549                mov     [esi], eax
     50
    4651                call    pmode_exit
    4752                popf
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