Ignore:
Timestamp:
Jan 29, 2018, 5:57:57 PM (4 years ago)
Author:
alain
Message:

bloup

File:
1 edited

Legend:

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

    r418 r425  
    2929#include <hal_kentry.h>
    3030
    31 // @@@
    32 // __attribute__((section(".kdata"))) uint32_t * enter_uzone;
    33 // __attribute__((section(".kdata"))) uint32_t * exit_uzone;
    34 // @@@
    35 
    3631/////////////////////
    3732void hal_do_syscall()
     
    5146    // get pointer on enter_thread uzone
    5247    this        = CURRENT_THREAD;
    53     enter_uzone = (uint32_t *)this->uzone;
     48    enter_uzone = (uint32_t *)this->uzone_current;
     49
     50//printk("\n@@@ enter %s : thread = %x / enter_uzone = %x / EPC = %x\n",
     51//__FUNCTION__ , this , enter_uzone , enter_uzone[UZ_EPC] );
    5452
    5553    // get syscall arguments from uzone
     
    6866                         service_num );
    6967
    70     // get pointer on exit_thread uzone,
     68    // get pointer on exit_thread uzone, because
    7169    // exit_thread can be different from enter_thread
    7270    this       = CURRENT_THREAD;
    73     exit_uzone = (uint32_t *)this->uzone;
     71    exit_uzone = (uint32_t *)this->uzone_current;
    7472
    75 // printk("\n@@@ %s exit : enter_uzone = %x / exit_uzone = %x\n",
    76 // __FUNCTION__ , enter_uzone , exit_uzone );
     73//printk("\n@@@ exit %s : thread = %x / exit_uzone = %x / EPC = %x\n",
     74//__FUNCTION__ , this , exit_uzone , exit_uzone[UZ_EPC] );
    7775
    78     // set syscall return value to uzone
     76    // set return value to uzone
    7977        exit_uzone[UZ_V0] = retval;
    8078
Note: See TracChangeset for help on using the changeset viewer.