Subject: Re: i386 bootblocks & NT [was: Re: CVS commit: src]
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Matthias Drochner <drochner@zel459.zel.kfa-juelich.de>
List: port-i386
Date: 04/14/1999 15:40:21
feyrer@rfhs8012.fh-regensburg.de said:
> The modification for this is quite simple, passing just one different
> argument to a certain interrupt (i386 assemly speak). I've done this
> for 1.3 (see http://rfhs8012.fh-regensburg.de/~feyrer/NetBSD/NT/), but
> lost the sources.  

The bootstrap passes the BIOS drive number in %dl. To override this,
you'll need to modify start_bootsect.S at the beginning, near the
comment:
	# bootstrap passes us drive number in %dl
Simply put a "movb $0x81, %dl" there, perhaps kick out the
floppy stuff completely. It's quite obvious.

(This could be made a patchable variable eventually.)

best regards
Matthias