Ignore:
Timestamp:
Oct 6, 2014, 2:36:35 PM (10 years ago)
Author:
alain
Message:

Modifying the reset.S file to support procid on 12 bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/reset.S

    r801 r833  
    8181    /*
    8282     * All processors compute gpid, lpid, cluster_xy
    83      * gpid = ebase[9:0] = X_WIDTH : Y_WIDTH : P_WIDTH
     83     * gpid = ebase[11:0] = X_WIDTH : Y_WIDTH : P_WIDTH
    8484     *                        x         y       lpid
    8585     * X, Y and LPID fields are left-aligned
     
    8787
    8888    mfc0    k0,     CP0_EBASE
    89     andi    t0,     k0,     0x3FF            /* t0 <= gpid (<= 1024 procs)  */
     89    andi    t0,     k0,     0xFFF            /* t0 <= gpid (<= 4096 procs)  */
    9090    andi    t1,     t0,     ((1<<P_WIDTH)-1) /* t1 <= lpid                  */
    9191    srl     t2,     t0,     P_WIDTH          /* t2 <= cluster_xy            */
Note: See TracChangeset for help on using the changeset viewer.