From d4c4b70e6b80a4fccfa10cfd0afd5597c8859890 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 5 Apr 2011 17:17:07 +0000 Subject: Provide macros for ssm/rsm. --- sys/arch/hppa64/include/cpufunc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3