VirtualBox

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


Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
Message:

*: spelling fixes, thanks Timeless!

Location:
trunk/src/VBox/Devices/PC/BIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r33208 r33540  
    3737
    3838
    39 // ROM BIOS compatability entry points:
     39// ROM BIOS compatibility entry points:
    4040// ===================================
    4141// $e05b ; POST Entry Point
     
    8282//   - Current code can not boot and emulate a hard-disk
    8383//     the bios will panic otherwise
    84 //   - Current code also use memory in EBDA segement.
     84//   - Current code also use memory in EBDA segment.
    8585//   - I used cmos byte 0x3D to store extended information on boot-device
    8686//   - Code has to be modified modified to handle multiple cdrom drives
     
    786786    unsigned char filler1[0x3D];
    787787
    788     // FDPT - Can be splitted in data members if needed
     788    // FDPT - Can be split into data members if needed
    789789    unsigned char fdpt0[0x10];
    790790    unsigned char fdpt1[0x10];
     
    18421842
    18431843    /* ------------------- keyboard side ------------------------*/
    1844     /* reset kerboard and self test  (keyboard side) */
     1844    /* reset keyboard and self test  (keyboard side) */
    18451845    outb(0x60, 0xff);
    18461846
     
    19391939//--------------------------------------------------------------------------
    19401940// shutdown_status_panic
    1941 //   called when the shutdown statsu is not implemented, displays the status
     1941//   called when the shutdown status is not implemented, displays the status
    19421942//--------------------------------------------------------------------------
    19431943  void
     
    22302230#define ATA_CB_DC_NIEN   0x02  // disable interrupts
    22312231
    2232 // Most mandtory and optional ATA commands (from ATA-3),
     2232// Most mandatory and optional ATA commands (from ATA-3),
    22332233#define ATA_CMD_CFA_ERASE_SECTORS            0xC0
    22342234#define ATA_CMD_CFA_REQUEST_EXT_ERR_CODE     0x03
     
    29742974ata_in_16:
    29752975        rep
    2976           insw ;; CX words transfered from port(DX) to ES:[DI]
     2976          insw ;; CX words transferred from port(DX) to ES:[DI]
    29772977        jmp ata_in_done
    29782978
    29792979ata_in_32:
    29802980        rep
    2981           insd ;; CX dwords transfered from port(DX) to ES:[DI]
     2981          insd ;; CX dwords transferred from port(DX) to ES:[DI]
    29822982
    29832983ata_in_done:
     
    31673167        seg ES
    31683168        rep
    3169           outsw ;; CX words transfered from port(DX) to ES:[SI]
     3169          outsw ;; CX words transferred from port(DX) to ES:[SI]
    31703170        jmp ata_out_done
    31713171
     
    31733173        seg ES
    31743174        rep
    3175           outsd ;; CX dwords transfered from port(DX) to ES:[SI]
     3175          outsd ;; CX dwords transferred from port(DX) to ES:[SI]
    31763176
    31773177ata_out_done:
     
    33263326      seg ES
    33273327      rep
    3328         outsw ;; CX words transfered from port(DX) to ES:[SI]
     3328        outsw ;; CX words transferred from port(DX) to ES:[SI]
    33293329
    33303330      pop  bp
     
    34663466ata_packet_in_16:
    34673467        rep
    3468           insw ;; CX words transfered tp port(DX) to ES:[DI]
     3468          insw ;; CX words transferred tp port(DX) to ES:[DI]
    34693469        jmp ata_packet_after
    34703470
    34713471ata_packet_in_32:
    34723472        rep
    3473           insd ;; CX dwords transfered to port(DX) to ES:[DI]
     3473          insd ;; CX dwords transferred to port(DX) to ES:[DI]
    34743474
    34753475ata_packet_after:
     
    47504750                    case 0:
    47514751                        set_e820_range(ES, regs.u.r16.di,
    4752 #ifndef VBOX /** @todo Upstream sugggests the following, needs checking. (see next as well) */
     4752#ifndef VBOX /** @todo Upstream suggests the following, needs checking. (see next as well) */
    47534753                                       0x0000000L, 0x0009f000L, 0, 0, 1);
    47544754#else
     
    47594759                    case 1:
    47604760                        set_e820_range(ES, regs.u.r16.di,
    4761 #ifndef VBOX /** @todo Upstream sugggests the following, needs checking. (see next as well) */
     4761#ifndef VBOX /** @todo Upstream suggests the following, needs checking. (see next as well) */
    47624762                                       0x0009f000L, 0x000a0000L, 0, 0, 2);
    47634763#else
     
    48474847                        /* fall thru */
    48484848#else  /* !VBOX */
    4849                         /* Maping of memory above 4 GB */
     4849                        /* Mapping of memory above 4 GB */
    48504850                        set_e820_range(ES, regs.u.r16.di, 0x00000000L,
    48514851                        extra_lowbits_memory_size, 1, extra_highbits_memory_size
     
    68466846
    68476847        rep
    6848           insw ;; CX words transfered from port(DX) to ES:[DI]
     6848          insw ;; CX words transferred from port(DX) to ES:[DI]
    68496849
    68506850i13_f02_done:
     
    69876987        seg ES
    69886988        rep
    6989           outsw ;; CX words tranfered from ES:[SI] to port(DX)
     6989          outsw ;; CX words transferred from ES:[SI] to port(DX)
    69906990
    69916991        ;; store real SI register back to temp bx
     
    83678367  // if BX_ELTORITO_BOOT is not defined, old behavior
    83688368  //   check bit 5 in CMOS reg 0x2d.  load either 0x00 or 0x80 into DL
    8369   //   in preparation for the intial INT 13h (0=floppy A:, 0x80=C:)
     8369  //   in preparation for the initial INT 13h (0=floppy A:, 0x80=C:)
    83708370  //     0: system boot sequence, first drive C: then A:
    83718371  //     1: system boot sequence, first drive A: then C:
     
    92839283  or   bl, #0x70   ;; drive1 determined, multi-rate, has changed line
    92849284f1_missing:
    9285                    ;; leave high bits in BL zerod
     9285                   ;; leave high bits in BL zero'd
    92869286  mov  0x048f, bl  ;; put new val in BDA (diskette controller information)
    92879287  ;; -----------------------------------------------------------------
     
    96999699  ;;
    97009700  ;; 14,318,180 Hz clock
    9701   ;;   /3 = 4,772,726 Hz fed to orginal 5Mhz CPU
     9701  ;;   /3 = 4,772,726 Hz fed to original 5Mhz CPU
    97029702  ;;   /4 = 1,193,181 Hz fed to timer
    97039703  ;;   /65536 (maximum timer count) = 18.20650736 ticks/second
     
    97129712  ;;           (BcdToBin(hours)   * 65543.427)
    97139713  ;; To get a little more accuracy, since Im using integer
    9714   ;; arithmatic, I use:
     9714  ;; arithmetic, I use:
    97159715  ;;   ticks = (BcdToBin(seconds) * 18206507) / 1000000 +
    97169716  ;;           (BcdToBin(minutes) * 10923904) / 10000 +
     
    1138311383
    1138411384  ;; set vector 0x79 to zero
    11385   ;; this is used by 'gardian angel' protection system
     11385  ;; this is used by 'guardian angel' protection system
    1138611386  SET_INT_VECTOR(0x79, #0, #0)
    1138711387
     
    1139211392
    1139311393  ;; Manufacturing Test 40:12
    11394   ;;   zerod out above
     11394  ;;   zero'd out above
    1139511395
    1139611396#ifndef VBOX
    1139711397  ;; Warm Boot Flag 0040:0072
    1139811398  ;;   value of 1234h = skip memory checks
    11399   ;;   zerod out above
     11399  ;;   zero'd out above
    1140011400#endif /* !VBOX */
    1140111401
     
    1148611486  call detect_parport
    1148711487  shl bx, #0x0e
    11488   mov ax, 0x410   ; Equipment word bits 14..15 determing # parallel ports
     11488  mov ax, 0x410   ; Equipment word bits 14..15 determine # parallel ports
    1148911489  and ax, #0x3fff
    1149011490  or  ax, bx ; set number of parallel ports
     
    1150511505  call detect_serial
    1150611506  shl bx, #0x09
    11507   mov ax, 0x410   ; Equipment word bits 9..11 determing # serial ports
     11507  mov ax, 0x410   ; Equipment word bits 9..11 determine # serial ports
    1150811508  and ax, #0xf1ff
    1150911509  or  ax, bx ; set number of serial port
  • trunk/src/VBox/Devices/PC/BIOS/scsi.c

    r33106 r33540  
    108108
    109109        rep
    110           insb ;; CX dwords transfered from port(DX) to ES:[DI]
     110          insb ;; CX dwords transferred from port(DX) to ES:[DI]
    111111
    112112        pop  bp
     
    168168
    169169        rep
    170           outsb ;; CX bytes transfered from DS:[SI] to port(DX)
     170          outsb ;; CX bytes transferred from DS:[SI] to port(DX)
    171171
    172172        pop  ds
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