お前ら、教えてください。
FreeBSD5.1でシステムコールの追加を行っているのですが、
http://www.sfc.wide.ad.jp/~simitaka/memo/systemcall/index.html やら
http://www.minami.org/SS/pdf/2003/20031128-SS-08.pdf
やらを参考にやってみましたが、テストプログラムをコンパイル後、実行すると
invalid system call (by zsh)
とエラーを出されてしまいます。
以下、自分が行った作業手順です。

syscalls.masterに
xxx STD BSD { int syshello(void); } を追加

sh makesyscalls.sh syscalls.master を実行

/usr/src/sys/kern/syshello.c を作成し、内容は以下の用に編集

int
syshello(a,b)
struct thread *a; struct syshello_args *b;
{
printf("hello\n");
return 0;
}
つづく