Artifact 5422b4d7e505e3284d49772d1b66f1f7202caebf4fbe0c732158db9606c8b2b9:
- File arch/syscall.awk — part of check-in [a8d93823f1] at 2019-08-18 13:42:35 on branch trunk — add functions, generate C syscall table (user: lexi, size: 328) [annotate] [blame] [check-ins using]
BEGIN { if (out == "header") { print "#ifndef KIplatform_syscalls" print "#define KIplatform_syscalls" print "enum /* syscall numbers */ {" } } out == "header" { print "\tk_platform_syscall_"$1" = "$2"," } out == "asm" { print "%define sys."$1" "$2 } END { if (out == "header") { print "}" print "#endif" } }