search for: detect_bios_type

Displaying 4 results from an estimated 4 matches for "detect_bios_type".

2009 Mar 30
0
[PATCH 3/3] v2: isohdpfx: Ctrl-key press forces load from first hard disk
...+ /* Provide a way for the user to force boot from first hard-disk by pressing a Ctrl key */ +get_shift_keys: /* Provide a way for the user to force CHS addressing mode by pressing either Shift key */ + testb $0x04, 0x0417 /* I/O memory-mapped keyboard shift flags: control key pressed? */ + jz detect_bios_type +force_first_hard_disk: + movb $0x80, -6(%bp) /* offset from top-of-stack to drive number; force it to be first hard disk */ + movb $0x80, %dl /* change the drive number about to be used in detect_bios_type */ + +detect_bios_type: /* Check to see if we have EBIOS */ pushw %dx /* drive number...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
.../ + testb $0x04, 0x0417 /* I/O memory-mapped keyboard shift flags: control key pressed? */ + jz shift_test +force_first_hard_disk: + movb $0x80, -6(%bp) /* offset from top-of-stack to drive number; force it to be first hard disk */ + movb $0x80, %dl /* change the drive number about to be used in detect_bios_type */ +shift_test: + testb $0x03, 0x0417 /* left or right shift-keys pressed? */ + jnz use_chs_addressing /* if so, skip detection of BIOS type */ + +detect_bios_type: + /* try to use the BIOS extension for LBA (Logical Block Addressing). */ + /* inherit drive number in DL from BIOS */ + movw...
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...S addressing mode by pressing either Shift key */ + movb $0x02, %ah /* function: get keyboard shift flags */ + int $0x16 /* read keys; shift flags returned in AL */ + testb $0x03, %al /* left or right shift-keys pressed? */ + jnz use_chs_addressing /* if so, skip detection of BIOS type */ + +detect_bios_type: + /* try to use the BIOS extension for LBA (Logical Block Addressing). */ + movb (drive_number), %dl + movw $0x55aa, %bx /* required */ + movb $0x41, %ah /* query presence of extended BIOS functions (EBIOS) */ + int $0x13 /* call BIOS */ + jc use_chs_addressing /* carry flag will be se...
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...S addressing mode by pressing either Shift key */ + movb $0x02, %ah /* function: get keyboard shift flags */ + int $0x16 /* read keys; shift flags returned in AL */ + testb $0x03, %al /* left or right shift-keys pressed? */ + jnz use_chs_addressing /* if so, skip detection of BIOS type */ + +detect_bios_type: + /* try to use the BIOS extension for LBA (Logical Block Addressing). */ + movb (drive_number), %dl + movw $0x55aa, %bx /* required */ + movb $0x41, %ah /* query presence of extended BIOS functions (EBIOS) */ + int $0x13 /* call BIOS */ + jc use_chs_addressing /* carry flag will be se...