Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Use GET_CURLWP



details:   https://anonhg.NetBSD.org/src/rev/971351eb36b4
branches:  trunk
changeset: 778542:971351eb36b4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Apr 03 14:18:14 2012 +0000

description:
Use GET_CURLWP

diffstat:

 sys/arch/hppa/hppa/lock_stubs.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2bbb986d0a7e -r 971351eb36b4 sys/arch/hppa/hppa/lock_stubs.S
--- a/sys/arch/hppa/hppa/lock_stubs.S   Tue Apr 03 14:15:47 2012 +0000
+++ b/sys/arch/hppa/hppa/lock_stubs.S   Tue Apr 03 14:18:14 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock_stubs.S,v 1.25 2012/04/03 14:15:47 skrll Exp $    */
+/*     $NetBSD: lock_stubs.S,v 1.26 2012/04/03 14:18:14 skrll Exp $    */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -37,6 +37,7 @@
 #include <machine/asm.h>
 #include <machine/mutex.h>
 #include <machine/reg.h>
+#include <machine/cpu.h>
 
 #include "assym.h"
 
@@ -151,7 +152,7 @@
 mutex_enter_crit_start:
        comib,= 0, %ret0, .Lenter_slowpath
 
-       mfctl   CR_CURLWP, %t2
+       GET_CURLWP(%t2)
 
        bv      %r0(%rp)
 mutex_enter_crit_end:



Home | Main Index | Thread Index | Old Index