Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pmax/pmax Since we know the start and end addresses...



details:   https://anonhg.NetBSD.org/src/rev/5fca5927debc
branches:  trunk
changeset: 474041:5fca5927debc
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Jun 26 17:03:48 1999 +0000

description:
Since we know the start and end addresses of the symbol table, subtract
these and pass as the first parameter of ddb_init().  We used to pass
the contents of the start of the symbol table cast to an int, which for
an ELF kernel is "0x7f ELF" - not quite the symbol table size!  How this
used to ever work I dunno...

diffstat:

 sys/arch/pmax/pmax/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6d68eb77b406 -r 5fca5927debc sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Sat Jun 26 16:58:12 1999 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Sat Jun 26 17:03:48 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.147 1999/06/08 23:42:37 simonb Exp $     */
+/*     $NetBSD: machdep.c,v 1.148 1999/06/26 17:03:48 simonb Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.147 1999/06/08 23:42:37 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.148 1999/06/26 17:03:48 simonb Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -334,7 +334,7 @@
        db_machine_init();
        /* init symbols if present */
        if (esym)
-               ddb_init(*(int *)&end, ((int *)&end) + 1, (int*)esym);
+               ddb_init(esym - ssym, ssym, esym);
        if (boothowto & RB_KDB)
                Debugger();
 #endif



Home | Main Index | Thread Index | Old Index