comparison src/context.h @ 95:0ddcd561d975

fix make error
author tobaru
date Mon, 04 Nov 2019 17:24:00 +0900
parents 0956648d24e5
children d5c4016c65b8
comparison
equal deleted inserted replaced
94:0956648d24e5 95:0ddcd561d975
22 # endif 22 # endif
23 # endif 23 # endif
24 #endif 24 #endif
25 25
26 #ifdef XV6KERNEL 26 #ifdef XV6KERNEL
27 extern void* kmalloc (int order);
27 #define calloc(a,b) kmalloc((a)*(b)) 28 #define calloc(a,b) kmalloc((a)*(b))
28 #define free(a) kfree(a) 29 #define free(a) kfree(a)
29 #else 30 #else
30 #define calloc(a,b) malloc((a)*(b)) 31 #define calloc(a,b) malloc((a)*(b))
31 #define free(a) free(a) 32 #define free(a) free(a)