Ignore:
Timestamp:
Oct 4, 2014, 3:16:21 PM (10 years ago)
Author:
alain
Message:

Introducing fixed format (X_WIDTH / Y_WIDTH / P_WIDTH ) for processor index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/tty_driver.c

    r350 r426  
    198198                  unsigned int channel )   // TTY channel
    199199{
    200     unsigned int cluster_xy = _get_procid() / NB_PROCS_MAX;
     200    unsigned int gpid       = _get_procid();
     201    unsigned int cluster_xy = gpid >> P_WIDTH;
    201202
    202203    // get TTY status
     
    225226unsigned int x              = cluster_xy >> Y_WIDTH;
    226227unsigned int y              = cluster_xy & ((1<<Y_WIDTH)-1);
    227 unsigned int lpid           = _get_procid() % NB_PROCS_MAX;
     228unsigned int lpid           = gpid & ((1<<P_WIDTH)-1);
    228229_puts("\n[IRQS DEBUG] Processor[");
    229230_putd(x );
Note: See TracChangeset for help on using the changeset viewer.