Ignore:
Timestamp:
Dec 5, 2017, 4:20:07 PM (6 years ago)
Author:
alain
Message:

Fix several bugs in the fork() syscall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_exception.h

    r380 r408  
    4545//      a message on TXT0, disable IRQs and call the hal_core_sleep() function.
    4646//
    47 // For all exceptions, the faulty core context has been saved in a registers array
    48 // stored in the user thread descriptor (for a core in user mode), and in the
    49 // kernel stack (for a core in kernel mode).
    50 //
    51 // Any architecture specific implementation must implement this API.
     47// For all exceptions, the faulty core registers have been saved in the "uzone"
     48// that can be accessed through the "uzone" pointer stored in thread descriptor.
    5249//////////////////////////////////////////////////////////////////////////////////////////
    5350
    54 /**** forward declaration  ****/
    55 
    56 struct thread_s;
    5751
    5852/*****************************************************************************************
    5953 * This function is called by the hal_kentry() function when an exception is detected by
    6054 * the hardware for a given thread running on a given core.
    61  *****************************************************************************************
    62  * @ this      : pointer on the faulty thread descriptor.
    63  * @ regs_tbl  : array containing the core registers values saved by hal_kentry().
    6455 ****************************************************************************************/
    65 void hal_do_exception( struct thread_s * this,
    66                        reg_t           * regs_tbl );
     56void hal_do_exception();
    6757
    6858#endif  // _HAL_EXCEPTION_H_
Note: See TracChangeset for help on using the changeset viewer.