diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2011-04-05 17:17:07 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2011-04-05 17:17:07 +0000 |
commit | d4c4b70e6b80a4fccfa10cfd0afd5597c8859890 (patch) | |
tree | 5d139c78b2fa7d2adbd1c248371b775cfe6da6e6 /sys/arch/hppa64 | |
parent | c171172355fd8d71a5b7baad6385cfb02efec128 (diff) |
Provide macros for ssm/rsm.
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r-- | sys/arch/hppa64/include/cpufunc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/hppa64/include/cpufunc.h b/sys/arch/hppa64/include/cpufunc.h index 5a5c83af6ef..ea08254ebdf 100644 --- a/sys/arch/hppa64/include/cpufunc.h +++ b/sys/arch/hppa64/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.2 2011/03/23 16:54:35 pirofti Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.3 2011/04/05 17:17:06 jsing Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -31,4 +31,7 @@ #define mtsp(v,r) __asm __volatile ("mtsp %0,%1":: "r" (v), "i" (r)) +#define ssm(v,r) __asm __volatile("ssm %1,%0": "=r" (r): "i" (v)) +#define rsm(v,r) __asm __volatile("rsm %1,%0": "=r" (r): "i" (v)) + #endif |