aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/ia32/ia32_syscall.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-05-31 06:49:53 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-05-31 06:49:53 +0000
commit1f5b79bc164216d8dfe2d08da1d544390aa3e668 (patch)
tree77c250a9fc67d0261a684381654d5cab176dbb7d /sys/amd64/ia32/ia32_syscall.c
parentff7bf2f72edd943e6d7769b96c5fea97a7fd3c24 (diff)
downloadsrc-1f5b79bc164216d8dfe2d08da1d544390aa3e668.tar.gz
src-1f5b79bc164216d8dfe2d08da1d544390aa3e668.zip
Make this compile with WITNESS enabled. It wants the syscall names.
Notes
Notes: svn path=/head/; revision=115429
Diffstat (limited to 'sys/amd64/ia32/ia32_syscall.c')
-rw-r--r--sys/amd64/ia32/ia32_syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c
index dee52b0e75ba..49d09618f9b0 100644
--- a/sys/amd64/ia32/ia32_syscall.c
+++ b/sys/amd64/ia32/ia32_syscall.c
@@ -83,6 +83,7 @@
#define IDTVEC(name) __CONCAT(X,name)
extern inthand_t IDTVEC(int0x80_syscall), IDTVEC(rsvd);
+extern const char *ia32_syscallnames[];
void ia32_syscall(struct trapframe frame); /* Called from asm code */
@@ -251,7 +252,7 @@ ia32_syscall(struct trapframe frame)
cred_free_thread(td);
#endif
WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
- (code >= 0 && code < SYS_MAXSYSCALL) ? syscallnames[code] : "???");
+ (code >= 0 && code < SYS_MAXSYSCALL) ? ia32_syscallnames[code] : "???");
mtx_assert(&sched_lock, MA_NOTOWNED);
mtx_assert(&Giant, MA_NOTOWNED);
}