Changeset 51dbadf3 in mainline for libc/generic
- Timestamp:
- 2006-06-06T07:42:20Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1890e312
- Parents:
- e9073f2
- Location:
- libc/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/async.c
re9073f2 r51dbadf3 139 139 140 140 static void default_client_connection(ipc_callid_t callid, ipc_call_t *call); 141 static void default_interrupt_received(ipc_callid_t callid, ipc_call_t *call); 141 142 static async_client_conn_t client_connection = default_client_connection; 143 static async_client_conn_t interrupt_received = default_interrupt_received; 142 144 143 145 /** Add microseconds to give timeval */ … … 342 344 ipc_answer_fast(callid, ENOENT, 0, 0); 343 345 } 344 345 /** Function that gets called on interrupt receival 346 * 347 * This function is defined as a weak symbol - to be redefined in 348 * user code. 349 */ 350 void interrupt_received(ipc_call_t *call) 351 { 352 } 353 346 static void default_interrupt_received(ipc_callid_t callid, ipc_call_t *call) 347 { 348 } 354 349 355 350 /** Wrapper for client connection thread … … 441 436 switch (IPC_GET_METHOD(*call)) { 442 437 case IPC_M_INTERRUPT: 443 interrupt_received(call);438 (*interrupt_received)(callid,call); 444 439 return; 445 440 case IPC_M_CONNECT_ME_TO: … … 758 753 client_connection = conn; 759 754 } 755 void async_set_interrupt_received(async_client_conn_t conn) 756 { 757 interrupt_received = conn; 758 } -
libc/generic/time.c
re9073f2 r51dbadf3 35 35 #include <atomic.h> 36 36 #include <futex.h> 37 #include <ipc/services.h> 37 38 38 39 #include <sysinfo.h> … … 68 69 /* Get the mapping of kernel clock */ 69 70 res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV, 70 mapping, PAGE_SIZE, 0,71 mapping, PAGE_SIZE, SERVICE_MEM_REALTIME, 71 72 NULL,&rights,NULL); 72 73 if (res) {
Note:
See TracChangeset
for help on using the changeset viewer.
