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,6 +403,11 @@ include $(MEDIA_DEPS)
403 403
 allroms allzroms : all%s : $(foreach ROM,$(ROMS),$(BIN)/$(ROM).%)
404 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 411
 # The compression utilities
407 412
 #
408 413
 $(NRV2B) : util/nrv2b.c $(MAKEDEPS)

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

@@ -543,8 +543,9 @@ void register_int13_drive ( struct int13_drive *drive ) {
543 543
 
544 544
 	/* Assign drive number if none specified, update BIOS drive count */
545 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 549
 	num_drives++;
549 550
 	if ( num_drives <= ( drive->drive & 0x7f ) )
550 551
 		num_drives = ( ( drive->drive & 0x7f ) + 1 );

Loading…
Cancel
Save