Changeset 38544 in vbox
- Timestamp:
- Aug 26, 2011 10:02:44 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73696
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r38527 r38544 11318 11318 #define LVT1 0xFEE00360 11319 11319 11320 ;; Program LVT0/LVT1 entries in the local APIC. Some Linux kernels (e.g., RHEL4 11321 ;; SMP 32-bit) expect the entries to be unmasked in virtual wire mode. 11322 11323 setup_lapic: 11320 ;; Run initialization steps which must be performed in protected mode. 11321 ;; - Program LVT0/LVT1 entries in the local APIC. Some Linux kernels (e.g., RHEL4 11322 ;; SMP 32-bit) expect the entries to be unmasked in virtual wire mode. 11323 ;; - Clear the CD and NW bits in CR0; these are not relevant (except possibly 11324 ;; under AMD-V with nested paging) but the guest should see the right state. 11325 11326 pmode_setup: 11327 push eax 11328 push esi 11324 11329 pushf 11325 11330 cli ;; Interrupts would kill us! … … 11335 11340 or ah, #0x04 11336 11341 mov [esi], eax 11342 mov eax, cr0 ;; Clear CR0.CD and CR0.NW 11343 and eax, #0x9fffffff 11344 mov cr0, eax 11337 11345 call pmode_exit 11338 11346 popf 11347 pop esi 11348 pop eax 11339 11349 ret 11340 11350 … … 11466 11476 11467 11477 cli 11468 mov ax, #0x7 70011478 mov ax, #0x7C00 11469 11479 mov sp, ax 11470 11480 xor ax, ax … … 11518 11528 call _log_bios_start 11519 11529 11530 call pmode_setup 11531 11520 11532 ;; set all interrupts to default handler 11521 11533 xor bx, bx ;; offset index … … 11712 11724 call pcibios_init_irqs 11713 11725 #endif 11714 call setup_lapic11715 11726 call rom_scan 11716 11727
Note:
See TracChangeset
for help on using the changeset viewer.