aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/i386/boot2/Makefile
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2009-03-07 22:05:58 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2009-03-07 22:05:58 +0000
commit20b2c39f0c88f4c567133ef7f1572b1902ec5773 (patch)
tree3da9948a9edaaf7482d016b7a5f968f89218990d /sys/boot/i386/boot2/Makefile
parent4fcda8938e68596f05c3b6944a71738b3c5d41e0 (diff)
downloadsrc-20b2c39f0c88f4c567133ef7f1572b1902ec5773.tar.gz
src-20b2c39f0c88f4c567133ef7f1572b1902ec5773.zip
Revert the part of change 107879 that employs the unused bytes after
the disklabel in the 2nd sector for boot code. Even with both UFS1 and UFS2 supported, there's enough bytes left that we don't have to nibble from the disklabel. Thus, the entire 2nd sector is now reserved for the disklabel, which makes the bootcode compatible again with disklabels that have more than 8 partitions -- such as those created and supported by gpart. i386: 135 bytes available amd64: 151 bytes available Ok'd by: jhb
Notes
Notes: svn path=/head/; revision=189500
Diffstat (limited to 'sys/boot/i386/boot2/Makefile')
-rw-r--r--sys/boot/i386/boot2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 81e407d9af15..ab5a69a8ba46 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -70,7 +70,7 @@ boot2.ld: boot2.ldr boot2.bin ${BTXKERN}
-o ${.TARGET} -P 1 boot2.bin
boot2.ldr:
- dd if=/dev/zero of=${.TARGET} bs=276 count=1
+ dd if=/dev/zero of=${.TARGET} bs=512 count=1
boot2.bin: boot2.out
objcopy -S -O binary boot2.out ${.TARGET}