OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 # This script produces wrapped versions of syscall implementation | 6 # This script produces wrapped versions of syscall implementation |
7 # functions. The wrappers extract syscall arguments from where the | 7 # functions. The wrappers extract syscall arguments from where the |
8 # syscall trampoline saves them. | 8 # syscall trampoline saves them. |
9 # | 9 # |
10 # Note that NaCl modules are always ILP32 and compiled with a | 10 # Note that NaCl modules are always ILP32 and compiled with a |
11 # compiler that passes all arguments on the stack, but the service | 11 # compiler that passes all arguments on the stack, but the service |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 protos = SYSCALL_LIST | 341 protos = SYSCALL_LIST |
342 print >>output_dst, data | 342 print >>output_dst, data |
343 PrintImplSkel(arch, protos, output_dst) | 343 PrintImplSkel(arch, protos, output_dst) |
344 PrintSyscallTableInitializer(protos, output_dst) | 344 PrintSyscallTableInitializer(protos, output_dst) |
345 | 345 |
346 return 0 | 346 return 0 |
347 | 347 |
348 | 348 |
349 if __name__ == '__main__': | 349 if __name__ == '__main__': |
350 sys.exit(main(sys.argv)) | 350 sys.exit(main(sys.argv)) |
OLD | NEW |