Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
/* Write the app (and possibly the uarea etc..) to disk */
for (i = LOBANK; i < HIBANK; i++) {
uint8_t pg = *pt++;
+ if (i == HIBANK - 1)
+ size = TOP_SIZE;
+ else
+ size = 0x10;
if (pg != PAGE_INVALID) {
#ifdef CONFIG_VIDMAP8
if (pg == PAGE_VIDEO)
base += 0x2000;
base &= 0xE000; /* Snap to bank alignment */
blk += size;
- if (i == HIBANK - 1)
- size = TOP_SIZE;
- else
- size = 0x10;
}
pagemap_free(p);
p->p_page = 0;
for (i = LOBANK; i < HIBANK; i++) {
uint8_t pg = *pt++;
+ if (i == HIBANK - 1)
+ size = TOP_SIZE;
+ else
+ size = 0x10; /* 8K */
if (pg != PAGE_INVALID) {
#ifdef CONFIG_VIDMAP8
if (pg == PAGE_VIDEO)
blk += size;
/* FIXME: if we have a shared common then the size is not 0x10
for the last block */
- if (i == HIBANK - 1)
- size = TOP_SIZE;
- else
- size = 0x10; /* 8K */
}
#ifdef DEBUG
kprintf("%x: swapin done %d\n", p, p->p_page);