Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/makesyscalls.sh
Show First 20 Lines • Show All 640 Lines • ▼ Show 20 Lines | ' < $1 | awk " | ||||
} | } | ||||
{ | { | ||||
printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $3 | printf "%s: line %d: unrecognized keyword %s\n", infile, NR, $3 | ||||
exit 1 | exit 1 | ||||
} | } | ||||
END { | END { | ||||
printf "\n#define AS(name) (sizeof(struct name) / sizeof(register_t))\n" > sysinc | printf "\n#define AS(name) (sizeof(struct name) / sizeof(register_t))\n" > sysinc | ||||
if (ncompat != 0 || ncompat4 != 0 || ncompat6 != 0 || ncompat7 != 0 || ncompat10 != 0 || ncompat11 != 0) | |||||
printf "#include \"opt_compat.h\"\n\n" > syssw | |||||
if (ncompat != 0) { | if (ncompat != 0) { | ||||
printf "\n#ifdef %s\n", compat > sysinc | printf "\n#ifdef %s\n", compat > sysinc | ||||
printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysinc | printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysinc | ||||
printf "#else\n" > sysinc | printf "#else\n" > sysinc | ||||
printf "#define compat(n, name) 0, (sy_call_t *)nosys\n" > sysinc | printf "#define compat(n, name) 0, (sy_call_t *)nosys\n" > sysinc | ||||
printf "#endif\n" > sysinc | printf "#endif\n" > sysinc | ||||
} | } | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |