Changeset 12494 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 16, 2008 3:34:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r12477 r12494 9564 9564 iret 9565 9565 9566 ;-------------------- 9567 #ifdef VBOX 9568 init_pic: 9569 ;; init PIC 9570 mov al, #0x11 ; send initialisation commands 9571 out 0x20, al 9572 out 0xa0, al 9573 mov al, #0x08 9574 out 0x21, al 9575 mov al, #0x70 9576 out 0xa1, al 9577 mov al, #0x04 9578 out 0x21, al 9579 mov al, #0x02 9580 out 0xa1, al 9581 mov al, #0x01 9582 out 0x21, al 9583 out 0xa1, al 9584 mov al, #0xb8 9585 out 0x21, AL ;master pic: unmask IRQ 0, 1, 2, 6 9586 #if BX_USE_PS2_MOUSE 9587 mov al, #0x8f 9588 #else 9589 mov al, #0x9f 9590 #endif 9591 out 0xa1, AL ;slave pic: unmask IRQ 12, 13, 14 9592 ret 9593 #endif /* VBOX */ 9566 9594 9567 9595 ;-------------------- … … 11002 11030 SET_INT_VECTOR(0x10, #0xF000, #int10_handler) 11003 11031 11032 #ifdef VBOX 11033 ;; moved the PIC initialization to another place as we need 11034 ;; some space for additions init calls. Otherwise this code 11035 ;; overlaps with the NMI handler at 0xe2c3 (fixed BIOS entry) 11036 call init_pic 11037 #else /* !VBOX */ 11004 11038 ;; PIC 11005 11039 mov al, #0x11 ; send initialisation commands … … 11025 11059 #endif 11026 11060 out 0xa1, AL ;slave pic: unmask IRQ 12, 13, 14 11061 #endif /* !VBOX */ 11027 11062 11028 11063 #if BX_ROMBIOS32
Note:
See TracChangeset
for help on using the changeset viewer.