Skip to content

Commit 3094d2c

Browse files
committedJun 24, 2010
[romprefix] Do not check for BBS compatibility
The existence and usage of the BEV entry point is covered by the PnP spec, not the BBS spec; the BBS spec merely describes a policy for selecting the boot device order. iPXE should therefore check only for a PnP BIOS in order to decide whether or not to hook INT19. Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 719b498 commit 3094d2c

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed
 

‎src/arch/i386/prefix/romprefix.S

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER )
1414
#define PMM_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'M' << 16 ) + ( 'M' << 24 ) )
1515
#define PCI_SIGNATURE ( 'P' + ( 'C' << 8 ) + ( 'I' << 16 ) + ( ' ' << 24 ) )
1616
#define STACK_MAGIC ( 'L' + ( 'R' << 8 ) + ( 'E' << 16 ) + ( 'T' << 24 ) )
17-
#define PNP_GET_BBS_VERSION 0x60
1817
#define PMM_ALLOCATE 0x0000
1918
#define PMM_FIND 0x0001
2019
#define PMM_HANDLE_BASE ( ( ( 'F' - 'A' + 1 ) << 26 ) + \
@@ -283,17 +282,8 @@ pnp_scan:
283282
movw $init_message_pnp, %si
284283
xorw %di, %di
285284
call print_message
286-
/* Check for BBS */
287-
pushw %es:0x1b /* Real-mode data segment */
288-
pushw %ds /* &(bbs_version) */
289-
pushw $bbs_version
290-
pushw $PNP_GET_BBS_VERSION
291-
lcall *%es:0xd
292-
addw $8, %sp
293-
testw %ax, %ax
294-
je got_bbs
295-
no_pnp: /* Not PnP-compliant - therefore cannot be BBS-compliant */
296-
no_bbs: /* Not BBS-compliant - must hook INT 19 */
285+
jmp pnp_done
286+
no_pnp: /* Not PnP-compliant - hook INT 19 */
297287
movw $init_message_int19, %si
298288
xorw %di, %di
299289
call print_message
@@ -304,12 +294,7 @@ no_bbs: /* Not BBS-compliant - must hook INT 19 */
304294
pushw %gs /* %gs contains runtime %cs */
305295
pushw $int19_entry
306296
popl %es:( 0x19 * 4 )
307-
jmp bbs_done
308-
got_bbs: /* BBS compliant - no need to hook INT 19 */
309-
movw $init_message_bbs, %si
310-
xorw %di, %di
311-
call print_message
312-
bbs_done:
297+
pnp_done:
313298

314299
/* Check for PMM */
315300
movw $( 0xe000 - 1 ), %bx
@@ -545,9 +530,6 @@ init_message_pci:
545530
init_message_pnp:
546531
.asciz " PnP"
547532
.size init_message_pnp, . - init_message_pnp
548-
init_message_bbs:
549-
.asciz " BBS"
550-
.size init_message_bbs, . - init_message_bbs
551533
init_message_pmm:
552534
.asciz " PMM"
553535
.size init_message_pmm, . - init_message_pmm
@@ -617,14 +599,6 @@ decompress_to:
617599
.long 0
618600
.size decompress_to, . - decompress_to
619601

620-
/* BBS version
621-
*
622-
* Filled in by BBS BIOS. We ignore the value.
623-
*/
624-
bbs_version:
625-
.word 0
626-
.size bbs_version, . - bbs_version
627-
628602
/* Boot Execution Vector entry point
629603
*
630604
* Called by the PnP BIOS when it wants to boot us.

0 commit comments

Comments
 (0)