浏览代码

Merge branch 'master' into 3leaf

tags/v0.9.3
Michael Brown 17 年前
父节点
当前提交
b62a9ee0f4
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 5
    0
      src/Makefile.housekeeping
  2. 3
    2
      src/arch/i386/interface/pcbios/int13.c

+ 5
- 0
src/Makefile.housekeeping 查看文件

@@ -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 查看文件

@@ -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 );

正在加载...
取消
保存