diff options
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/grapes/syscall.c | 4 | ||||
-rw-r--r-- | src/library/grapes/syscall.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/library/grapes/syscall.c b/src/library/grapes/syscall.c index a00d9e8..38adc01 100644 --- a/src/library/grapes/syscall.c +++ b/src/library/grapes/syscall.c @@ -29,3 +29,7 @@ void printk(char* str) { void thread_new(void (*entry)(void*), void *data) { call(5, (unsigned)entry, (unsigned)data, 0, 0, 0); } + +void irq_wait(int number) { + call(6, number, 0, 0, 0, 0); +} diff --git a/src/library/grapes/syscall.h b/src/library/grapes/syscall.h index e385761..d2f80e5 100644 --- a/src/library/grapes/syscall.h +++ b/src/library/grapes/syscall.h @@ -7,5 +7,6 @@ void thread_sleep(int time); void process_exit(int retval); void printk(char* str); void thread_new(void (*entry)(void*), void *data); +void irq_wait(int number); #endif |