Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include Provide a curpcb



details:   https://anonhg.NetBSD.org/src/rev/ce605eabff6b
branches:  trunk
changeset: 1008621:ce605eabff6b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 29 09:06:38 2020 +0000

description:
Provide a curpcb

diffstat:

 sys/arch/arm/include/cpu.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 0db0633e1ffd -r ce605eabff6b sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h        Sun Mar 29 09:01:32 2020 +0000
+++ b/sys/arch/arm/include/cpu.h        Sun Mar 29 09:06:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.109 2020/03/09 18:43:52 christos Exp $       */
+/*     $NetBSD: cpu.h,v 1.110 2020/03/29 09:06:38 skrll Exp $  */
 
 /*
  * Copyright (c) 1994-1996 Mark Brinicombe.
@@ -262,6 +262,7 @@
 #ifndef curlwp
 #define        curlwp          (curcpu()->ci_curlwp)
 #endif
+#define curpcb         ((struct pcb *)lwp_getpcb(curlwp))
 
 #define CPU_INFO_ITERATOR      int
 #if defined(_MODULE) || defined(MULTIPROCESSOR)



Home | Main Index | Thread Index | Old Index