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
+8 -2
View File
@@ -14,10 +14,12 @@ static volatile bigtime_t *sBootTime = NULL;
static status_t static status_t
setup_rtc_boottime() setup_rtc_boottime()
{ {
area_id dataArea = find_area("real time data userland"); area_id dataArea;
area_info info; area_info info;
status_t err; status_t err;
dataArea = find_area("real time data userland");
if (dataArea < 0) { if (dataArea < 0) {
printf("setup_rtc_boottime: error finding real time data area %s\n", printf("setup_rtc_boottime: error finding real time data area %s\n",
strerror(dataArea)); strerror(dataArea));
@@ -29,8 +31,12 @@ setup_rtc_boottime()
printf("setup_rtc_boottime: error getting real time data info\n"); printf("setup_rtc_boottime: error getting real time data info\n");
return err; return err;
} }
sBootTime = &((struct real_time_data *)info.address)->boot_time; 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_OK;
*/
return B_ERROR;
} }