diff options
author | peter <peter@FreeBSD.org> | 2003-05-31 06:49:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-05-31 06:49:53 +0000 |
commit | 3afe1a43773d9ca04262778528cd16224ce08f44 (patch) | |
tree | 77c250a9fc67d0261a684381654d5cab176dbb7d /sys/amd64/ia32/ia32_syscall.c | |
parent | 776ff76012e24cdf2b89b4f5104d9cf7c1b7de33 (diff) | |
download | FreeBSD-src-3afe1a43773d9ca04262778528cd16224ce08f44.zip FreeBSD-src-3afe1a43773d9ca04262778528cd16224ce08f44.tar.gz |
Make this compile with WITNESS enabled. It wants the syscall names.
Diffstat (limited to 'sys/amd64/ia32/ia32_syscall.c')
-rw-r--r-- | sys/amd64/ia32/ia32_syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c index dee52b0..49d0961 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); } |