Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/rmixl Avoid using curpcb (use lwp_getpcb(cu...



details:   https://anonhg.NetBSD.org/src/rev/df8bc26be996
branches:  trunk
changeset: 808969:df8bc26be996
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jun 10 22:32:32 2015 +0000

description:
Avoid using curpcb (use lwp_getpcb(curlwp)) instead.

diffstat:

 sys/arch/evbmips/rmixl/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 47309335852c -r df8bc26be996 sys/arch/evbmips/rmixl/machdep.c
--- a/sys/arch/evbmips/rmixl/machdep.c  Wed Jun 10 22:31:00 2015 +0000
+++ b/sys/arch/evbmips/rmixl/machdep.c  Wed Jun 10 22:32:32 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.15 2015/06/01 22:55:12 matt Exp $        */
+/*     $NetBSD: machdep.c,v 1.16 2015/06/10 22:32:32 matt Exp $        */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2015/06/01 22:55:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2015/06/10 22:32:32 matt Exp $");
 
 #define __INTR_PRIVATE
 
@@ -1018,7 +1018,7 @@
 {
 
        /* Take a snapshot before clobbering any registers. */
-       savectx(curpcb);
+       savectx(lwp_getpcb(curlwp));
 
        if (cold) {
                howto |= RB_HALT;



Home | Main Index | Thread Index | Old Index