Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/include Tweak to let this allow ...



details:   https://anonhg.NetBSD.org/src/rev/f8778cef1dc6
branches:  sommerfeld_i386mp_1
changeset: 482460:f8778cef1dc6
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Tue Dec 11 23:52:07 2001 +0000

description:
Tweak to let this allow userland to build

diffstat:

 sys/arch/i386/include/atomic.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r a6c3b13b66e7 -r f8778cef1dc6 sys/arch/i386/include/atomic.h
--- a/sys/arch/i386/include/atomic.h    Tue Dec 11 23:51:25 2001 +0000
+++ b/sys/arch/i386/include/atomic.h    Tue Dec 11 23:52:07 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.h,v 1.1.2.4 2000/12/31 00:32:51 sommerfeld Exp $ */
+/* $NetBSD: atomic.h,v 1.1.2.5 2001/12/11 23:52:07 sommerfeld Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -50,17 +50,17 @@
 }
 
 static __inline int
-i386_atomic_testset_i (volatile int *ptr, unsigned long val) {
+i386_atomic_testset_i (volatile int *ptr, int val) {
     __asm__ volatile ("xchgl %0,(%2)" :"=r" (val):"0" (val),"r" (ptr));
     return val;
 }
 
-static __inline void 
+static __inline void
 i386_atomic_setbits_l (volatile u_int32_t *ptr, unsigned long bits) {
     __asm __volatile("lock ; orl %1,%0" :  "=m" (*ptr) : "ir" (bits));
 }
 
-static __inline void 
+static __inline void
 i386_atomic_clearbits_l (volatile u_int32_t *ptr, unsigned long bits) {
     __asm __volatile("lock ; andl %1,%0" :  "=m" (*ptr) : "ir" (~bits));
 }



Home | Main Index | Thread Index | Old Index