public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a11cf
)
bank16: if PROGBASE is non zero we do the maths wrong
author
Alan Cox
<alan@linux.intel.com>
Tue, 8 Jan 2019 17:05:18 +0000
(17:05 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 8 Jan 2019 17:05:18 +0000
(17:05 +0000)
None of our bank16k ports have a non zero progbase fortunately. Fix it anyway
Kernel/bank16k.c
patch
|
blob
|
history
diff --git
a/Kernel/bank16k.c
b/Kernel/bank16k.c
index
3da9730
..
54b8da0
100644
(file)
--- a/
Kernel/bank16k.c
+++ b/
Kernel/bank16k.c
@@
-122,7
+122,7
@@
int pagemap_alloc( ptptr p ){
int pagemap_realloc(usize_t code, usize_t size, usize_t stack)
{
int8_t have = maps_needed(udata.u_top);
- int8_t want = maps_needed(size);
+ int8_t want = maps_needed(size
+ PROGBASE
);
uint8_t *ptr = (uint8_t *) & udata.u_page;
int8_t i;
uint8_t update = 0;