blob: 095b1e83a872f895a471e55d1ba7bf186e253077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# -*- perl -*-
#
# arch/arm64/sysstub.ph
#
# Script to generate system call stubs
#
sub make_sysstub($$$$$@) {
my($outputdir, $fname, $type, $sname, $stype, @args) = @_;
open(OUT, '>', "${outputdir}/${fname}.S");
print OUT "#include <asm/unistd.h>\n";
print OUT " .text\n";
print OUT " .type ${fname}, #function\n";
print OUT " .globl ${fname}\n";
print OUT " .balign 8\n";
print OUT "${fname}:\n";
print OUT " mov w8,__NR_${sname}\n";
print OUT " svc 0\n";
print OUT " b __syscall_common\n";
print OUT " .size ${fname},.-${fname}\n";
}
1;
|