Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx Clear ti_ctx when flushing a TLB ent...
details: https://anonhg.NetBSD.org/src/rev/6bca0081adc1
branches: trunk
changeset: 744981:6bca0081adc1
user: rin <rin%NetBSD.org@localhost>
date: Thu Feb 20 05:34:37 2020 +0000
description:
Clear ti_ctx when flushing a TLB entry for clarity.
diffstat:
sys/arch/powerpc/ibm4xx/pmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r db7000521118 -r 6bca0081adc1 sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c Thu Feb 20 05:21:54 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c Thu Feb 20 05:34:37 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.78 2020/02/20 05:21:54 rin Exp $ */
+/* $NetBSD: pmap.c,v 1.79 2020/02/20 05:34:37 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.78 2020/02/20 05:21:54 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.79 2020/02/20 05:34:37 rin Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -1535,6 +1535,7 @@
#endif
/* Invalidate particular TLB entry regardless of locked status */
__asm volatile("tlbwe %0,%1,0" : :"r"(0),"r"(i));
+ tlb_info[i].ti_ctx = 0;
tlb_info[i].ti_flags = 0;
}
}
Home |
Main Index |
Thread Index |
Old Index