PERFORCE change 32138 for review
Peter Wemm
peter at FreeBSD.org
Fri May 30 18:27:27 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=32138
Change 32138 by peter at peter_hammer on 2003/05/30 18:26:23
add ia32_syscallnames for witness printfs
Affected files ...
.. //depot/projects/hammer/sys/amd64/ia32/Makefile#3 edit
.. //depot/projects/hammer/sys/amd64/ia32/ia32_syscall.c#3 edit
.. //depot/projects/hammer/sys/amd64/ia32/ia32_syscalls.c#1 add
.. //depot/projects/hammer/sys/amd64/ia32/syscalls.conf#3 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/ia32/Makefile#3 (text+ko) ====
@@ -7,9 +7,10 @@
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
==== //depot/projects/hammer/sys/amd64/ia32/ia32_syscall.c#3 (text+ko) ====
@@ -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 @@
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);
}
==== //depot/projects/hammer/sys/amd64/ia32/syscalls.conf#3 (text+ko) ====
@@ -1,5 +1,5 @@
# $FreeBSD: src/sys/amd64/ia32/syscalls.conf,v 1.1 2002/04/10 19:34:51 dfr Exp $
-sysnames="/dev/null"
+sysnames="ia32_syscalls.c"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"
More information about the p4-projects
mailing list