summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-10-28 15:22:13 +0000
committerkib <kib@FreeBSD.org>2014-10-28 15:22:13 +0000
commit29a659ef8ed79922c50d1882b3cb348338f05a09 (patch)
treea9e1676cf19a623c0f4086b90ec27b3fff07041b /sys/sparc64/include
parenta06e911fb2a286f878cb79baa795e39f92145199 (diff)
downloadFreeBSD-src-29a659ef8ed79922c50d1882b3cb348338f05a09.zip
FreeBSD-src-29a659ef8ed79922c50d1882b3cb348338f05a09.tar.gz
Add fueword(9) and casueword(9) functions. They are like fuword(9)
and casuword(9), but do not mix value read and indication of fault. I know (or remember) enough assembly to handle x86 and powerpc. For arm, mips and sparc64, implement fueword() and casueword() as wrappers around fuword() and casuword(), which means that the functions cannot distinguish between -1 and fault. On architectures where fueword() and casueword() are native, implement fuword() and casuword() using fueword() and casuword(), to reduce assembly code duplication. Sponsored by: The FreeBSD Foundation Tested by: pho MFC after: 2 weeks (ia64 needs treating)
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h
index e59f2c4..46bacae 100644
--- a/sys/sparc64/include/param.h
+++ b/sys/sparc64/include/param.h
@@ -146,4 +146,8 @@
#define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
+#ifdef _KERNEL
+#define NO_FUEWORD 1
+#endif
+
#endif /* !_SPARC64_INCLUDE_PARAM_H_ */
OpenPOWER on IntegriCloud