Ignore:
Timestamp:
Jan 8, 2018, 2:25:39 PM (6 years ago)
Author:
alain
Message:

Fix a bug in hal_kentry.S : the "uzone" pointer in the thread descriptor
must not be modified in case of interrupt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_write.c

    r416 r418  
    4646    reg_t        save_sr;         // required to enable IRQs during syscall
    4747
    48 #if CONFIG_SYSCALL_DEBUG
     48#if CONFIG_WRITE_DEBUG
    4949uint32_t     tm_start;
    5050uint32_t     tm_end;
     
    139139    hal_fence();
    140140
    141 #if CONFIG_SYSCALL_DEBUG
     141#if CONFIG_WRITE_DEBUG
    142142tm_end = hal_get_cycles();
    143143printk("\n[DBG] %s : core[%x,%d] / thread %x in process %x / cycle %d\n"
     
    148148#endif
    149149 
     150#if CONFIG_WRITE_DEBUG
     151printk("\n@@@@@@@@@@@@ timing to write character %c\n"
     152" - enter_sys_write    = %d\n"
     153" - exit_sys_write     = %d\n",
     154*((char *)(intptr_t)paddr) , (uint32_t)tm_start , (uint32_t)tm_end );
     155#endif
     156
    150157        return nbytes;
    151158
Note: See TracChangeset for help on using the changeset viewer.