xref: /minix3/sys/arch/evbarm/include/loadfile_machdep.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc 
2*84d9c625SLionel Sambuc #define BOOT_ELF32
3*84d9c625SLionel Sambuc 
4*84d9c625SLionel Sambuc #define LOAD_KERNEL	(LOAD_ALL & ~LOAD_TEXTA)
5*84d9c625SLionel Sambuc #define COUNT_KERNEL	(COUNT_ALL & ~COUNT_TEXTA)
6*84d9c625SLionel Sambuc 
7*84d9c625SLionel Sambuc #define LOADADDR(a)		(((u_long)(a)))
8*84d9c625SLionel Sambuc #define ALIGNENTRY(a)		((u_long)(a))
9*84d9c625SLionel Sambuc #define READ(f, b, c)		read((f), (void*)LOADADDR(b), (c))
10*84d9c625SLionel Sambuc #define BCOPY(s, d, c)		memcpy((void*)LOADADDR(d), (void*)(s), (c))
11*84d9c625SLionel Sambuc #define BZERO(d, c)		memset((void*)LOADADDR(d), 0, (c))
12*84d9c625SLionel Sambuc #define WARN(a)			(void)(printf a,			\
13*84d9c625SLionel Sambuc 				       printf((errno ? ": %s\n" : "\n"), \
14*84d9c625SLionel Sambuc 					      strerror(errno)))
15*84d9c625SLionel Sambuc #define PROGRESS(a)		(void)printf a
16*84d9c625SLionel Sambuc #define ALLOC(a)		alloc(a)
17*84d9c625SLionel Sambuc #define DEALLOC(a, b)		dealloc(a, b)
18*84d9c625SLionel Sambuc #define OKMAGIC(a)		((a) == ZMAGIC)
19