Changeset f8ddd17 in mainline for uspace/libc/generic/time.c
- Timestamp:
- 2006-12-09T20:20:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b82a13c
- Parents:
- 9ab9c2ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/time.c
r9ab9c2ec rf8ddd17 41 41 #include <atomic.h> 42 42 #include <futex.h> 43 #include <sysinfo.h> 43 44 #include <ipc/services.h> 44 45 … … 72 73 73 74 if (!ktime) { 74 mapping = as_get_mappable_page(PAGE_SIZE); 75 mapping = as_get_mappable_page(PAGE_SIZE, (int) 76 sysinfo_value("clock.fcolor")); 75 77 /* Get the mapping of kernel clock */ 76 res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV, (sysarg_t) mapping, PAGE_SIZE, SERVICE_MEM_REALTIME, NULL, &rights, NULL); 78 res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV, (sysarg_t) 79 mapping, PAGE_SIZE, SERVICE_MEM_REALTIME, NULL, &rights, 80 NULL); 77 81 if (res) { 78 82 printf("Failed to initialize timeofday memarea\n");
Note:
See TracChangeset
for help on using the changeset viewer.