Changeset 572 for trunk/boot/tsar_mips32/boot_tty_driver.c
- Timestamp:
- Oct 5, 2018, 12:20:34 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot_tty_driver.c
r556 r572 43 43 #endif 44 44 45 #ifndef TXT_TGT_CLUSTER46 # error "The TXT_TGT_CLUSTER value should be defined in the 'hard_config.h' file"47 #endif48 49 45 ///////////////////////////////////////////////////////////////////////////// 50 46 // This function returns the value contained in a TTY0 register. … … 54 50 static uint32_t boot_tty_get_register( uint32_t reg ) 55 51 { 56 cxy_t cxy = TXT_TGT_CLUSTER;52 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 57 53 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 58 54 … … 69 65 uint32_t val ) 70 66 { 71 cxy_t cxy = TXT_TGT_CLUSTER;67 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 72 68 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 73 69 … … 76 72 } // boot_tty_set_register() 77 73 78 ////////////////////////////////// 74 ///////////////////////////////////// 79 75 int boot_tty_write( const char * buf, 80 76 uint32_t nbytes )
Note: See TracChangeset
for help on using the changeset viewer.