source: trunk/Softwares/Common/src/c/func_io.c @ 118

Last change on this file since 118 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
RevLine 
[2]1#include "func_io.h"
2#include "thread_info.h"
[118]3#include "cpu_info.h"
[2]4
[101]5void tty (unsigned char data)
[2]6{
[118]7  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0);
[2]8
[101]9  *(addr) = data;
[2]10}
11
[101]12void print (char * data)
[2]13{
[118]14  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 0);
[2]15
[101]16  while ((*data) != '\0')
17    {
18      *(addr) = (*data);
19      data++;
20    }
[2]21}
[101]22
23void show (unsigned int data)
24{
[118]25  unsigned int * addr =(unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 8);
[101]26
27  *(addr) = data;
28}
29
30void quit (unsigned int data)
31{
[118]32  unsigned int * addr = (unsigned int*)(TTY_BASE + (get_cpu_id() << 4) + 4);
[101]33
34  *(addr) = data;
35}
Note: See TracBrowser for help on using the repository browser.