Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mvme68k/include The LOAD_TEXTA flag is required whe...
details: https://anonhg.NetBSD.org/src/rev/0e1a6707d148
branches: trunk
changeset: 500065:0e1a6707d148
user: scw <scw%NetBSD.org@localhost>
date: Mon Dec 04 18:41:51 2000 +0000
description:
The LOAD_TEXTA flag is required when loading a.out kernels.
Also add some non-standalone versions for the benefit of installboot(8).
diffstat:
sys/arch/mvme68k/include/loadfile_machdep.h | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 498337a9742f -r 0e1a6707d148 sys/arch/mvme68k/include/loadfile_machdep.h
--- a/sys/arch/mvme68k/include/loadfile_machdep.h Mon Dec 04 18:40:05 2000 +0000
+++ b/sys/arch/mvme68k/include/loadfile_machdep.h Mon Dec 04 18:41:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_machdep.h,v 1.1 2000/11/30 21:20:43 scw Exp $ */
+/* $NetBSD: loadfile_machdep.h,v 1.2 2000/12/04 18:41:51 scw Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -43,14 +43,17 @@
#define BOOT_ELF
#define ELFSIZE 32
-#define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA)
-#define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA)
+#define LOAD_KERNEL LOAD_ALL
+#define COUNT_KERNEL COUNT_ALL
#define LOADADDR(a) (((u_long)(a)) + offset)
#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))
+
+#ifdef _STANDALONE
+
#define WARN(a) (void)(printf a, \
printf((errno ? ": %s\n" : "\n"), \
strerror(errno)))
@@ -59,4 +62,14 @@
#define FREE(a, b) free(a, b)
#define OKMAGIC(a) ((a) == NMAGIC)
+#else
+
+#define WARN(a) warn a
+#define PROGRESS(a) /* nothing */
+#define ALLOC(a) malloc(a)
+#define FREE(a, b) free(a)
+#define OKMAGIC(a) ((a) == OMAGIC)
+
+#endif
+
#endif /* __MACHINE_LOADFILE_MACHDEP_H */
Home |
Main Index |
Thread Index |
Old Index