etc/protocols - sync with NetBSD-8
[minix.git] / sys / arch / evbarm / include / loadfile_machdep.h
blob1b7befba8d41cf02d3d820b6b8c92023486f30de
2 #define BOOT_ELF32
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 { \
13 (void)printf a; \
14 if (errno) \
15 (void)printf(": %s\n", \
16 strerror(errno)); \
17 else \
18 (void)printf("\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)