summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include/asm_single.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 19:50:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 19:50:40 +0000
commitcce12d917b9c6261ec24df53b0c3b0a9a1afe247 (patch)
treed52593cd9ef97090045e1c61b8cd0e23dc1b0a8a /sys/arch/m68k/include/asm_single.h
parent99f51f841264d8a8b02dbb59090bfc5bd3ea31a9 (diff)
__asm__ and __volatile__
Diffstat (limited to 'sys/arch/m68k/include/asm_single.h')
-rw-r--r--sys/arch/m68k/include/asm_single.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/m68k/include/asm_single.h b/sys/arch/m68k/include/asm_single.h
index 9e6ca71469d..e362f2f933f 100644
--- a/sys/arch/m68k/include/asm_single.h
+++ b/sys/arch/m68k/include/asm_single.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm_single.h,v 1.2 1998/04/25 07:09:06 d Exp $ */
+/* $OpenBSD: asm_single.h,v 1.3 2001/01/15 19:50:37 deraadt Exp $ */
/* $NetBSD: asm_single.h,v 1.1 1996/09/16 06:03:58 leo Exp $ */
/*
@@ -42,18 +42,18 @@
*/
#define single_inst_bset_b(var, bit) \
- asm volatile ("orb %0,%1" : : "di" ((u_char)bit), "g" (var))
+ __asm__ __volatile__ ("orb %0,%1" : : "di" ((u_char)bit), "g" (var))
#define single_inst_bclr_b(var, bit) \
- asm volatile ("andb %0,%1" : : "di" ((u_char)~(bit)), "g" (var));
+ __asm__ __volatile__ ("andb %0,%1" : : "di" ((u_char)~(bit)), "g" (var));
#define single_inst_bset_w(var, bit) \
- asm volatile ("orw %0,%1" : : "di" ((u_short)bit), "g" (var))
+ __asm__ __volatile__ ("orw %0,%1" : : "di" ((u_short)bit), "g" (var))
#define single_inst_bclr_w(var, bit) \
- asm volatile ("andw %0,%1" : : "di" ((u_short)~(bit)), "g" (var));
+ __asm__ __volatile__ ("andw %0,%1" : : "di" ((u_short)~(bit)), "g" (var));
#define single_inst_bset_l(var, bit) \
- asm volatile ("orl %0,%1" : : "di" ((u_long)bit), "g" (var))
+ __asm__ __volatile__ ("orl %0,%1" : : "di" ((u_long)bit), "g" (var))
#define single_inst_bclr_l(var, bit) \
- asm volatile ("andl %0,%1" : : "di" ((u_long)~(bit)), "g" (var));
+ __asm__ __volatile__ ("andl %0,%1" : : "di" ((u_long)~(bit)), "g" (var));
#endif /* _M68K_ASM_SINGLE_H */