From 7fa243e59edec0137130d30fbc205001e5460a70 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 4 Dec 1998 20:22:36 +0000 Subject: [PATCH] Pass the symbol table size, like a.out. --- sys/arch/alpha/alpha/machdep.c | 6 +++--- sys/arch/bebox/bebox/machdep.c | 4 ++-- sys/arch/macppc/macppc/machdep.c | 4 ++-- sys/arch/ofppc/ofppc/machdep.c | 4 ++-- sys/arch/sparc64/sparc64/autoconf.c | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index ff9c6c0cffb6..fc496d85ebce 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.156 1998/11/20 03:58:23 ross Exp $ */ +/* $NetBSD: machdep.c,v 1.157 1998/12/04 20:22:36 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -82,7 +82,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.156 1998/11/20 03:58:23 ross Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.157 1998/12/04 20:22:36 thorpej Exp $"); #include #include @@ -901,7 +901,7 @@ nobootinfo: */ #ifdef DDB db_machine_init(); - ddb_init(ksym_start, ksym_end); + ddb_init((int)(ksym_end - ksym_start), ksym_start, ksym_end); if (boothowto & RB_KDB) Debugger(); #endif diff --git a/sys/arch/bebox/bebox/machdep.c b/sys/arch/bebox/bebox/machdep.c index e59e45035337..1d6f8fd9d290 100644 --- a/sys/arch/bebox/bebox/machdep.c +++ b/sys/arch/bebox/bebox/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.28 1998/11/18 09:05:18 sakamoto Exp $ */ +/* $NetBSD: machdep.c,v 1.29 1998/12/04 20:22:37 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -349,7 +349,7 @@ initppc(startkernel, endkernel, args, btinfo) pmap_bootstrap(startkernel, endkernel); #ifdef DDB - ddb_init(startsym, endsym); + ddb_init((int)(endsym - startsym), startsym, endsym); #endif #if NIPKDB > 0 /* diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index c1ba67d3400f..69d6bdadae03 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.22 1998/10/19 22:09:20 tron Exp $ */ +/* $NetBSD: machdep.c,v 1.23 1998/12/04 20:22:37 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -318,7 +318,7 @@ initppc(startkernel, endkernel, args) } #ifdef DDB - /* ddb_init(startsym, endsym); */ + /* ddb_init((int)(endsym - startsym), startsym, endsym); */ #endif #if NIPKDB > 0 /* diff --git a/sys/arch/ofppc/ofppc/machdep.c b/sys/arch/ofppc/ofppc/machdep.c index 758f31f107a5..228b2b37ced3 100644 --- a/sys/arch/ofppc/ofppc/machdep.c +++ b/sys/arch/ofppc/ofppc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.30 1998/10/19 22:09:19 tron Exp $ */ +/* $NetBSD: machdep.c,v 1.31 1998/12/04 20:22:37 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -271,7 +271,7 @@ initppc(startkernel, endkernel, args) } #ifdef DDB - /* ddb_init(startsym, endsym); */ + /* ddb_init((int)(endsym - startsym), startsym, endsym); */ #endif #if NIPKDB > 0 /* diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index ea093d0b85f1..7f0a9e32a24f 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.9 1998/10/06 18:58:09 thorpej Exp $ */ +/* $NetBSD: autoconf.c,v 1.10 1998/12/04 20:22:37 thorpej Exp $ */ /* * Copyright (c) 1996 @@ -213,7 +213,7 @@ bootstrap(nctx) #ifdef DDB db_machine_init(); #ifdef DB_ELF_SYMBOLS - ddb_init(ssym, esym); /* No symbols as yet */ + ddb_init((int)(esym - ssym), ssym, esym); /* No symbols as yet */ #else ddb_init(); #endif