Browse Source

Merge branch 'master' into 3leaf

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
b62a9ee0f4
2 changed files with 8 additions and 2 deletions
  1. 5
    0
      src/Makefile.housekeeping
  2. 3
    2
      src/arch/i386/interface/pcbios/int13.c

+ 5
- 0
src/Makefile.housekeeping View File

403
 allroms allzroms : all%s : $(foreach ROM,$(ROMS),$(BIN)/$(ROM).%)
403
 allroms allzroms : all%s : $(foreach ROM,$(ROMS),$(BIN)/$(ROM).%)
404
 all%s : $(foreach DRIVER,$(DRIVERS),$(BIN)/$(DRIVER).%)
404
 all%s : $(foreach DRIVER,$(DRIVERS),$(BIN)/$(DRIVER).%)
405
 
405
 
406
+# Alias for gpxe.%
407
+#
408
+$(BIN)/etherboot.% : $(BIN)/gpxe.%
409
+	ln -sf $(notdir $<) $@
410
+
406
 # The compression utilities
411
 # The compression utilities
407
 #
412
 #
408
 $(NRV2B) : util/nrv2b.c $(MAKEDEPS)
413
 $(NRV2B) : util/nrv2b.c $(MAKEDEPS)

+ 3
- 2
src/arch/i386/interface/pcbios/int13.c View File

543
 
543
 
544
 	/* Assign drive number if none specified, update BIOS drive count */
544
 	/* Assign drive number if none specified, update BIOS drive count */
545
 	get_real ( num_drives, BDA_SEG, BDA_NUM_DRIVES );
545
 	get_real ( num_drives, BDA_SEG, BDA_NUM_DRIVES );
546
-	if ( ! drive->drive )
547
-		drive->drive = ( num_drives | 0x80 );
546
+	if ( ( drive->drive & 0xff ) == 0xff )
547
+		drive->drive = num_drives;
548
+	drive->drive |= 0x80;
548
 	num_drives++;
549
 	num_drives++;
549
 	if ( num_drives <= ( drive->drive & 0x7f ) )
550
 	if ( num_drives <= ( drive->drive & 0x7f ) )
550
 		num_drives = ( ( drive->drive & 0x7f ) + 1 );
551
 		num_drives = ( ( drive->drive & 0x7f ) + 1 );

Loading…
Cancel
Save