1 
2 #define BOOT_ELF32
3 
4 #define LOAD_KERNEL	(LOAD_ALL & ~LOAD_TEXTA)
5 #define COUNT_KERNEL	(COUNT_ALL & ~COUNT_TEXTA)
6 
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)			(void)(printf a,			\
13 				       printf((errno ? ": %s\n" : "\n"), \
14 					      strerror(errno)))
15 #define PROGRESS(a)		(void)printf a
16 #define ALLOC(a)		alloc(a)
17 #define DEALLOC(a, b)		dealloc(a, b)
18 #define OKMAGIC(a)		((a) == ZMAGIC)
19