VirtualBox

儲存庫 vbox 的更動 48069


忽略:
時間撮記:
2013-8-26 下午05:02:08 (11 年 以前)
作者:
vboxsync
訊息:

BIOS: Return more sensible and bigger DPTs (see #6481).

位置:
trunk/src/VBox/Devices/PC/BIOS
檔案:
新增 1 筆資料
修改 4 筆資料

圖例:

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

    r46952 r48069  
    4646        ata.c \
    4747        floppy.c \
     48        floppyt.c \
    4849        eltorito.c \
    4950        boot.c \
  • trunk/src/VBox/Devices/PC/BIOS/floppy.c

    r48067 r48069  
    4444#include "biosint.h"
    4545
     46extern uint16_t get_floppy_dpt(uint8_t drive_type);
     47
    4648//////////////////////
    4749// FLOPPY functions //
     
    10571059        /* set es & di to point to 11 byte diskette param table in ROM */
    10581060        ES = 0xF000;    // @todo: any way to make this relocatable?
    1059         DI = (uint16_t)&diskette_param_table;
     1061        DI = get_floppy_dpt(drive_type);
    10601062        CLEAR_CF(); // success
    10611063        /* disk status not changed upon success */
  • trunk/src/VBox/Devices/PC/BIOS/makefile

    r42770 r48069  
    3030        wasm -fo=.obj $(AFLAGS) $(DEFS) $<
    3131
    32 OBJS =  bios.obj print.obj ata.obj floppy.obj eltorito.obj boot.obj &
    33         keyboard.obj disk.obj serial.obj system.obj timepci.obj logo.obj &
    34         ps2mouse.obj parallel.obj scsi.obj ahci.obj apm.obj apm_pm.obj &
    35         pcibios.obj pciutil.obj vds.obj pcibio32.obj pci32.obj orgs.obj
     32OBJS =  bios.obj print.obj ata.obj floppy.obj floppyt.obj eltorito.obj &
     33        boot.obj keyboard.obj disk.obj serial.obj system.obj &
     34        timepci.obj logo.obj ps2mouse.obj parallel.obj scsi.obj &
     35        ahci.obj apm.obj apm_pm.obj pcibios.obj pciutil.obj vds.obj &
     36        pcibio32.obj pci32.obj orgs.obj
    3637
    3738vbxbios.rom : vbxbios.bin
  • trunk/src/VBox/Devices/PC/BIOS/notes.txt

    r46234 r48069  
    4646  and clear the memory. For those, the FDPT must be in the BIOS ROM area, or
    4747  the OS will destroy it (even when it's at 0:300 in the IVT).
     48
     49- Windows NT (including XP) uses INT 13h/08h to obtain the DPT for each floppy
     50  drive. NT assumes a 13-byte DPT which includes the number of tracks. NT will
     51  refuse to read more tracks than the DPT specifies and formats as many tracks
     52  as the DPT specifies.
    4853
    4954- Windows 98 SE boot CD uses 32-bit registers in real mode and will fail in
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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