| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 /* | 25 /* |
| 26 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 26 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 27 * | 27 * |
| 28 * Automatically generated code. See nacl_syscall_handlers_gen.py | 28 * Automatically generated code. See nacl_syscall_handlers_gen.py |
| 29 * | 29 * |
| 30 * NaCl Server Runtime Service Call abstractions | 30 * NaCl Server Runtime Service Call abstractions |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h" | 33 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h" |
| 34 #include "native_client/src/trusted/service_runtime/sys_exception.h" | 34 #include "native_client/src/trusted/service_runtime/sys_exception.h" |
| 35 #include "native_client/src/trusted/service_runtime/sys_filename.h" |
| 35 #include "native_client/src/trusted/service_runtime/sys_imc.h" | 36 #include "native_client/src/trusted/service_runtime/sys_imc.h" |
| 36 #include "native_client/src/trusted/service_runtime/sys_list_mappings.h" | 37 #include "native_client/src/trusted/service_runtime/sys_list_mappings.h" |
| 37 """ | 38 """ |
| 38 | 39 |
| 39 | 40 |
| 40 TABLE_INITIALIZER = """\ | 41 TABLE_INITIALIZER = """\ |
| 41 | 42 |
| 42 /* auto generated */ | 43 /* auto generated */ |
| 43 | 44 |
| 44 void NaClSyscallTableInit() { | 45 void NaClSyscallTableInit() { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 protos = SYSCALL_LIST | 354 protos = SYSCALL_LIST |
| 354 print >>output_dst, data | 355 print >>output_dst, data |
| 355 PrintImplSkel(arch, protos, output_dst) | 356 PrintImplSkel(arch, protos, output_dst) |
| 356 PrintSyscallTableInitializer(protos, output_dst) | 357 PrintSyscallTableInitializer(protos, output_dst) |
| 357 | 358 |
| 358 return 0 | 359 return 0 |
| 359 | 360 |
| 360 | 361 |
| 361 if __name__ == '__main__': | 362 if __name__ == '__main__': |
| 362 sys.exit(main(sys.argv)) | 363 sys.exit(main(sys.argv)) |
| OLD | NEW |