diff options
author | Alexis211 <alexis211@gmail.com> | 2010-03-02 17:21:32 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-03-02 17:21:32 +0100 |
commit | 6266a24cd2f71a0bad0e55c1eedd480790868c0f (patch) | |
tree | cc0c8c9f36ffa29ee3a1aa3ebafaff05f654e442 /src/library/grapes | |
parent | 3e1998280319e8060e797ca39b3b0b1bc766d569 (diff) | |
download | TCE-6266a24cd2f71a0bad0e55c1eedd480790868c0f.tar.gz TCE-6266a24cd2f71a0bad0e55c1eedd480790868c0f.zip |
old uncommited changes commited
Diffstat (limited to 'src/library/grapes')
-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 |