Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 sun4v: The %ver register is not ava...



details:   https://anonhg.NetBSD.org/src/rev/48c1346481e9
branches:  trunk
changeset: 353435:48c1346481e9
user:      palle <palle%NetBSD.org@localhost>
date:      Sat May 06 21:46:31 2017 +0000

description:
sun4v: The %ver register is not available on sun4v - use GET_MAXCWP introduced in rev. 1.361. Verified using qemu (sun4u and sun4v) and on real sun4v hw (t2000)

diffstat:

 sys/arch/sparc64/sparc64/locore.s |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 283b47410678 -r 48c1346481e9 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Sat May 06 21:34:51 2017 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Sat May 06 21:46:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.410 2017/04/18 20:02:50 palle Exp $       */
+/*     $NetBSD: locore.s,v 1.411 2017/05/06 21:46:31 palle Exp $       */
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -4936,9 +4936,8 @@
        bgu,pt  %xcc, 3b                                ! Next one?
         dec    8*16, %g5
 
-       rdpr    %ver, %g5
        stb     %g0, [%g6 + PCB_NSAVED]                 ! Clear them out so we won't do this again
-       and     %g5, CWP, %g5
+       GET_MAXCWP %g5
        add     %g5, %g7, %g4
        dec     1, %g5                                  ! NWINDOWS-1-1
        wrpr    %g5, 0, %cansave



Home | Main Index | Thread Index | Old Index