Module Name:    src
Committed By:   matt
Date:           Thu Feb 16 10:51:33 UTC 2012

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]: mips_fixup.c

Log Message:
Use (intptr_t) when casting pointers to get proper sign extension.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.13 -r1.1.2.14 src/sys/arch/mips/mips/mips_fixup.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/mips/mips/mips_fixup.c
diff -u src/sys/arch/mips/mips/mips_fixup.c:1.1.2.13 src/sys/arch/mips/mips/mips_fixup.c:1.1.2.14
--- src/sys/arch/mips/mips/mips_fixup.c:1.1.2.13	Thu Feb  9 20:01:21 2012
+++ src/sys/arch/mips/mips/mips_fixup.c	Thu Feb 16 10:51:33 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_fixup.c,v 1.1.2.13 2012/02/09 20:01:21 matt Exp $	*/
+/*	mips_fixup.c,v 1.1.2.13 2012/02/09 20:01:21 matt Exp	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_fixup.c,v 1.1.2.13 2012/02/09 20:01:21 matt Exp $");
+__KERNEL_RCSID(0, "mips_fixup.c,v 1.1.2.13 2012/02/09 20:01:21 matt Exp");
 
 #include "opt_mips3_wired.h"
 #include "opt_multiprocessor.h"
@@ -138,9 +138,9 @@ mips_fixup_exceptions(mips_fixup_callbac
 	}
 
 	if (fixed)
-		mips_icache_sync_range((vaddr_t)start,
+		mips_icache_sync_range((intptr_t)start,
 		   sizeof(start[0]) * (end - start));
-		
+
 	return fixed;
 }
 

Reply via email to