Module Name: src
Committed By: matt
Date: Tue Apr 12 18:24:28 UTC 2011
Modified Files:
src/sys/arch/vax/include: mcontext.h
Log Message:
Add __lwp_getprivate_fast
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/include/mcontext.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/vax/include/mcontext.h
diff -u src/sys/arch/vax/include/mcontext.h:1.5 src/sys/arch/vax/include/mcontext.h:1.6
--- src/sys/arch/vax/include/mcontext.h:1.5 Mon Apr 28 20:23:39 2008
+++ src/sys/arch/vax/include/mcontext.h Tue Apr 12 18:24:28 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: mcontext.h,v 1.5 2008/04/28 20:23:39 martin Exp $ */
+/* $NetBSD: mcontext.h,v 1.6 2011/04/12 18:24:28 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -70,4 +70,12 @@
#define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc)
+static __inline void *
+__lwp_getprivate_fast(void)
+{
+ register void *tcb __asm("r0");
+ __asm("chmu $1" ::: "r0");
+ return tcb;
+}
+
#endif /* !_VAX_MCONTEXT_H_ */