Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc port to userspace.



details:   https://anonhg.NetBSD.org/src/rev/08aad9725e6f
branches:  trunk
changeset: 764241:08aad9725e6f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Apr 14 08:59:09 2011 +0000

description:
port to userspace.

diffstat:

 sys/arch/sparc/sparc/db_disasm.c |  9 +++++++--
 sys/arch/sparc/sparc/db_trace.c  |  5 +++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r eb87d8760786 -r 08aad9725e6f sys/arch/sparc/sparc/db_disasm.c
--- a/sys/arch/sparc/sparc/db_disasm.c  Thu Apr 14 08:21:06 2011 +0000
+++ b/sys/arch/sparc/sparc/db_disasm.c  Thu Apr 14 08:59:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.19 2007/02/21 22:59:52 thorpej Exp $ */
+/*     $NetBSD: db_disasm.c,v 1.20 2011/04/14 08:59:09 mrg Exp $ */
 
 /*
  * Copyright (c) 1994 David S. Miller, davem%nadzieja.rutgers.edu@localhost
@@ -32,17 +32,22 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.19 2007/02/21 22:59:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.20 2011/04/14 08:59:09 mrg Exp $");
 
 #include <sys/param.h>
 #include <machine/db_machdep.h>
 #include <machine/instr.h>
 #include <ddb/db_sym.h>
 #include <ddb/db_interface.h>
+#include <ddb/db_user.h>
 #include <ddb/db_extern.h>
 #include <ddb/db_output.h>
 #include <ddb/db_access.h>
 
+#ifndef _KERNEL
+#include <stdlib.h>
+#endif
+
 /* Sign extend values */
 #define        SIGNEX(v,width)         ({                                      \
        unsigned s = sizeof(long)*8-(width);                            \
diff -r eb87d8760786 -r 08aad9725e6f sys/arch/sparc/sparc/db_trace.c
--- a/sys/arch/sparc/sparc/db_trace.c   Thu Apr 14 08:21:06 2011 +0000
+++ b/sys/arch/sparc/sparc/db_trace.c   Thu Apr 14 08:59:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.33 2010/07/01 02:38:27 rmind Exp $ */
+/*     $NetBSD: db_trace.c,v 1.34 2011/04/14 08:59:09 mrg Exp $ */
 
 /*
  * Mach Operating System
@@ -27,10 +27,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.33 2010/07/01 02:38:27 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.34 2011/04/14 08:59:09 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
+#include <sys/cpu.h>
 #include <machine/db_machdep.h>
 
 #include <ddb/db_access.h>



Home | Main Index | Thread Index | Old Index