diff options
Diffstat (limited to 'usys.pl')
-rwxr-xr-x | usys.pl | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/usys.pl b/usys.pl deleted file mode 100755 index f8d47d5..0000000 --- a/usys.pl +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/perl -w - -# Generate usys.S, the stubs for syscalls. - -print "# generated by usys.pl - do not edit\n"; - -print "#include \"syscall.h\"\n"; - -sub entry { - my $name = shift; - print ".global $name\n"; - print "${name}:\n"; - print " li a7, SYS_${name}\n"; - print " ecall\n"; - print " ret\n"; -} - -entry("fork"); -entry("exit"); -entry("wait"); -entry("pipe"); -entry("read"); -entry("write"); -entry("close"); -entry("kill"); -entry("exec"); -entry("open"); -entry("mknod"); -entry("unlink"); -entry("fstat"); -entry("link"); -entry("mkdir"); -entry("chdir"); -entry("dup"); -entry("getpid"); -entry("sbrk"); -entry("sleep"); -entry("uptime"); |