move rrrrrrread_tsc from libsys to libc so anyone can use it
This commit is contained in:
parent
205855b8ee
commit
b337d3f8e5
@ -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 get_mtab_entry, (char *_s1, char *_s2, char *_s3, char *_s4));
|
||||||
_PROTOTYPE(int put_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 */
|
/* return values for fsversion */
|
||||||
#define FSVERSION_MFS1 0x00001
|
#define FSVERSION_MFS1 0x00001
|
||||||
#define FSVERSION_MFS2 0x00002
|
#define FSVERSION_MFS2 0x00002
|
||||||
|
@ -87,9 +87,5 @@ struct util_timingdata {
|
|||||||
|
|
||||||
typedef struct util_timingdata util_timingdata_t;
|
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 */
|
#endif /* _MINIX_SYSUTIL_H */
|
||||||
|
|
||||||
|
@ -86,6 +86,8 @@ SRCS+= \
|
|||||||
putw.c \
|
putw.c \
|
||||||
pwcache.c \
|
pwcache.c \
|
||||||
random.c \
|
random.c \
|
||||||
|
read_tsc.S \
|
||||||
|
read_tsc_64.c \
|
||||||
realpath.c \
|
realpath.c \
|
||||||
rindex.c \
|
rindex.c \
|
||||||
rlimit.c \
|
rlimit.c \
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
|
|
||||||
#include "sysutil.h"
|
|
||||||
#include <minix/u64.h>
|
#include <minix/u64.h>
|
||||||
#include <minix/syslib.h>
|
#include <minix/minlib.h>
|
||||||
|
|
||||||
/* Utility function to work directly with u64_t
|
/* Utility function to work directly with u64_t
|
||||||
* By Antonio Mancina
|
* By Antonio Mancina
|
||||||
*/
|
*/
|
||||||
PUBLIC void read_tsc_64(t)
|
void read_tsc_64(t)
|
||||||
u64_t* t;
|
u64_t* t;
|
||||||
{
|
{
|
||||||
u32_t lo, hi;
|
u32_t lo, hi;
|
@ -112,8 +112,6 @@ SRCS= \
|
|||||||
env_prefix.c \
|
env_prefix.c \
|
||||||
fkey_ctl.c \
|
fkey_ctl.c \
|
||||||
tsc_util.c \
|
tsc_util.c \
|
||||||
read_tsc.S \
|
|
||||||
read_tsc_64.c \
|
|
||||||
ser_putc.c \
|
ser_putc.c \
|
||||||
stacktrace.c \
|
stacktrace.c \
|
||||||
sys_hz.c \
|
sys_hz.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user