Module Name: src Committed By: matt Date: Thu Feb 2 18:32:16 UTC 2012
Modified Files: src/sys/arch/vax/include: mcontext.h Log Message: For fast lwp_getprivate, just do the chmk $SYS_lwp_getprivate inline. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 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.7 src/sys/arch/vax/include/mcontext.h:1.8 --- src/sys/arch/vax/include/mcontext.h:1.7 Sat Jan 7 16:47:42 2012 +++ src/sys/arch/vax/include/mcontext.h Thu Feb 2 18:32:16 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.7 2012/01/07 16:47:42 chs Exp $ */ +/* $NetBSD: mcontext.h,v 1.8 2012/02/02 18:32:16 matt Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -73,12 +73,16 @@ typedef struct { #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) +#ifndef _KERNEL +#include <sys/syscall.h> + static __inline void * __lwp_getprivate_fast(void) { register void *tcb __asm("r0"); - __asm("chmu $1" ::: "r0"); + __asm("chmk %0" :: "i"(SYS__lwp_getprivate) : "r0"); return tcb; } +#endif #endif /* !_VAX_MCONTEXT_H_ */