VirtualBox

儲存庫 vbox 的更動 12494


忽略:
時間撮記:
2008-9-16 下午03:34:41 (16 年 以前)
作者:
vboxsync
訊息:

BIOS: moved some code around to allow more init calls

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r12477 r12494  
    95649564  iret
    95659565
     9566;--------------------
     9567#ifdef VBOX
     9568init_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 */
    95669594
    95679595;--------------------
     
    1100211030  SET_INT_VECTOR(0x10, #0xF000, #int10_handler)
    1100311031
     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 */
    1100411038  ;; PIC
    1100511039  mov al, #0x11 ; send initialisation commands
     
    1102511059#endif
    1102611060  out  0xa1, AL ;slave  pic: unmask IRQ 12, 13, 14
     11061#endif /* !VBOX */
    1102711062
    1102811063#if BX_ROMBIOS32
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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