Add __lwp_getprivate_fast
This commit is contained in:
parent
a9de2ef0c9
commit
3c5c08e46b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mcontext.h,v 1.8 2011/02/24 04:28:45 joerg Exp $ */
|
||||
/* $NetBSD: mcontext.h,v 1.9 2011/04/07 10:20:29 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -109,4 +109,12 @@ typedef struct {
|
||||
|
||||
#define __UCONTEXT_SIZE 256
|
||||
|
||||
static __inline void *
|
||||
__lwp_getprivate_fast(void)
|
||||
{
|
||||
void *rv;
|
||||
__asm("mrc p15, 0, %0, c13, c0, 3" : "=r"(rv));
|
||||
return rv;
|
||||
}
|
||||
|
||||
#endif /* !_ARM_MCONTEXT_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: types.h,v 1.18 2010/12/22 01:04:23 matt Exp $ */
|
||||
/* $NetBSD: types.h,v 1.19 2011/04/07 10:20:29 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -84,6 +84,7 @@ typedef volatile int __cpu_simple_lock_t;
|
||||
#define __HAVE_SYSCALL_INTERN
|
||||
#define __HAVE_MINIMAL_EMUL
|
||||
#define __HAVE_CPU_DATA_FIRST
|
||||
#define __HAVE___LWP_GETPRIVATE_FAST
|
||||
|
||||
#if defined(_KERNEL)
|
||||
#define __HAVE_RAS
|
||||
|
Loading…
Reference in New Issue
Block a user