Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/news68k/news68k Handle ELF case on calling ddb_init().
details: https://anonhg.NetBSD.org/src/rev/7b09543290aa
branches: trunk
changeset: 502146:7b09543290aa
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jan 12 17:17:49 2001 +0000
description:
Handle ELF case on calling ddb_init().
XXX should use bootinfo to pass symbol addresses.
diffstat:
sys/arch/news68k/news68k/machdep.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 9483d683518a -r 7b09543290aa sys/arch/news68k/news68k/machdep.c
--- a/sys/arch/news68k/news68k/machdep.c Fri Jan 12 17:11:50 2001 +0000
+++ b/sys/arch/news68k/news68k/machdep.c Fri Jan 12 17:17:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.12 2000/09/15 15:55:10 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.13 2001/01/12 17:17:49 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -64,9 +64,14 @@
#include <sys/core.h>
#include <sys/kcore.h>
+#ifdef DDB
#include <machine/db_machdep.h>
#include <ddb/db_sym.h>
#include <ddb/db_extern.h>
+#ifdef __ELF__
+#include <sys/exec_elf.h>
+#endif
+#endif
#include <machine/autoconf.h>
#include <machine/cpu.h>
@@ -1244,7 +1249,12 @@
extern int end;
extern int *esym;
+#ifndef __ELF__
ddb_init(*(int *)&end, ((int *)&end) + 1, esym);
+#else
+ ddb_init((int)esym - (int)&end - sizeof(Elf32_Ehdr),
+ (void *)&end, esym);
+#endif
}
if (boothowto & RB_KDB)
Debugger();
Home |
Main Index |
Thread Index |
Old Index