Changeset 874621f in mainline for generic/include
- Timestamp:
- 2006-06-06T07:40:51Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dbc4e7
- Parents:
- 6f9a9bc
- Location:
- generic/include
- Files:
-
- 1 added
- 6 edited
-
console/klog.h (added)
-
interrupt.h (modified) (2 diffs)
-
ipc/irq.h (modified) (2 diffs)
-
ipc/sysipc.h (modified) (1 diff)
-
proc/thread.h (modified) (1 diff)
-
stackarg.h (modified) (1 diff)
-
stdarg.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
generic/include/interrupt.h
r6f9a9bc r874621f 33 33 #include <typedefs.h> 34 34 #include <arch/types.h> 35 #include <proc/task.h> 36 #include <proc/thread.h> 37 #include <arch.h> 38 #include <console/klog.h> 39 #include <ipc/irq.h> 35 40 36 41 #ifndef IVT_ITEMS … … 42 47 #endif 43 48 49 #define fault_if_from_uspace(istate, cmd, ...) \ 50 { \ 51 if (istate_from_uspace(istate)) { \ 52 klog_printf(cmd, ##__VA_ARGS__); \ 53 klog_printf("Task %lld got exception at PC:%P. Task killed.", TASK->taskid, istate_get_pc(istate)); \ 54 task_kill(TASK->taskid); \ 55 thread_exit(); \ 56 } \ 57 } 58 59 44 60 extern iroutine exc_register(int n, const char *name, iroutine f); 45 61 extern void exc_dispatch(int n, istate_t *t); -
generic/include/ipc/irq.h
r6f9a9bc r874621f 30 30 #define __IRQ_H__ 31 31 32 /** Maximum length of IPC IRQ program */ 32 33 #define IRQ_MAX_PROG_SIZE 10 34 35 /** Reserved 'virtual' messages for kernel notifications */ 36 #define IPC_IRQ_RESERVED_VIRTUAL 10 37 38 #define IPC_IRQ_KLOG (-1) 33 39 34 40 typedef enum { … … 60 66 #ifdef KERNEL 61 67 68 #include <ipc/ipc.h> 69 62 70 extern void ipc_irq_make_table(int irqcount); 63 71 extern int ipc_irq_register(answerbox_t *box, int irq, irq_code_t *ucode); 64 72 extern void ipc_irq_send_notif(int irq); 73 extern void ipc_irq_send_msg(int irq, __native a2, __native a3); 65 74 extern void ipc_irq_unregister(answerbox_t *box, int irq); 66 75 extern void irq_ipc_bind_arch(__native irq); -
generic/include/ipc/sysipc.h
r6f9a9bc r874621f 48 48 __native method, __native arg1); 49 49 __native sys_ipc_hangup(int phoneid); 50 __native sys_ipc_register_irq( __nativeirq, irq_code_t *ucode);51 __native sys_ipc_unregister_irq( __nativeirq);50 __native sys_ipc_register_irq(int irq, irq_code_t *ucode); 51 __native sys_ipc_unregister_irq(int irq); 52 52 53 53 #endif -
generic/include/proc/thread.h
r6f9a9bc r874621f 151 151 extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags, char *name); 152 152 extern void thread_ready(thread_t *t); 153 extern void thread_exit(void) ;153 extern void thread_exit(void) __attribute__((noreturn)); 154 154 155 155 #ifndef thread_create_arch -
generic/include/stackarg.h
r6f9a9bc r874621f 50 50 (*((type *)((ap).last + ((ap).pos += sizeof(type) ) - sizeof(type)))) 51 51 52 #define va_copy(dst,src) dst=src 52 53 #define va_end(ap) 53 54 -
generic/include/stdarg.h
r6f9a9bc r874621f 41 41 #define va_arg(ap, type) __builtin_va_arg(ap, type) 42 42 #define va_end(ap) __builtin_va_end(ap) 43 #define va_copy(dst,src) __builtin_va_copy(dst,src) 43 44 44 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
