xref: /haiku/src/system/libroot/os/arch/sparc/time.c (revision f42cda29e8c92685194ade32cb97e3eaee82d35d)
1*f42cda29SPulkoMandy /*
2*f42cda29SPulkoMandy  * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3*f42cda29SPulkoMandy  * Distributed under the terms of the MIT License.
4*f42cda29SPulkoMandy  */
5*f42cda29SPulkoMandy 
6*f42cda29SPulkoMandy #include <OS.h>
7*f42cda29SPulkoMandy 
8*f42cda29SPulkoMandy #include <arch_cpu.h>
9*f42cda29SPulkoMandy #include <libroot_private.h>
10*f42cda29SPulkoMandy #include <real_time_data.h>
11*f42cda29SPulkoMandy 
12*f42cda29SPulkoMandy 
13*f42cda29SPulkoMandy static struct arch_real_time_data *sRealTimeData;
14*f42cda29SPulkoMandy 
15*f42cda29SPulkoMandy void
__arch_init_time(struct real_time_data * data,bool setDefaults)16*f42cda29SPulkoMandy __arch_init_time(struct real_time_data *data, bool setDefaults)
17*f42cda29SPulkoMandy {
18*f42cda29SPulkoMandy 	sRealTimeData = &data->arch_data;
19*f42cda29SPulkoMandy 
20*f42cda29SPulkoMandy 	if (setDefaults) {
21*f42cda29SPulkoMandy 		sRealTimeData->system_time_conversion_factor = 1000000000LL;
22*f42cda29SPulkoMandy 	}
23*f42cda29SPulkoMandy 
24*f42cda29SPulkoMandy 	// __sparc_setup_system_time(&sRealTimeData->system_time_conversion_factor);
25*f42cda29SPulkoMandy }
26*f42cda29SPulkoMandy 
27*f42cda29SPulkoMandy 
28*f42cda29SPulkoMandy bigtime_t
__arch_get_system_time_offset(struct real_time_data * data)29*f42cda29SPulkoMandy __arch_get_system_time_offset(struct real_time_data *data)
30*f42cda29SPulkoMandy {
31*f42cda29SPulkoMandy 	return 0;
32*f42cda29SPulkoMandy }
33