mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 6 additions and 6 deletions
|
|
@ -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 a new issue