From 72c01a1b3b7e6476731b0aacb89adedb8fa2a09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 26 Jan 2005 18:29:41 +0000 Subject: [PATCH] Added arch_rtc_init() function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11075 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../core/arch/ppc/arch_real_time_clock.c | 17 +++++++++++---- .../core/arch/x86/arch_real_time_clock.c | 21 +++++++++++++++---- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/kernel/core/arch/ppc/arch_real_time_clock.c b/src/kernel/core/arch/ppc/arch_real_time_clock.c index 9a040fcda7..ec114b1a04 100644 --- a/src/kernel/core/arch/ppc/arch_real_time_clock.c +++ b/src/kernel/core/arch/ppc/arch_real_time_clock.c @@ -1,10 +1,19 @@ -/* -** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved. -** Distributed under the terms of the OpenBeOS License. -*/ +/* + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de + * Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved. + * + * Distributed under the terms of the MIT License. + */ #include +#include + + +status_t +arch_rtc_init(kernel_args *args, struct real_time_data *data) +{ +} uint32 diff --git a/src/kernel/core/arch/x86/arch_real_time_clock.c b/src/kernel/core/arch/x86/arch_real_time_clock.c index 9b52b059dc..e618ff911a 100644 --- a/src/kernel/core/arch/x86/arch_real_time_clock.c +++ b/src/kernel/core/arch/x86/arch_real_time_clock.c @@ -1,7 +1,9 @@ -/* -** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved. -** Distributed under the terms of the OpenBeOS License. -*/ +/* + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de + * Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved. + * + * Distributed under the terms of the MIT License. + */ #include @@ -258,6 +260,17 @@ secs_to_cmos(uint32 seconds, cmos_time *cmos) } +// #pragma mark - + + +status_t +arch_rtc_init(struct kernel_args *args, struct real_time_data *data) +{ + data->system_time_conversion_factor = args->arch_args.system_time_cv_factor; + return B_OK; +} + + uint32 arch_rtc_get_hw_time(void) {