--- Gnu-Mach/kern/mach_clock.c 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/kern/mach_clock.c 2020/09/02 04:41:14 1.1.1.2 @@ -167,7 +167,7 @@ void clock_interrupt(usec, usermode, bas thread_quantum_update(my_cpu, thread, 1, state); } -#if MACH_SAMPLE +#if MACH_PCSAMPLE /* * Take a sample of pc for the user if required. * This had better be MP safe. It might be interesting @@ -369,6 +369,19 @@ void init_timeout() } /* + * Record a timestamp in STAMP. + */ +void +record_time_stamp (time_value_t *stamp) +{ + do { + stamp->seconds = mtime->seconds; + stamp->microseconds = mtime->microseconds; + } while (stamp->seconds != mtime->check_seconds); +} + + +/* * Read the time. */ kern_return_t