Make this compile with WITNESS enabled. It wants the syscall names.

This commit is contained in:
Peter Wemm 2003-05-31 06:49:53 +00:00
parent ff7bf2f72e
commit 1f5b79bc16
6 changed files with 9 additions and 5 deletions

View file

@ -7,9 +7,10 @@ all:
sysent: ia32_sysent.c ia32_syscall.h ia32_proto.h
ia32_sysent.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
ia32_sysent.c ia32_syscalls.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f ia32_sysent.c ia32_sysent.c.bak
-mv -f ia32_syscalls.c ia32_syscalls.c.bak
-mv -f ia32_syscall.h ia32_syscall.h.bak
-mv -f ia32_proto.h ia32_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

View file

@ -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);
}

View file

@ -1,5 +1,5 @@
# $FreeBSD$
sysnames="/dev/null"
sysnames="ia32_syscalls.c"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"

View file

@ -7,9 +7,10 @@ all:
sysent: ia32_sysent.c ia32_syscall.h ia32_proto.h
ia32_sysent.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
ia32_sysent.c ia32_syscalls.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f ia32_sysent.c ia32_sysent.c.bak
-mv -f ia32_syscalls.c ia32_syscalls.c.bak
-mv -f ia32_syscall.h ia32_syscall.h.bak
-mv -f ia32_proto.h ia32_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

View file

@ -1,5 +1,5 @@
# $FreeBSD$
sysnames="/dev/null"
sysnames="ia32_syscalls.c"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"

View file

@ -85,6 +85,7 @@ amd64/pci/pci_cfgreg.c optional pci
amd64/pci/pci_bus.c optional pci
amd64/ia32/ia32_misc.c optional ia32
amd64/ia32/ia32_syscalls.c optional ia32
amd64/ia32/ia32_sysent.c optional ia32
amd64/ia32/ia32_sysvec.c optional ia32
amd64/ia32/ia32_signal.c optional ia32