diff options
author | 2011-04-05 17:17:06 +0000 | |
---|---|---|
committer | 2011-04-05 17:17:06 +0000 | |
commit | cc8d932dddb1b7380362f7c4c200ce6b51a3574d (patch) | |
tree | 85e5f1ea68a139d28866eff5809d7e78bece31ce | |
parent | Fix the previous commit: define ___cerror, no __cerror (diff) | |
download | wireguard-openbsd-cc8d932dddb1b7380362f7c4c200ce6b51a3574d.tar.xz wireguard-openbsd-cc8d932dddb1b7380362f7c4c200ce6b51a3574d.zip |
Provide macros for ssm/rsm.
-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 |