Changeset 541 for trunk/boot
- Timestamp:
- Sep 21, 2018, 10:22:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot_tty_driver.c
r521 r541 43 43 #endif 44 44 45 #ifdef IS_LETI 46 #define TARGET_CLUSTER 0 47 #else 48 #define TARGET_CLUSTER ((X_IO << Y_WIDTH) + Y_IO) 49 #endif 50 45 51 46 52 ///////////////////////////////////////////////////////////////////////////// … … 51 57 static uint32_t boot_tty_get_register( uint32_t reg ) 52 58 { 53 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO;59 cxy_t cxy = TARGET_CLUSTER; 54 60 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 55 61 … … 66 72 uint32_t val ) 67 73 { 68 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO;74 cxy_t cxy = TARGET_CLUSTER; 69 75 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 70 76 … … 101 107 } 102 108 103 // Write one character to TTY0 terminal. 109 // Write one character to TTY0 terminal. 104 110 // Special treatment for a newline: Carriage Return before Line Feed. 105 111 if (buf[nb_printed] == '\n') boot_tty_set_register(TTY_WRITE_REG , (uint32_t)'\r');
Note: See TracChangeset
for help on using the changeset viewer.