diff options
author | Marius Strobl <marius@FreeBSD.org> | 2004-05-22 00:47:26 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2004-05-22 00:47:26 +0000 |
commit | 980284e38f96de09086af61028089617d9bf8c68 (patch) | |
tree | 63643ac8bf5bed1e2e9bdb6f764a7071409b6111 /sys | |
parent | 27d8bee2a7ebf082e9a698114b8ff6ffd738a47c (diff) | |
download | src-980284e38f96de09086af61028089617d9bf8c68.tar.gz src-980284e38f96de09086af61028089617d9bf8c68.zip |
Switch from BSD-style u_intXX_t to ISO C99 uintXX_t.
Notes
Notes:
svn path=/head/; revision=129568
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/include/atomic.h | 2 | ||||
-rw-r--r-- | sys/sparc64/include/cpufunc.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/sparc64/include/atomic.h b/sys/sparc64/include/atomic.h index da5a73a47479..492ada06b1e4 100644 --- a/sys/sparc64/include/atomic.h +++ b/sys/sparc64/include/atomic.h @@ -78,7 +78,7 @@ * Hopefully sun will choose not to change the bit numbers. */ -#define itype(sz) u_int ## sz ## _t +#define itype(sz) uint ## sz ## _t #define atomic_cas_32(p, e, s) casa(p, e, s, __ASI_ATOMIC) #define atomic_cas_64(p, e, s) casxa(p, e, s, __ASI_ATOMIC) diff --git a/sys/sparc64/include/cpufunc.h b/sys/sparc64/include/cpufunc.h index 4c2c9f85fa6a..ea82ada2d535 100644 --- a/sys/sparc64/include/cpufunc.h +++ b/sys/sparc64/include/cpufunc.h @@ -61,14 +61,14 @@ struct thread; #define StoreStore MMASK_GEN(M_StoreStore) #define casa(rs1, rs2, rd, asi) ({ \ - u_int __rd = (u_int32_t)(rd); \ + u_int __rd = (uint32_t)(rd); \ __asm __volatile("casa [%1] %2, %3, %0" \ : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2)); \ __rd; \ }) #define casxa(rs1, rs2, rd, asi) ({ \ - u_long __rd = (u_int64_t)(rd); \ + u_long __rd = (uint64_t)(rd); \ __asm __volatile("casxa [%1] %2, %3, %0" \ : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2)); \ __rd; \ @@ -150,7 +150,7 @@ int fasword32(u_long asi, void *addr, uint32_t *val); } while (0) #define rd(name) ({ \ - u_int64_t __sr; \ + uint64_t __sr; \ __asm __volatile("rd %%" #name ", %0" : "=r" (__sr) :); \ __sr; \ }) @@ -161,7 +161,7 @@ int fasword32(u_long asi, void *addr, uint32_t *val); } while (0) #define rdpr(name) ({ \ - u_int64_t __pr; \ + uint64_t __pr; \ __asm __volatile("rdpr %%" #name", %0" : "=r" (__pr) :); \ __pr; \ }) |