Last change
on this file since 122 was
118,
checked in by rosiere, 15 years ago
|
1) Stat List : scan all queue to find free register
2) Write_queue : test "genMealy" add bypass [0]
3) Functionnal_unit : add const parameters to add or not the pipeline_in
4) Load Store Unit : if load make an exception, free nb_check
5) Debug, change test to add model
|
-
Property svn:keywords set to
Id
|
File size:
643 bytes
|
Line | |
---|
1 | #include "func_io.h" |
---|
2 | #include "thread_info.h" |
---|
3 | #include "cpu_info.h" |
---|
4 | |
---|
5 | void tty (unsigned char data) |
---|
6 | { |
---|
7 | unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0); |
---|
8 | |
---|
9 | *(addr) = data; |
---|
10 | } |
---|
11 | |
---|
12 | void print (char * data) |
---|
13 | { |
---|
14 | unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0); |
---|
15 | |
---|
16 | while ((*data) != '\0') |
---|
17 | { |
---|
18 | *(addr) = (*data); |
---|
19 | data++; |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | void show (unsigned int data) |
---|
24 | { |
---|
25 | unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 8); |
---|
26 | |
---|
27 | *(addr) = data; |
---|
28 | } |
---|
29 | |
---|
30 | void quit (unsigned int data) |
---|
31 | { |
---|
32 | unsigned int * addr = (unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 4); |
---|
33 | |
---|
34 | *(addr) = data; |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.