Changeset 207 for soft/giet_vm/sys/common.c
- Timestamp:
- Aug 16, 2012, 6:36:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/common.c
r199 r207 13 13 #include <ctx_handler.h> 14 14 #include <drivers.h> 15 #include <hwr_mapping.h> 15 16 #include <stdarg.h> 16 17 … … 153 154 //////////////////////////////////////////////////////////////////////////// 154 155 // _puts() 155 // display a string on TTY0 / used for system code debugand log 156 //////////////////////////////////////////////////////////////////////////// 157 void _puts(char *buffer) 158 { 159 unsigned int* tty_address = (unsigned int*)&seg_tty_base; 156 // display a string on TTY0 / used for system code debug and log 157 //////////////////////////////////////////////////////////////////////////// 158 void _puts(char* buffer) 159 { 160 unsigned int* tty_address = (unsigned int*)( (char*)&seg_tty_base + 161 (CLUSTER_IO_ID * (unsigned)CLUSTER_SIZE) ); 160 162 unsigned int n; 161 163 … … 163 165 { 164 166 if (buffer[n] == 0) break; 165 tty_address[ 0] = (unsigned int)buffer[n];167 tty_address[TTY_WRITE] = (unsigned int)buffer[n]; 166 168 } 167 169 } 168 170 //////////////////////////////////////////////////////////////////////////// 169 // _put w()171 // _putx() 170 172 // display an int (hexa) on TTY0 / used for system code debug and log 171 173 //////////////////////////////////////////////////////////////////////////// 172 void _put w(unsigned int val)174 void _putx(unsigned int val) 173 175 { 174 176 static const char HexaTab[] = "0123456789ABCDEF";
Note: See TracChangeset
for help on using the changeset viewer.