]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - kernel/tests/aspace.cc
Untangle header file interdependencies.
[polintos/scott/priv.git] / kernel / tests / aspace.cc
index 18f9d05a4d751716a505936980c79d54ff6c1f48..694021ebc507dd16c7bab594d3dc1a1c2cebb902 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 {
@@ -36,7 +37,7 @@ void thread(void *arg)
        
        printf("aspace %p created\n", (void *)aspace);
        
-       AddrSpace *kaspace = AddrSpace::classptr(aspace);
+       ProcAddrSpace *kaspace = static_cast<ProcAddrSpace *>(AddrSpace::classptr(aspace));
        
        printf("kaspace %p\n", kaspace);