
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
24 lines
713 B
C
24 lines
713 B
C
|
|
#define BOOT_ELF32
|
|
|
|
#define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA)
|
|
#define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA)
|
|
|
|
#define LOADADDR(a) (((u_long)(a)))
|
|
#define ALIGNENTRY(a) ((u_long)(a))
|
|
#define READ(f, b, c) read((f), (void*)LOADADDR(b), (c))
|
|
#define BCOPY(s, d, c) memcpy((void*)LOADADDR(d), (void*)(s), (c))
|
|
#define BZERO(d, c) memset((void*)LOADADDR(d), 0, (c))
|
|
#define WARN(a) do { \
|
|
(void)printf a; \
|
|
if (errno) \
|
|
(void)printf(": %s\n", \
|
|
strerror(errno)); \
|
|
else \
|
|
(void)printf("\n"); \
|
|
} while(/* CONSTCOND */0)
|
|
#define PROGRESS(a) (void)printf a
|
|
#define ALLOC(a) alloc(a)
|
|
#define DEALLOC(a, b) dealloc(a, b)
|
|
#define OKMAGIC(a) ((a) == ZMAGIC)
|