From owner-svn-src-user@FreeBSD.ORG Tue Apr 6 17:56:48 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7B9F1065702; Tue, 6 Apr 2010 17:56:48 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A87FF8FC17; Tue, 6 Apr 2010 17:56:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o36HumH1037265; Tue, 6 Apr 2010 17:56:48 GMT (envelope-from jmallett@svn.freebsd.org) Received: (from jmallett@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o36Hum7s037263; Tue, 6 Apr 2010 17:56:48 GMT (envelope-from jmallett@svn.freebsd.org) Message-Id: <201004061756.o36Hum7s037263@svn.freebsd.org> From: Juli Mallett Date: Tue, 6 Apr 2010 17:56:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r206277 - user/jmallett/octeon/sys/mips/mips X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 17:56:48 -0000 Author: jmallett Date: Tue Apr 6 17:56:48 2010 New Revision: 206277 URL: http://svn.freebsd.org/changeset/base/206277 Log: o) Don't check whether the uarea is below kseg2 in the N64 case. Not sure what case should replace this, but it's wrong for XKSEG. o) Set all 64 bits of EntryHi on N64 when loading uarea. Modified: user/jmallett/octeon/sys/mips/mips/swtch.S Modified: user/jmallett/octeon/sys/mips/mips/swtch.S ============================================================================== --- user/jmallett/octeon/sys/mips/mips/swtch.S Tue Apr 6 16:23:12 2010 (r206276) +++ user/jmallett/octeon/sys/mips/mips/swtch.S Tue Apr 6 17:56:48 2010 (r206277) @@ -294,8 +294,10 @@ blocked_loop: PTR_L a2, TD_PCB(a1) PTR_S a2, PC_CURPCB(a3) PTR_L v0, TD_KSTACK(a1) +#if !defined(__mips_n64) PTR_LI s0, (MIPS_KSEG2_START+VM_KERNEL_ALLOC_OFFSET) # If Uarea addr is below kseg2, bltu v0, s0, sw2 # no need to insert in TLB. +#endif lw a1, TD_UPTE(s7) # t0 = u. pte /* * Wiredown the USPACE of newproc in TLB entry#0. Check whether target @@ -309,24 +311,25 @@ blocked_loop: tlbp # probe VPN HAZARD_DELAY mfc0 s0, COP_0_TLB_INDEX - nop + HAZARD_DELAY PTR_LI t1, MIPS_KSEG0_START # invalidate tlb entry bltz s0, entry0set nop sll s0, PAGE_SHIFT addu t1, s0 - mtc0 t1, COP_0_TLB_HI + MTC0 t1, COP_0_TLB_HI mtc0 zero, COP_0_TLB_LO0 mtc0 zero, COP_0_TLB_LO1 HAZARD_DELAY tlbwi HAZARD_DELAY - mtc0 v0, COP_0_TLB_HI # set VPN again + MTC0 v0, COP_0_TLB_HI # set VPN again entry0set: /* SMP!! - Works only for unshared TLB case - i.e. no v-cpus */ mtc0 zero, COP_0_TLB_INDEX # TLB entry #0 + HAZARD_DELAY mtc0 a1, COP_0_TLB_LO0 # upte HAZARD_DELAY addu a1, TLBLO_PFN_ODD