summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>2000-12-12 17:27:35 +0000
committerrnordier <rnordier@FreeBSD.org>2000-12-12 17:27:35 +0000
commit66009fc30e546f777cfc59b5d148551c44f649e2 (patch)
treefeda7ce692a58dbd41ef9d67909c2934af3d5af0 /sys/boot
parent6c60f0fcfdb0427636059eab44f448aa2498f8fc (diff)
downloadFreeBSD-src-66009fc30e546f777cfc59b5d148551c44f649e2.zip
FreeBSD-src-66009fc30e546f777cfc59b5d148551c44f649e2.tar.gz
Add a magic number, for easier identification of boot0. At present,
this is used only by libdisk.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/boot0/boot0.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/i386/boot0/boot0.s b/sys/boot/i386/boot0/boot0.s
index 5c2eca2..dcc4164 100644
--- a/sys/boot/i386/boot0/boot0.s
+++ b/sys/boot/i386/boot0/boot0.s
@@ -28,6 +28,7 @@
.set TBL1SZ,0xc # Table 1 size
.set MAGIC,0xaa55 # Magic: bootable
+ .set B0MAGIC,0xbb66 # Identification
.set KEY_ENTER,0x1c # Enter key scan code
.set KEY_F1,0x3b # F1 key scan code
@@ -393,7 +394,10 @@ os_linux: .ascii "Linu"; .byte 'x'|0x80
os_freebsd: .ascii "Free"
os_bsd: .ascii "BS"; .byte 'D'|0x80
- .org PRT_OFF-0xc,0x90
+ .org PRT_OFF-0xe,0x90
+
+ .word B0MAGIC # Magic number
+
#
# These values are sometimes changed before writing back to the drive
# Be especially careful that nxtdrv: must come after drive:, as it
OpenPOWER on IntegriCloud