diff options
author | grehan <grehan@FreeBSD.org> | 2003-01-18 11:20:06 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2003-01-18 11:20:06 +0000 |
commit | 022b9e97e56f4dc4e9ea076170e0a2456650b3a8 (patch) | |
tree | d181ae2c5c2307dbe84c5b7083fdca2410e5a39f | |
parent | 63c6d5a63109339dcea6985763ac64e0401ba877 (diff) | |
download | FreeBSD-src-022b9e97e56f4dc4e9ea076170e0a2456650b3a8.zip FreeBSD-src-022b9e97e56f4dc4e9ea076170e0a2456650b3a8.tar.gz |
Prepended underscores to macro local vars, avoiding gcc "declaration
shadows global" warning
Approved by: benno
-rw-r--r-- | sys/powerpc/include/cpu.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h index 19b0c72..566b779 100644 --- a/sys/powerpc/include/cpu.h +++ b/sys/powerpc/include/cpu.h @@ -79,17 +79,17 @@ extern void __syncicache(void *, int); static __inline u_int64_t get_cyclecount(void) { - u_int32_t upper, lower; - u_int64_t time; + u_int32_t _upper, _lower; + u_int64_t _time; __asm __volatile( "mftb %0\n" "mftbu %1" - : "=r" (lower), "=r" (upper)); + : "=r" (_lower), "=r" (_upper)); - time = (u_int64_t)upper; - time = (time << 32) + lower; - return (time); + _time = (u_int64_t)_upper; + _time = (_time << 32) + _lower; + return (_time); } #define cpu_getstack(td) ((td)->td_frame->fixreg[1]) |