Ignore:
Timestamp:
Oct 5, 2018, 12:08:35 AM (2 years ago)
Author:
alain
Message:

Introduction of the soclib_mty driver for the TSAR-LETI architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_context.c

    r492 r570  
    195195
    196196    // get ppn of remote child process page table
    197     uint32_t    pt_ppn = hal_remote_lw( XPTR(child_cxy , &process->vmm.gpt.ppn) );
     197    uint32_t    pt_ppn = hal_remote_l32( XPTR(child_cxy , &process->vmm.gpt.ppn) );
    198198
    199199    // save CPU registers in local CPU context
     
    245245    hal_cpu_context_init( thread );
    246246
    247     // restore CPU registers ... and jump
     247    // restore CPU registers ... and jump to user code
    248248    hal_do_cpu_restore( (hal_cpu_context_t *)thread->cpu_context );
    249249
     
    263263
    264264    // get relevant context slots values
    265     uint32_t sp_29   = hal_remote_lw( XPTR( cxy , &ctx->sp_29   ) );
    266     uint32_t ra_31   = hal_remote_lw( XPTR( cxy , &ctx->ra_31   ) );
    267     uint32_t c0_sr   = hal_remote_lw( XPTR( cxy , &ctx->c0_sr   ) );
    268     uint32_t c0_epc  = hal_remote_lw( XPTR( cxy , &ctx->c0_epc  ) );
    269     uint32_t c0_th   = hal_remote_lw( XPTR( cxy , &ctx->c0_th   ) );
    270     uint32_t c2_ptpr = hal_remote_lw( XPTR( cxy , &ctx->c2_ptpr ) );
    271     uint32_t c2_mode = hal_remote_lw( XPTR( cxy , &ctx->c2_mode ) );
     265    uint32_t sp_29   = hal_remote_l32( XPTR( cxy , &ctx->sp_29   ) );
     266    uint32_t ra_31   = hal_remote_l32( XPTR( cxy , &ctx->ra_31   ) );
     267    uint32_t c0_sr   = hal_remote_l32( XPTR( cxy , &ctx->c0_sr   ) );
     268    uint32_t c0_epc  = hal_remote_l32( XPTR( cxy , &ctx->c0_epc  ) );
     269    uint32_t c0_th   = hal_remote_l32( XPTR( cxy , &ctx->c0_th   ) );
     270    uint32_t c2_ptpr = hal_remote_l32( XPTR( cxy , &ctx->c2_ptpr ) );
     271    uint32_t c2_mode = hal_remote_l32( XPTR( cxy , &ctx->c2_mode ) );
    272272   
    273273    printk("\n***** CPU context for thread %x in process %x / cycle %d\n"
Note: See TracChangeset for help on using the changeset viewer.