summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/boot0
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1999-06-19 21:40:55 +0000
committerrnordier <rnordier@FreeBSD.org>1999-06-19 21:40:55 +0000
commit156dba23c09d80bcd76782220ea83192c6bd4fed (patch)
tree4ec919cadd6be41bff79131b78e5d90503a6f7eb /sys/boot/i386/boot0
parentf3313ef5a08a4dbb3b76e564ecb2d96f762eb8ae (diff)
downloadFreeBSD-src-156dba23c09d80bcd76782220ea83192c6bd4fed.zip
FreeBSD-src-156dba23c09d80bcd76782220ea83192c6bd4fed.tar.gz
Provide for enabling/disabling each slice individually.
Diffstat (limited to 'sys/boot/i386/boot0')
-rw-r--r--sys/boot/i386/boot0/Makefile4
-rw-r--r--sys/boot/i386/boot0/boot0.s4
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/boot/i386/boot0/Makefile b/sys/boot/i386/boot0/Makefile
index 4e890da..7bbeb65 100644
--- a/sys/boot/i386/boot0/Makefile
+++ b/sys/boot/i386/boot0/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.5 1998/10/17 14:20:25 rnordier Exp $
+# $Id: Makefile,v 1.6 1998/10/19 19:13:52 rnordier Exp $
PROG= boot0
NOMAN=
@@ -8,7 +8,7 @@ BINMODE= 444
M4?= m4
-B0FLAGS=0x0
+B0FLAGS=0xf
B0TICKS=0xb6
ORG= 0x600
diff --git a/sys/boot/i386/boot0/boot0.s b/sys/boot/i386/boot0/boot0.s
index f6806c1..d140741 100644
--- a/sys/boot/i386/boot0/boot0.s
+++ b/sys/boot/i386/boot0/boot0.s
@@ -13,7 +13,7 @@
# purpose.
#
-# $Id: boot0.s,v 1.8 1999/03/01 02:42:47 rnordier Exp $
+# $Id: boot0.s,v 1.9 1999/06/18 21:49:18 rnordier Exp $
# A 512-byte boot manager.
@@ -71,6 +71,8 @@ main.2: movbr1(_dl,_FAKE,_bp_) # Save drive number
movwir(partbl+0x4,_bx) # Partition table
xorl %edx,%edx # Item number
main.3: movbr1(_ch,-0x4,_bx_) # Zero active flag
+ btwr1(_dx,_FLAGS,_bp_) # Entry enabled?
+ jnc main.5 # No
movb0r(_bx_,_al) # Load type
movwir(tables,_di) # Lookup tables
movb $TBL0SZ,%cl # Number of entries
OpenPOWER on IntegriCloud