1
0
Fork 0

(svn r4151) -Fix: [PowerPC] removed an incorrect uninitialized var used warning in os_timer

release/0.5
bjarni 2006-03-29 16:56:38 +00:00
parent a7d8ad0004
commit e00beaf9b5
1 changed files with 1 additions and 2 deletions

View File

@ -41,8 +41,7 @@ uint64 _rdtsc(void)
#if defined(__POWERPC__) && !defined(RDTSC_AVAILABLE) #if defined(__POWERPC__) && !defined(RDTSC_AVAILABLE)
uint64 _rdtsc(void) uint64 _rdtsc(void)
{ {
uint32 high, low; uint32 high = 0, high2 = 0, low;
uint32 high2 = 0;
/* PPC does not have rdtsc, so we cheat by reading the two 32-bit time-counters /* PPC does not have rdtsc, so we cheat by reading the two 32-bit time-counters
* it has, 'Move From Time Base (Upper)'. Since these are two reads, in the * it has, 'Move From Time Base (Upper)'. Since these are two reads, in the
* very unlikely event that the lower part overflows to the upper part while we * very unlikely event that the lower part overflows to the upper part while we