make syscall_enter arch-dependent
Change-Id: I4317f3443902620ef5b3807ced05c80fa5eebbec Fujitsu: POSTK_DEBUG_ARCH_DEP_90 Refs: #1357
This commit is contained in:
committed by
Masamichi Takagi
parent
fd38ab6fd0
commit
1492f16d67
@@ -21,13 +21,11 @@ get_syscall_number(syscall_args *args)
|
||||
return args->orig_rax;
|
||||
}
|
||||
|
||||
#ifndef POSTK_DEBUG_ARCH_DEP_90 /* syscall_enter check is arch depend. */
|
||||
static inline unsigned long
|
||||
get_syscall_return(syscall_args *args)
|
||||
{
|
||||
return args->rax;
|
||||
}
|
||||
#endif /* !POSTK_DEBUG_ARCH_DEP_90 */
|
||||
|
||||
static inline unsigned long
|
||||
get_syscall_arg1(syscall_args *args)
|
||||
@@ -119,7 +117,5 @@ set_syscall_arg6(syscall_args *args, unsigned long value)
|
||||
args->r9 = value;
|
||||
}
|
||||
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_90 /* syscall_enter check is arch depend. */
|
||||
#define syscall_enter(argsp) (get_syscall_return(argsp) == -ENOSYS)
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_90 */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user