move rrrrrrread_tsc from libsys to libc so anyone can use it

This commit is contained in:
Erik van der Kouwe 2010-08-20 18:43:56 +00:00
parent 205855b8ee
commit b337d3f8e5
6 changed files with 8 additions and 9 deletions

View file

@ -21,6 +21,10 @@ _PROTOTYPE(int rewrite_mtab, (char *_prog_name));
_PROTOTYPE(int get_mtab_entry, (char *_s1, char *_s2, char *_s3, char *_s4));
_PROTOTYPE(int put_mtab_entry, (char *_s1, char *_s2, char *_s3, char *_s4));
/* read_tsc() and friends */
_PROTOTYPE(void read_tsc, (u32_t *hi, u32_t *lo));
_PROTOTYPE(void read_tsc_64, (u64_t *t));
/* return values for fsversion */
#define FSVERSION_MFS1 0x00001
#define FSVERSION_MFS2 0x00002

View file

@ -87,9 +87,5 @@ struct util_timingdata {
typedef struct util_timingdata util_timingdata_t;
/* read_tsc() and friends. */
_PROTOTYPE( void read_tsc_64, (u64_t *t) );
_PROTOTYPE( void read_tsc, (u32_t *hi, u32_t *lo) );
#endif /* _MINIX_SYSUTIL_H */

View file

@ -86,6 +86,8 @@ SRCS+= \
putw.c \
pwcache.c \
random.c \
read_tsc.S \
read_tsc_64.c \
realpath.c \
rindex.c \
rlimit.c \

View file

@ -1,12 +1,11 @@
#include "sysutil.h"
#include <minix/u64.h>
#include <minix/syslib.h>
#include <minix/minlib.h>
/* Utility function to work directly with u64_t
* By Antonio Mancina
*/
PUBLIC void read_tsc_64(t)
void read_tsc_64(t)
u64_t* t;
{
u32_t lo, hi;

View file

@ -112,8 +112,6 @@ SRCS= \
env_prefix.c \
fkey_ctl.c \
tsc_util.c \
read_tsc.S \
read_tsc_64.c \
ser_putc.c \
stacktrace.c \
sys_hz.c \