From 75b469e57b062abe418002c5a2b6f6ad9d6c835e Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 12 Aug 1999 18:45:34 +0000 Subject: fix asm() modifiers --- sys/arch/hppa/include/cpufunc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/hppa/include/cpufunc.h b/sys/arch/hppa/include/cpufunc.h index 73e1921fd94..092dde027c1 100644 --- a/sys/arch/hppa/include/cpufunc.h +++ b/sys/arch/hppa/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.9 1999/05/22 00:16:42 mickey Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.10 1999/08/12 18:45:33 mickey Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -89,7 +89,7 @@ static __inline u_int ldsid(vaddr_t p) { static __inline u_int mtsm(u_int mask) { register u_int ret; __asm __volatile("ssm 0,%0\n\t" - "mtsm %1": "=r" (ret) : "r" (mask)); + "mtsm %1": "=&r" (ret) : "r" (mask)); return ret; } -- cgit v1.2.3