2007-03-08 16:39:14 +01:00
|
|
|
|
|
|
|
#include <minix/u64.h>
|
2010-08-20 20:43:56 +02:00
|
|
|
#include <minix/minlib.h>
|
2007-03-08 16:39:14 +01:00
|
|
|
|
|
|
|
/* Utility function to work directly with u64_t
|
|
|
|
* By Antonio Mancina
|
|
|
|
*/
|
2010-08-20 20:43:56 +02:00
|
|
|
void read_tsc_64(t)
|
2007-03-08 16:39:14 +01:00
|
|
|
u64_t* t;
|
|
|
|
{
|
|
|
|
u32_t lo, hi;
|
|
|
|
read_tsc (&hi, &lo);
|
|
|
|
*t = make64 (lo, hi);
|
|
|
|
}
|
|
|
|
|