]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - kernel/tests/aspace.cc
random kernel stuff
[polintos/scott/priv.git] / kernel / tests / aspace.cc
index 22ca29fae2ddaba83f954857b6d2b983721b824f..8471c37883fd7f644e249a1c44b6364c46c13550 100644 (file)
@@ -17,6 +17,7 @@
 #include <kern/time.h>
 #include <kern/thread.h>
 #include <kern/mem.h>
+#include <kern/process.h>
 
 using namespace Mem;
 namespace Mem {
@@ -56,7 +57,8 @@ void thread(void *arg)
               (void *)stacked[0], (void *)stacked[1],
               (void *)mappables[0], (void *)mappables[1]);
                
-       char *buf = new char[100000];
+//     char *buf = new char[100000];
+       char *buf = (char *)alloc_pages(25);
        printf("buf %p\n", buf);
        
        char *abuf = (char *)((((ulong)buf) + 4095) & ~4095);