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
This commit is contained in:
Jérôme Duval
2004-11-09 22:45:48 +00:00
parent 43576fd35b
commit ca72d05ae0
+9 -3
View File
@@ -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;
}