- Timestamp:
- 2006-06-06T07:42:20Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1890e312
- Parents:
- e9073f2
- Location:
- libc
- Files:
-
- 4 edited
-
generic/async.c (modified) (4 diffs)
-
generic/time.c (modified) (2 diffs)
-
include/async.h (modified) (1 diff)
-
include/ipc/services.h (modified) (1 diff)
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) { -
libc/include/async.h
re9073f2 r51dbadf3 99 99 void async_destroy_manager(void); 100 100 void async_set_client_connection(async_client_conn_t conn); 101 void async_set_interrupt_received(async_client_conn_t conn); 101 102 int _async_init(void); 102 103 /* Should be defined by application */104 void interrupt_received(ipc_call_t *call) __attribute__((weak));105 103 106 104 -
libc/include/ipc/services.h
re9073f2 r51dbadf3 42 42 /* Memory area to be received from NS */ 43 43 #define SERVICE_MEM_REALTIME 1 44 #define SERVICE_MEM_KLOG 2 44 45 45 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
