]> Zhao Yanbai Git Server - minix.git/commitdiff
libc/mallocdebug: Make arch-generic
authorArun Thomas <arun@minix3.org>
Fri, 10 Aug 2012 20:41:28 +0000 (22:41 +0200)
committerArun Thomas <arun@minix3.org>
Fri, 10 Aug 2012 20:45:35 +0000 (22:45 +0200)
lib/libc/minix/malloc-debug.c

index b2f466fbcafdcbc8924be1cdf12385a5c5b47bb8..c9edc7367df680a2b8754f0337e8bdec26b912e1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <assert.h>
 #include <machine/vm.h>
+#include <machine/vmparam.h>
 #include <minix/minlib.h>
 #include <stdlib.h>
 #include <string.h>
@@ -24,8 +25,6 @@ static int reenter;
 #define LOG(args)
 #endif
 
-#define PAGE_SIZE I386_PAGE_SIZE
-
 struct block {
        size_t size;
        unsigned magic;