Module Name: src Committed By: cyber Date: Tue Dec 8 07:44:44 UTC 2009
Modified Files: src/sys/arch/sbmips/conf [matt-nb5-mips64]: GENERIC64 src/sys/arch/sbmips/sbmips [matt-nb5-mips64]: machdep.c Log Message: - Allow debugging symbols - Handle args processing in a way that CFE will let us use To generate a diff of this commit: cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/sbmips/conf/GENERIC64 cvs rdiff -u -r1.38.10.3 -r1.38.10.4 src/sys/arch/sbmips/sbmips/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sbmips/conf/GENERIC64 diff -u src/sys/arch/sbmips/conf/GENERIC64:1.1.2.2 src/sys/arch/sbmips/conf/GENERIC64:1.1.2.3 --- src/sys/arch/sbmips/conf/GENERIC64:1.1.2.2 Mon Sep 14 19:26:08 2009 +++ src/sys/arch/sbmips/conf/GENERIC64 Tue Dec 8 07:44:44 2009 @@ -4,3 +4,7 @@ makeoptions LP64="yes" options EXEC_ELF64 options COMPAT_NETBSD32 + +no options SYMTAB_SPACE +options SYMTAB_SPACE=640000 + Index: src/sys/arch/sbmips/sbmips/machdep.c diff -u src/sys/arch/sbmips/sbmips/machdep.c:1.38.10.3 src/sys/arch/sbmips/sbmips/machdep.c:1.38.10.4 --- src/sys/arch/sbmips/sbmips/machdep.c:1.38.10.3 Tue Dec 8 01:58:43 2009 +++ src/sys/arch/sbmips/sbmips/machdep.c Tue Dec 8 07:44:44 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.38.10.3 2009/12/08 01:58:43 cyber Exp $ */ +/* $NetBSD: machdep.c,v 1.38.10.4 2009/12/08 07:44:44 cyber Exp $ */ /* * Copyright 2000, 2001 @@ -58,9 +58,10 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38.10.3 2009/12/08 01:58:43 cyber Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38.10.4 2009/12/08 07:44:44 cyber Exp $"); #include "opt_ddb.h" +#include "opt_ddbparam.h" /* for SYMTAB_SPACE */ #include "opt_execfmt.h" #include <sys/param.h> @@ -292,6 +293,9 @@ case ' ': continue; case '-': + case 'a': + case 'd': + case 's': while (bootinfo.boot_flags[i] != ' ' && bootinfo.boot_flags[i] != '\0') { switch (bootinfo.boot_flags[i]) { @@ -350,9 +354,13 @@ * Initialize debuggers, and break into them, if appropriate. */ #if NKSYMS || defined(DDB) || defined(LKM) - ksyms_init(((uintptr_t)ksym_end - (uintptr_t)ksym_start), +#ifdef SYMTAB_SPACE + ksyms_init(0,0,0); +#else + ksyms_init(((vaddr_t)ksym_end - (vaddr_t)ksym_start), ksym_start, ksym_end); #endif +#endif if (boothowto & RB_KDB) { #if defined(DDB)