NetBSD Problem Report #9907
Received: (qmail 17465 invoked from network); 17 Apr 2000 04:42:41 -0000
Message-Id: <200004170442.VAA20146@nbwww.isc.org>
Date: Sun, 16 Apr 2000 21:42:41 -0700 (PDT)
From: ur@a-r.org
Reply-To: ur@a-r.org
To: gnats-bugs@gnats.netbsd.org
Subject: upte's PG_G bit does not take effect on mips3_switch_resume()
X-Send-Pr-Version: www-1.0
>Number: 9907
>Category: port-mips
>Synopsis: upte's PG_G bit does not take effect on mips3_switch_resume()
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-mips-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 17 04:43:00 +0000 2000
>Closed-Date: Mon Jun 12 10:39:49 +0000 2000
>Last-Modified: Mon Jun 12 10:39:49 +0000 2000
>Originator: Shuichiro URATA
>Release: NetBSD/arc current
>Organization:
>Environment:
>Description:
In mips3_switch_resume(), write operation of TLB entry #1 sets PG_G bit
on lo0, but 0 on lo1. Actual PG_G bit on TLB entry is shared between
lo0 and lo1, and it's written logical AND value of lo0 and lo1.
So PG_G bit on lo0 doesn't take effect.
>How-To-Repeat:
>Fix:
Apply this patch.
*** locore_mips3.S.orig Sun Apr 16 20:09:41 2000
--- locore_mips3.S Sun Apr 16 20:50:18 2000
***************
*** 2251,2257 ****
mtc0 s0, MIPS_COP_0_TLB_INDEX # TLB entry #1
or a2, MIPS3_PG_G
dmtc0 a2, MIPS_COP_0_TLB_LO0 # lo0: upte[1] | PG_G
! dmtc0 zero, MIPS_COP_0_TLB_LO1 # lo1: none
nop
nop
tlbwi # set TLB entry #1
--- 2251,2258 ----
mtc0 s0, MIPS_COP_0_TLB_INDEX # TLB entry #1
or a2, MIPS3_PG_G
dmtc0 a2, MIPS_COP_0_TLB_LO0 # lo0: upte[1] | PG_G
! li a2, MIPS3_PG_G
! dmtc0 a2, MIPS_COP_0_TLB_LO1 # lo1: none
nop
nop
tlbwi # set TLB entry #1
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: soda
State-Changed-When: Mon Jun 12 03:39:02 PDT 2000
State-Changed-Why:
this patch was applied by nisimura@netbsd.org on locore_mips3.S revision 1.23.
Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.