kernel - use matching type for res; this fixes x86_64 build
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Tue, 16 Feb 2010 03:15:19 +0000 (12:15 +0900)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Tue, 16 Feb 2010 03:15:19 +0000 (12:15 +0900)
sys/cpu/i386/include/atomic.h
sys/cpu/x86_64/include/atomic.h

index 444b9c1..1521b66 100644 (file)
@@ -139,7 +139,7 @@ u_int       atomic_readandclear_int(volatile u_int *addr);
 static __inline u_int
 atomic_readandclear_int(volatile u_int *addr)
 {
-       u_long res;
+       u_int res;
 
        res = 0;
        __asm __volatile(
index d605fff..d97b734 100644 (file)
@@ -158,7 +158,7 @@ atomic_readandclear_long(volatile u_long *addr)
 static __inline u_int
 atomic_readandclear_int(volatile u_int *addr)
 {
-       u_long res;
+       u_int res;
 
        res = 0;
        __asm __volatile(