Correct a bug in adding 0x700 to a number.
This commit is contained in:
parent
881f1b527c
commit
6c65d531e9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user