Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Sign extend VA for cache operations.



details:   https://anonhg.NetBSD.org/src/rev/35040d0f742e
branches:  trunk
changeset: 348183:35040d0f742e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Oct 08 08:19:22 2016 +0000

description:
Sign extend VA for cache operations.

OK matt@

diffstat:

 sys/arch/mips/mips/mips_fixup.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7c78a566425a -r 35040d0f742e sys/arch/mips/mips/mips_fixup.c
--- a/sys/arch/mips/mips/mips_fixup.c   Sat Oct 08 06:47:59 2016 +0000
+++ b/sys/arch/mips/mips/mips_fixup.c   Sat Oct 08 08:19:22 2016 +0000
@@ -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 @@
        }
 
        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 @@
        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



Home | Main Index | Thread Index | Old Index