Module Name: src
Committed By: skrll
Date: Sat Oct 8 08:19:22 UTC 2016
Modified Files:
src/sys/arch/mips/mips: mips_fixup.c
Log Message:
Sign extend VA for cache operations.
OK matt@
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 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.18 src/sys/arch/mips/mips/mips_fixup.c:1.19
--- src/sys/arch/mips/mips/mips_fixup.c:1.18 Thu Aug 18 19:25:34 2016
+++ src/sys/arch/mips/mips/mips_fixup.c Sat Oct 8 08:19:22 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_fixup.c,v 1.18 2016/08/18 19:25:34 skrll Exp $ */
+/* $NetBSD: mips_fixup.c,v 1.19 2016/10/08 08:19:22 skrll 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.18 2016/08/18 19:25:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_fixup.c,v 1.19 2016/10/08 08:19:22 skrll Exp $");
#include "opt_mips3_wired.h"
#include "opt_multiprocessor.h"
@@ -157,7 +157,7 @@ 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;
@@ -491,7 +491,7 @@ mips_fixup_stubs(uint32_t *start, uint32
if (sizeof(uint32_t [end - start]) > mips_cache_info.mci_picache_size)
mips_icache_sync_all();
else
- mips_icache_sync_range((vaddr_t)start,
+ mips_icache_sync_range((intptr_t)start,
sizeof(uint32_t [end - start]));
#ifdef DEBUG