From ca72d05ae0925c0ae6e1fc8965da9a559ebcbb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 9 Nov 2004 22:45:48 +0000 Subject: [PATCH] we can't read this data from userland yet, help! git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9887 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/os/time.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/kernel/libroot/os/time.c b/src/kernel/libroot/os/time.c index 524311d056..6168351104 100644 --- a/src/kernel/libroot/os/time.c +++ b/src/kernel/libroot/os/time.c @@ -14,9 +14,11 @@ static volatile bigtime_t *sBootTime = NULL; static status_t setup_rtc_boottime() { - area_id dataArea = find_area("real time data userland"); + area_id dataArea; area_info info; status_t err; + + dataArea = find_area("real time data userland"); if (dataArea < 0) { printf("setup_rtc_boottime: error finding real time data area %s\n", @@ -29,8 +31,12 @@ setup_rtc_boottime() printf("setup_rtc_boottime: error getting real time data info\n"); return err; } - sBootTime = &((struct real_time_data *)info.address)->boot_time; - return B_OK; + printf("setup_rtc_boottime : %d, %p\n", dataArea, info.address); +/* sBootTime = &((struct real_time_data *)info.address)->boot_time; + printf("setup_rtc_time : %p\n", sBootTime); + return B_OK; +*/ + return B_ERROR; }