svn commit: r204429 - user/jmallett/octeon/sys/mips/mips

Juli Mallett jmallett at FreeBSD.org
Sat Feb 27 19:44:45 UTC 2010


Author: jmallett
Date: Sat Feb 27 19:44:44 2010
New Revision: 204429
URL: http://svn.freebsd.org/changeset/base/204429

Log:
  Make hackish check for whether something is a kernel address more like right
  by not comparing signed quantities.

Modified:
  user/jmallett/octeon/sys/mips/mips/db_trace.c

Modified: user/jmallett/octeon/sys/mips/mips/db_trace.c
==============================================================================
--- user/jmallett/octeon/sys/mips/mips/db_trace.c	Sat Feb 27 19:43:14 2010	(r204428)
+++ user/jmallett/octeon/sys/mips/mips/db_trace.c	Sat Feb 27 19:44:44 2010	(r204429)
@@ -140,7 +140,7 @@ loop:
 	}
 	/* check for bad SP: could foul up next frame */
 	/*XXX MIPS64 bad: this hard-coded SP is lame */
-	if (sp & 3 || sp < 0x80000000) {
+	if (sp & 3 || (uintptr_t)sp < 0x80000000u) {
 		(*printfn) ("SP 0x%x: not in kernel\n", sp);
 		ra = 0;
 		subr = 0;


More information about the svn-src-user mailing list