source:
trunk/Softwares/Global.or32/src/c/func_io.c
@
46
Last change on this file since 46 was 2, checked in by , 18 years ago | |
---|---|
File size: 260 bytes |
Line | |
---|---|
1 | #include "func_io.h" |
2 | #include "thread_info.h" |
3 | |
4 | void print(int data) |
5 | { |
6 | int *show =(int*)(TTY_BASE + (get_thread_id() << 4) + 8); |
7 | |
8 | *(show) = data; |
9 | } |
10 | |
11 | void quit (int data) |
12 | { |
13 | int *stop =(int*)(TTY_BASE + (get_thread_id() << 4) + 4); |
14 | |
15 | *(stop) = data; |
16 | } |
Note: See TracBrowser
for help on using the repository browser.