mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
Merge branch 'master' into 3leaf
This commit is contained in:
commit
b62a9ee0f4
@ -403,6 +403,11 @@ include $(MEDIA_DEPS)
|
||||
allroms allzroms : all%s : $(foreach ROM,$(ROMS),$(BIN)/$(ROM).%)
|
||||
all%s : $(foreach DRIVER,$(DRIVERS),$(BIN)/$(DRIVER).%)
|
||||
|
||||
# Alias for gpxe.%
|
||||
#
|
||||
$(BIN)/etherboot.% : $(BIN)/gpxe.%
|
||||
ln -sf $(notdir $<) $@
|
||||
|
||||
# The compression utilities
|
||||
#
|
||||
$(NRV2B) : util/nrv2b.c $(MAKEDEPS)
|
||||
|
@ -543,8 +543,9 @@ void register_int13_drive ( struct int13_drive *drive ) {
|
||||
|
||||
/* Assign drive number if none specified, update BIOS drive count */
|
||||
get_real ( num_drives, BDA_SEG, BDA_NUM_DRIVES );
|
||||
if ( ! drive->drive )
|
||||
drive->drive = ( num_drives | 0x80 );
|
||||
if ( ( drive->drive & 0xff ) == 0xff )
|
||||
drive->drive = num_drives;
|
||||
drive->drive |= 0x80;
|
||||
num_drives++;
|
||||
if ( num_drives <= ( drive->drive & 0x7f ) )
|
||||
num_drives = ( ( drive->drive & 0x7f ) + 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user