Skip to content

Commit dcd00c3

Browse files
committed
Implement iopl syscall decoding
* iopl.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/dummy.h (sys_iopl): Remove stub alias.
1 parent 2aa180e commit dcd00c3

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ strace_SOURCES = \
7474
io.c \
7575
ioctl.c \
7676
ioperm.c \
77+
iopl.c \
7778
ioprio.c \
7879
ipc_defs.h \
7980
ipc_msg.c \

iopl.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include "defs.h"
2+
3+
SYS_FUNC(iopl)
4+
{
5+
tprintf("%d", (int) tcp->u_arg[0]);
6+
7+
return RVAL_DECODED;
8+
}

linux/dummy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#endif
3333

3434
/* still unfinished */
35-
#define sys_iopl printargs
3635
#define sys_kcmp printargs
3736
#define sys_kexec_file_load printargs
3837
#define sys_lookup_dcookie printargs

0 commit comments

Comments
 (0)