Merged trunk and subtype.
[cacao.git] / src / vm / jit / trap.c
index db04a216e1ba64f5dc787daf273bcd0c6cd1d473..258530b1ef17f9b700a54593ae5caa2562de8b92 100644 (file)
 
 #include "toolbox/logging.h"
 
-#include "vm/exceptions.h"
+#include "vm/exceptions.hpp"
+#include "vm/options.h"
+#include "vm/os.hpp"
 #include "vm/vm.hpp"
 
-#include "vm/jit/code.h"
+#include "vm/jit/code.hpp"
 #include "vm/jit/disass.h"
-#include "vm/jit/jit.h"
+#include "vm/jit/jit.hpp"
 #include "vm/jit/methodtree.h"
-#include "vm/jit/patcher-common.h"
-#include "vm/jit/replace.h"
+#include "vm/jit/patcher-common.hpp"
+#include "vm/jit/replace.hpp"
 #include "vm/jit/stacktrace.hpp"
 
-#include "vmcore/options.h"
-#include "vmcore/system.h"
-
 
 /**
  * Mmap the first memory page to support hardware exceptions and check
@@ -68,9 +67,9 @@ void trap_init(void)
        /* mmap a memory page at address 0x0, so our hardware-exceptions
           work. */
 
-       pagesize = system_getpagesize();
+       pagesize = os_getpagesize();
 
-       (void) system_mmap_anonymous(NULL, pagesize, PROT_NONE, MAP_PRIVATE | MAP_FIXED);
+       (void) os_mmap_anonymous(NULL, pagesize, PROT_NONE, MAP_PRIVATE | MAP_FIXED);
 #endif
 
        TRACESUBSYSTEMINITIALIZATION("trap_init");