diff options
author | Shin-ichiro KAWASAKI <shinichiro.kawasaki.mg@hitachi.com> | 2009-09-01 19:03:06 +0900 |
---|---|---|
committer | Tony Sim <sim.chinyeow@renesas.com> | 2009-09-01 19:03:06 +0900 |
commit | ce0595d01de9103d40b83b35e0d6ac8b123aa24c (patch) | |
tree | 02ffc73c4219b5d546075bd70ad49181cabe56c1 /libc/tools/bionic_utils.py | |
parent | 90ec5f2a3f581927ffef55733e8d531890fdc90e (diff) | |
download | bionic-ce0595d01de9103d40b83b35e0d6ac8b123aa24c.zip bionic-ce0595d01de9103d40b83b35e0d6ac8b123aa24c.tar.gz bionic-ce0595d01de9103d40b83b35e0d6ac8b123aa24c.tar.bz2 |
modified SYSCALLS.TXT to support SuperH architecture
Diffstat (limited to 'libc/tools/bionic_utils.py')
-rw-r--r-- | libc/tools/bionic_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/tools/bionic_utils.py b/libc/tools/bionic_utils.py index 65ff042..17eef13 100644 --- a/libc/tools/bionic_utils.py +++ b/libc/tools/bionic_utils.py @@ -194,6 +194,7 @@ class SysCallsTxtParser: if number == "stub": syscall_id = -1 syscall_id2 = -1 + syscall_id3 = -1 else: try: if number[0] == '#': @@ -201,14 +202,21 @@ class SysCallsTxtParser: numbers = string.split(number,',') syscall_id = int(numbers[0]) syscall_id2 = syscall_id + syscall_id3 = syscall_id if len(numbers) > 1: syscall_id2 = int(numbers[1]) + syscall_id3 = syscall_id2 + if len(numbers) > 2: + syscall_id3 = int(numbers[2]) except: E("invalid syscall number in '%s'" % line) return + print str(syscall_id) + ':' + str(syscall_id2) + ':' + str(syscall_id3) + t = { "id" : syscall_id, "id2" : syscall_id2, + "id3" : syscall_id3, "cid" : call_id, "name" : syscall_name, "func" : syscall_func, |