Changeset 541 for trunk/boot/tsar_mips32


Ignore:
Timestamp:
Sep 21, 2018, 10:22:13 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Multiplex bootloader writes on LETI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot_tty_driver.c

    r521 r541  
    4343#endif
    4444
     45#ifdef IS_LETI
     46  #define TARGET_CLUSTER    0
     47#else
     48  #define TARGET_CLUSTER    ((X_IO << Y_WIDTH) + Y_IO)
     49#endif
     50
    4551
    4652/////////////////////////////////////////////////////////////////////////////
     
    5157static uint32_t boot_tty_get_register( uint32_t reg )
    5258{
    53     cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
     59    cxy_t      cxy = TARGET_CLUSTER;
    5460    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    5561   
     
    6672                                   uint32_t val )
    6773{
    68     cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
     74    cxy_t      cxy = TARGET_CLUSTER;
    6975    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    7076
     
    101107        }
    102108
    103         // Write one character to TTY0 terminal. 
     109        // Write one character to TTY0 terminal.
    104110        // Special treatment for a newline: Carriage Return before Line Feed.
    105111        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.