vsyscall_gettimeofday: make timeval from TSC

This commit is contained in:
NAKAMURA Gou
2015-11-11 17:38:22 +09:00
parent 1a5ff7f535
commit 26492a2895
7 changed files with 78 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ SECTIONS
. = vsyscall_page + 0x000;
*(.vsyscall.gettimeofday)
*(.vsyscall.gettimeofday.*)
. = vsyscall_page + 0x400;
*(.vsyscall.time)

View File

@@ -26,6 +26,7 @@ SECTIONS
. = vsyscall_page + 0x000;
*(.vsyscall.gettimeofday)
*(.vsyscall.gettimeofday.*)
. = vsyscall_page + 0x400;
*(.vsyscall.time)

View File

@@ -26,6 +26,7 @@ SECTIONS
. = vsyscall_page + 0x000;
*(.vsyscall.gettimeofday)
*(.vsyscall.gettimeofday.*)
. = vsyscall_page + 0x400;
*(.vsyscall.time)

View File

@@ -26,6 +26,7 @@ SECTIONS
. = vsyscall_page + 0x000;
*(.vsyscall.gettimeofday)
*(.vsyscall.gettimeofday.*)
. = vsyscall_page + 0x400;
*(.vsyscall.time)

View File

@@ -296,6 +296,6 @@ struct tod_data_s {
unsigned long clocks_per_sec;
struct timespec origin; /* realtime when tsc=0 */
};
extern struct tod_data_s tod_data;
extern struct tod_data_s tod_data; /* residing in arch-dependent file */
#endif

View File

@@ -95,10 +95,6 @@ static char *syscall_name[] MCKERNEL_UNUSED = {
#undef SYSCALL_DELEGATED
};
struct tod_data_s tod_data = {
.do_local = 0,
.version = IHK_ATOMIC64_INIT(0),
};
static ihk_spinlock_t tod_data_lock = SPIN_LOCK_UNLOCKED;
void check_signal(unsigned long, void *, int);