diff options
| author | Brian Feldman <green@FreeBSD.org> | 2002-10-07 22:21:16 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2002-10-07 22:21:16 +0000 |
| commit | 6c598ff61513f66147aa20f9d455136b10da953d (patch) | |
| tree | 9d67308148fcbf83ab6922063ef36e73bc8a2539 /sys/boot | |
| parent | 15cfc1833c833343931f44ce32ac3ae46552af47 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/i386/boot2/Makefile | 4 | ||||
| -rw-r--r-- | sys/boot/i386/gptboot/Makefile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index 05567c1724fa..7f3e2f70f645 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/Makefile @@ -24,6 +24,7 @@ BTX= ${.OBJDIR}/../btx BTX= ${.CURDIR}/../btx .endif +REL1= 0x700 ORG1= 0x7c00 ORG2= 0x1000 @@ -68,7 +69,8 @@ boot2.o: boot2.c ${.CURDIR}/../../common/ufsread.c boot2.h: boot1.out ${NM} -t d ${.ALLSRC} | awk '/([0-9])+ T xread/ \ - { x = $$1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }' \ + { x = $$1 - ORG1; \ + printf("#define XREADORG %#x\n", REL1 + x) }' \ ORG1=`printf "%d" ${ORG1}` > boot2.h boot2: boot2.ldr boot2.bin ${BTX}/btx/btx diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile index 05567c1724fa..7f3e2f70f645 100644 --- a/sys/boot/i386/gptboot/Makefile +++ b/sys/boot/i386/gptboot/Makefile @@ -24,6 +24,7 @@ BTX= ${.OBJDIR}/../btx BTX= ${.CURDIR}/../btx .endif +REL1= 0x700 ORG1= 0x7c00 ORG2= 0x1000 @@ -68,7 +69,8 @@ boot2.o: boot2.c ${.CURDIR}/../../common/ufsread.c boot2.h: boot1.out ${NM} -t d ${.ALLSRC} | awk '/([0-9])+ T xread/ \ - { x = $$1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }' \ + { x = $$1 - ORG1; \ + printf("#define XREADORG %#x\n", REL1 + x) }' \ ORG1=`printf "%d" ${ORG1}` > boot2.h boot2: boot2.ldr boot2.bin ${BTX}/btx/btx |
