mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Prepended underscores to macro local vars, avoiding gcc "declaration
shadows global" warning Approved by: benno
This commit is contained in:
parent
0212856f3c
commit
0a9b03cb65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109476
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user