diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-05-10 16:24:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-05-10 16:24:56 +0000 |
commit | 0bfd335ef6a8bd92e3a8fc28c34340b2bc13397a (patch) | |
tree | 8843f5ac6437945bdf854f0e56106e17d2057ac8 /sys/arch | |
parent | 034edbd8249fc02865bf945465ebe50f02ea9e0d (diff) |
egcs -Wall warns unless & is used as a modifier in extended asms, e.g.,
constraints should begin "=&", not "&=".
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/include/psl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amiga/include/psl.h b/sys/arch/amiga/include/psl.h index 4c52270e45c..a966e90f50d 100644 --- a/sys/arch/amiga/include/psl.h +++ b/sys/arch/amiga/include/psl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: psl.h,v 1.9 1997/09/18 13:40:04 niklas Exp $ */ +/* $OpenBSD: psl.h,v 1.10 1999/05/10 16:24:55 espie Exp $ */ /* $NetBSD: psl.h,v 1.11 1996/11/30 00:33:49 is Exp $ */ #ifndef _MACHINE_PSL_H_ @@ -18,7 +18,7 @@ splraise(npsl) { register int opsl; - __asm __volatile ("clrl %0; movew sr,%0" : "&=d" (opsl) : : "cc"); + __asm __volatile ("clrl %0; movew sr,%0" : "=&d" (opsl) : : "cc"); if (npsl > (opsl & (PSL_S|PSL_IPL))) __asm __volatile ("movew %0,sr" : : "di" (npsl) : "cc"); return opsl; @@ -30,7 +30,7 @@ splexact(npsl) { register int opsl; - __asm __volatile ("clrl %0; movew sr,%0; movew %1,sr" : "&=d" (opsl) : + __asm __volatile ("clrl %0; movew sr,%0; movew %1,sr" : "=&d" (opsl) : "di" (npsl) : "cc"); return opsl; } @@ -82,7 +82,7 @@ spllower(npsl) { register int opsl; - __asm __volatile ("clrl %0; movew sr,%0" : "&=d" (opsl) : : "cc"); + __asm __volatile ("clrl %0; movew sr,%0" : "=&d" (opsl) : : "cc"); splx(npsl); return opsl; } |