public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0a8342
)
Kernel binman: fix off-by-one error, allowing COMMONMEM to use the last
author
Will Sowerbutts
<will@sowerbutts.com>
Wed, 28 Dec 2016 17:26:06 +0000
(17:26 +0000)
committer
Will Sowerbutts
<will@sowerbutts.com>
Wed, 28 Dec 2016 17:33:37 +0000
(17:33 +0000)
byte of RAM (at address 0xFFFF).
Kernel/tools/binman.c
patch
|
blob
|
history
diff --git
a/Kernel/tools/binman.c
b/Kernel/tools/binman.c
index
72de486
..
25dc4a1
100644
(file)
--- a/
Kernel/tools/binman.c
+++ b/
Kernel/tools/binman.c
@@
-109,9
+109,9
@@
int main(int argc, char *argv[])
ProcessMap(map);
fclose(map);
- if (s__COMMONMEM > 0xFFFF || s__COMMONMEM + l__COMMONMEM > 0x
FFFF
) {
+ if (s__COMMONMEM > 0xFFFF || s__COMMONMEM + l__COMMONMEM > 0x
10000
) {
fprintf(stderr, "Move common down by at least %d bytes\n",
- s__COMMONMEM + l__COMMONMEM - 0x
FFFF
);
+ s__COMMONMEM + l__COMMONMEM - 0x
10000
);
exit(1);
}