Changeset 570 for trunk/hal/tsar_mips32/core/hal_context.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_context.c
r492 r570 195 195 196 196 // get ppn of remote child process page table 197 uint32_t pt_ppn = hal_remote_l w( XPTR(child_cxy , &process->vmm.gpt.ppn) );197 uint32_t pt_ppn = hal_remote_l32( XPTR(child_cxy , &process->vmm.gpt.ppn) ); 198 198 199 199 // save CPU registers in local CPU context … … 245 245 hal_cpu_context_init( thread ); 246 246 247 // restore CPU registers ... and jump 247 // restore CPU registers ... and jump to user code 248 248 hal_do_cpu_restore( (hal_cpu_context_t *)thread->cpu_context ); 249 249 … … 263 263 264 264 // get relevant context slots values 265 uint32_t sp_29 = hal_remote_l w( XPTR( cxy , &ctx->sp_29 ) );266 uint32_t ra_31 = hal_remote_l w( XPTR( cxy , &ctx->ra_31 ) );267 uint32_t c0_sr = hal_remote_l w( XPTR( cxy , &ctx->c0_sr ) );268 uint32_t c0_epc = hal_remote_l w( XPTR( cxy , &ctx->c0_epc ) );269 uint32_t c0_th = hal_remote_l w( XPTR( cxy , &ctx->c0_th ) );270 uint32_t c2_ptpr = hal_remote_l w( XPTR( cxy , &ctx->c2_ptpr ) );271 uint32_t c2_mode = hal_remote_l w( 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 ) ); 272 272 273 273 printk("\n***** CPU context for thread %x in process %x / cycle %d\n"
Note: See TracChangeset
for help on using the changeset viewer.