Home | History | Annotate | Line # | Download | only in include
loadfile_machdep.h revision 1.1.24.1
      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)			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)
     24