summaryrefslogtreecommitdiff
path: root/src/stem/mem/mem.c
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-05 20:49:34 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-05 20:49:34 +0100
commit893244c8b5272df86da5d333332eec26ae8f15f2 (patch)
tree066a20bc1cca70f1aa97df616b2b4fc31d698b40 /src/stem/mem/mem.c
parentf9fd53ccbb1bb38ed21360179f44b27e2a729701 (diff)
downloadTCE-893244c8b5272df86da5d333332eec26ae8f15f2.tar.gz
TCE-893244c8b5272df86da5d333332eec26ae8f15f2.zip
More work, does not work
Diffstat (limited to 'src/stem/mem/mem.c')
-rw-r--r--src/stem/mem/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stem/mem/mem.c b/src/stem/mem/mem.c
index 02b3ac5..c96a29d 100644
--- a/src/stem/mem/mem.c
+++ b/src/stem/mem/mem.c
@@ -35,6 +35,7 @@ static void get_free_pages() {
freepages[freepagecount].virt = i;
freepages[freepagecount].phys = frame_alloc() * 0x1000;
page_map(pagedir_getPage(kernel_pagedir, i, 0), i, 0, 0);
+ freepagecount++;
} else {
if (mem_placementAddr & 0xFFFFF000) {
mem_placementAddr &= 0xFFFFF000;