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 Add __lwp_getprivate_fast
details: https://anonhg.NetBSD.org/src/rev/9c568d88f256
branches: trunk
changeset: 763928:9c568d88f256
user: matt <matt%NetBSD.org@localhost>
date: Thu Apr 07 10:20:29 2011 +0000
description:
Add __lwp_getprivate_fast
diffstat:
sys/arch/arm/include/mcontext.h | 10 +++++++++-
sys/arch/arm/include/types.h | 3 ++-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 4d0e927bed60 -r 9c568d88f256 sys/arch/arm/include/mcontext.h
--- a/sys/arch/arm/include/mcontext.h Thu Apr 07 10:07:11 2011 +0000
+++ b/sys/arch/arm/include/mcontext.h Thu Apr 07 10:20:29 2011 +0000
@@ -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 @@
#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_ */
diff -r 4d0e927bed60 -r 9c568d88f256 sys/arch/arm/include/types.h
--- a/sys/arch/arm/include/types.h Thu Apr 07 10:07:11 2011 +0000
+++ b/sys/arch/arm/include/types.h Thu Apr 07 10:20:29 2011 +0000
@@ -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 @@
#define __HAVE_SYSCALL_INTERN
#define __HAVE_MINIMAL_EMUL
#define __HAVE_CPU_DATA_FIRST
+#define __HAVE___LWP_GETPRIVATE_FAST
#if defined(_KERNEL)
#define __HAVE_RAS
Home |
Main Index |
Thread Index |
Old Index