xref: /xnu-10002.81.5/tests/rump.h (revision 5e3eaea39dcf651e66cb99ba7d70e32cc4a99587)
1 // Copyright (c) 2020 Apple Computer, Inc. All rights reserved.
2 
3 #include <stdlib.h>
4 #include <os/atomic_private.h>
5 
6 #define kheap_alloc(h, s, f) calloc(1, s)
7 #define kfree(p, s) free(p)
8 #define kalloc_type(t, f) calloc(1, sizeof(t))
9 #define kfree_type(t, p) free(p)
10 #define kalloc_data(s, f) calloc(1, s)
11 #define kfree_data(p, s) free(p)
12 #define panic(...) T_ASSERT_FAIL(__VA_ARGS__)
13 #define PE_i_can_has_debugger(...) true
14 #define SECURITY_READ_ONLY_LATE(X) X
15 #define __startup_func
16 
17 #define ml_get_cpu_count() 6
18