Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2009 16:00:34 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198678 - head/sys/powerpc/powerpc
Message-ID:  <200910301600.n9UG0Ype050059@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Fri Oct 30 16:00:34 2009
New Revision: 198678
URL: http://svn.freebsd.org/changeset/base/198678

Log:
  Make procstat -k work on PowerPC by avoiding mistakenly using signed
  compares with a low address (0x1000) and a high address
  (the KVA kernel stack).

Modified:
  head/sys/powerpc/powerpc/stack_machdep.c

Modified: head/sys/powerpc/powerpc/stack_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/stack_machdep.c	Fri Oct 30 15:45:40 2009	(r198677)
+++ head/sys/powerpc/powerpc/stack_machdep.c	Fri Oct 30 16:00:34 2009	(r198678)
@@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/trap.h>
 
 static void
-stack_capture(struct stack *st, register_t frame)
+stack_capture(struct stack *st, vm_offset_t frame)
 {
 	vm_offset_t callpc;
 
@@ -76,7 +76,7 @@ stack_capture(struct stack *st, register
 void
 stack_save_td(struct stack *st, struct thread *td)
 {
-	register_t frame;
+	vm_offset_t frame;
 
 	if (TD_IS_SWAPPED(td))
 		panic("stack_save_td: swapped");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910301600.n9UG0Ype050059>