diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-20 06:50:31 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-20 06:50:31 +0000 |
commit | 149ef357e2560de62fd7cbcb050efff359984048 (patch) | |
tree | 3a3eda1a1f44da626ef31f3f0c5c38eb8fbdd48a /sys/arch/hppa | |
parent | d83b3f50b8eb74987def70168a8a6c21feec4d09 (diff) |
mfcpu_t appears to be more useful as mfcpu it seems
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/include/cpufunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/cpufunc.h b/sys/arch/hppa/include/cpufunc.h index f2f9da3b31f..6a2fdd7270c 100644 --- a/sys/arch/hppa/include/cpufunc.h +++ b/sys/arch/hppa/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.21 2003/04/07 17:43:28 mickey Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.22 2003/08/20 06:50:30 mickey Exp $ */ /* * Copyright (c) 1998,2000 Michael Shalayeff @@ -82,7 +82,7 @@ static __inline register_t ldsid(vaddr_t p) { #define mfcpu(r,v) /* XXX for the lack of the mnemonics */ \ __asm __volatile(".word %1\n\t" \ "copy %%r22, %0" \ - : "=r" (v) : "i" ((0x14000600 | ((r) << 21) | ((22) << 16)))\ + : "=r" (v) : "i" ((0x14001400 | ((r) << 21) | (22))) \ : "r22") #define mtsp(v,r) __asm __volatile("mtsp %0,%1":: "r" (v), "i" (r)) |