From 6266a24cd2f71a0bad0e55c1eedd480790868c0f Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 2 Mar 2010 17:21:32 +0100 Subject: old uncommited changes commited --- src/library/grapes/syscall.c | 4 ++++ src/library/grapes/syscall.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src/library') 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 -- cgit v1.2.3