comparison src/gearsTools/lib/Gears/Context/Template/XV6.pm @ 160:db7d79dea533

include usr.h and types.h in XV6.pm
author tobaru
date Sun, 22 Dec 2019 18:52:56 +0900 (2019-12-22)
parents 124c59d99fc9
children
comparison
equal deleted inserted replaced
159:e8b76f16de1a 160:db7d79dea533
33 #ifdef XV6KERNEL 33 #ifdef XV6KERNEL
34 extern void* kmalloc (int order); 34 extern void* kmalloc (int order);
35 #define calloc(a,b) kmalloc((a)*(b)) 35 #define calloc(a,b) kmalloc((a)*(b))
36 #define free(a) kfree(a) 36 #define free(a) kfree(a)
37 #else 37 #else
38 #include "types.h"
39 #include "user.h"
38 #define calloc(a,b) malloc((a)*(b)) 40 #define calloc(a,b) malloc((a)*(b))
39 #define free(a) free(a) 41 #define free(a) free(a)
40 #endif 42 #endif
41 43
42 #define ALLOCATE_SIZE 20000000 44 #define ALLOCATE_SIZE 20000000