From bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Jun 2021 00:14:15 -0400 Subject: sim: callback: extend syscall interface to handle 7 args The Linux syscall interface, depending on architecture, handles up to 7 arguments. Extend the callback API to handle those. --- include/sim/ChangeLog | 5 +++++ include/sim/callback.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog index 3faea58..0897a52 100644 --- a/include/sim/ChangeLog +++ b/include/sim/ChangeLog @@ -1,3 +1,8 @@ +2021-06-24 Mike Frysinger + + * sim/callback.h (struct host_callback_struct): Add arg5, arg6, and + arg7. + 2021-06-23 Mike Frysinger * sim/callback.h (struct host_callback_struct): Add kill. diff --git a/include/sim/callback.h b/include/sim/callback.h index 8d61ebb8..be72f45 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -241,7 +241,7 @@ typedef struct cb_syscall { /* The target's value of what system call to perform. */ int func; /* The arguments to the syscall. */ - long arg1, arg2, arg3, arg4; + long arg1, arg2, arg3, arg4, arg5, arg6, arg7; /* The result. */ long result; -- cgit v1.1