diff -u aircard-panther/WGTAircard7X0PCCard.cpp aircard-tiger/WGTAircard7X0PCCard.cpp --- aircard-panther/WGTAircard7X0PCCard.cpp 2004-06-24 19:39:52.000000000 -0500 +++ aircard-tiger/WGTAircard7X0PCCard.cpp 2008-03-14 11:55:16.000000000 -0500 @@ -271,7 +271,7 @@ if (WindowCount < 1) goto fail; if (Map) delete [] Map; - Map = new (IOMemoryMap*)[WindowCount]; + Map = new IOMemoryMap *[WindowCount]; if (!Map) goto fail; UARTInstance=0; Common subdirectories: aircard-panther/WGTAircard7X0Serial.pbproj and aircard-tiger/WGTAircard7X0Serial.pbproj Only in aircard-tiger: WGTAircard7X0Serial.xcodeproj diff -u aircard-panther/WGTAircard7X0UARTSync.cpp aircard-tiger/WGTAircard7X0UARTSync.cpp --- aircard-panther/WGTAircard7X0UARTSync.cpp 2004-06-22 14:06:15.000000000 -0500 +++ aircard-tiger/WGTAircard7X0UARTSync.cpp 2008-03-14 11:53:50.000000000 -0500 @@ -1661,7 +1661,9 @@ outb(kREG_LineControl, kLCR_8bitData | kLCR_1bitStop | kLCR_NoParity); // 10-bit frame while (tries && (samples < 5)) { - AbsoluteTime before, after; + //AbsoluteTime before, after; + uint32_t a, b, c, d; + uint64_t duration; // make sure there is no data in the receive buffer IOSleep(1); // let the UART "rest" before we pummel it @@ -1673,21 +1675,22 @@ //showRegs(); IOSimpleLockLock(prot); // disable preemption outb(kREG_Data, samples*tries); // send a byte - clock_get_uptime(&before); // Get the initial abstime + clock_get_system_nanotime(&a, &b); // Get the initial abstime count = 0; // loop till byte is in while (!(inb(kREG_LineStatus) & kLSR_DataReady)) if (count++ >= 256) break; - clock_get_uptime(&after); // Get the final abstime + clock_get_system_nanotime(&c, &d); // Get the final abstime IOSimpleLockUnlock(prot); // enable preemption if (count >= 256) goto nogood; if (inb(kREG_Data)!=samples*tries) goto nogood; // compute diff in nano seconds - SUB_ABSOLUTETIME(&after, &before); // "after" now holds diff - absolutetime_to_nanoseconds(after, &duration); + //SUB_ABSOLUTETIME(&after, &before); // "after" now holds diff + duration = (a-c) * 1000000000L + (b-d); + //absolutetime_to_nanoseconds(after, &duration); sample[samples]=(UInt32)duration; if (sample[samples] > 300000) goto nogood;