- Timestamp:
- 2006-03-16T15:56:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ee9ced
- Parents:
- 37e7d2b9
- Location:
- generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/ipc/ipc.h
r37e7d2b9 rdabe6333 38 38 39 39 /* Flags for calls */ 40 #define IPC_CALL_ANSWERED 1 /**< This is answer to a call */ 41 #define IPC_CALL_STATIC_ALLOC 2 /**< This call will not be freed on error */ 40 #define IPC_CALL_ANSWERED 0x1 /**< This is answer to a call */ 41 #define IPC_CALL_STATIC_ALLOC 0x2 /**< This call will not be freed on error */ 42 #define IPC_CALL_DISPATCHED 0x4 /**< Call is in dispatch queue */ 42 43 43 44 /* Flags for ipc_wait_for_call */ -
generic/src/console/console.c
r37e7d2b9 rdabe6333 39 39 #include <arch/atomic.h> 40 40 41 #define BUFLEN 2048 42 static char debug_buffer[BUFLEN]; 43 static size_t offset = 0; 44 /** Initialize stdout to something that does not print, but does not fail 45 * 46 * Save data in some buffer so that it could be retrieved in the debugger 47 */ 48 static void null_putchar(chardev_t *d, const char ch) 49 { 50 if (offset >= BUFLEN) 51 offset = 0; 52 debug_buffer[offset++] = ch; 53 } 54 55 static chardev_operations_t null_stdout_ops = { 56 .write = null_putchar 57 }; 58 chardev_t null_stdout = { 59 .name = "null", 60 .op = &null_stdout_ops 61 }; 62 41 63 /** Standard input character device. */ 42 64 chardev_t *stdin = NULL; 43 chardev_t *stdout = NULL;65 chardev_t *stdout = &null_stdout; 44 66 45 67 /** Get character from character device. Do not echo character. -
generic/src/ipc/ipc.c
r37e7d2b9 rdabe6333 185 185 answerbox_t *callerbox = request->callerbox; 186 186 187 request->flags &= ~IPC_CALL_DISPATCHED; 187 188 request->flags |= IPC_CALL_ANSWERED; 188 189 … … 218 219 /* Append request to dispatch queue */ 219 220 list_append(&request->list, &box->dispatched_calls); 221 request->flags |= IPC_CALL_DISPATCHED; 220 222 } else { 221 223 if (!(flags & IPC_WAIT_NONBLOCKING)) {
Note:
See TracChangeset
for help on using the changeset viewer.