4 #define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA)
5 #define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA)
7 #define LOADADDR(a) (((u_long)(a)))
8 #define ALIGNENTRY(a) ((u_long)(a))
9 #define READ(f, b, c) read((f), (void*)LOADADDR(b), (c))
10 #define BCOPY(s, d, c) memcpy((void*)LOADADDR(d), (void*)(s), (c))
11 #define BZERO(d, c) memset((void*)LOADADDR(d), 0, (c))
12 #define WARN(a) do { \
15 (void)printf(": %s\n", \
19 } while(/* CONSTCOND */0)
20 #define PROGRESS(a) (void)printf a
21 #define ALLOC(a) alloc(a)
22 #define DEALLOC(a, b) dealloc(a, b)
23 #define OKMAGIC(a) ((a) == ZMAGIC)