Changeset 407 for trunk/hal/generic/hal_syscall.h
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (6 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_syscall.h
r405 r407 1 1 /* 2 * hal_ syscall.h - Architecture specificsyscall handler API definition.2 * hal_kernel_syscall.h - Architecture specific kernel_side syscall handler API definition. 3 3 * 4 4 * Author Alain Greiner (2016,2017) … … 22 22 */ 23 23 24 #ifndef _HAL_ SYSCALL_H_25 #define _HAL_ SYSCALL_H_24 #ifndef _HAL_KERNEL_SYSCALL_H_ 25 #define _HAL_KERNEL_SYSCALL_H_ 26 26 27 27 #include <hal_types.h> 28 28 29 29 ////////////////////////////////////////////////////////////////////////////////////////// 30 // ARchitecture specificsyscall handler API30 // Kernel-side syscall handler API 31 31 // 32 // The calling thread context has been saved in the cpu_uzone array, 33 // stored in the user thread descriptor by the hal_kentry function. 34 // The architecture specific handler must use this array to get the syscall 35 // index and the arguments values. 32 // This hal_do_syscall() function extract from the regs_tbl[] array the syscall index, 33 // and the four syscall arguments. Then it calls the generic do_syscall() kernel function, 34 // that call itself the relevant kernel function, depending on the syscall index. 36 35 // 37 36 // Any architecture specific implementation must implement this API. … … 44 43 45 44 /***************************************************************************************** 46 * This function implements the ALMOS-MKH syscall handler.45 * This function implements the ALMOS-MKH kernel_side syscall handler. 47 46 ***************************************************************************************** 48 47 * @ this : pointer on the calling thread. … … 53 52 54 53 55 #endif // _HAL_ SYSCALL_H_54 #endif // _HAL_KERNEL_SYSCALL_H_
Note: See TracChangeset
for help on using the changeset viewer.