checksyscalls fix to handle "__ARM_NR_... (__ARM_NR_BASE+0x...)"
Change-Id: I6a13a6af17caec2e833d4982d645a88ccde4cda4
This commit is contained in:
parent
5f133f3c4d
commit
22b137711a
@ -86,8 +86,14 @@ def process_nr_line(line,dict):
|
|||||||
|
|
||||||
m = re_arm_nr_line.match(line)
|
m = re_arm_nr_line.match(line)
|
||||||
if m:
|
if m:
|
||||||
#print "%s = %s" % (m.group(1), m.group(2))
|
offset_str = m.group(2)
|
||||||
dict["ARM_"+m.group(1)] = int(m.group(2)) + 0x0f0000
|
#print "%s = %s" % (m.group(1), offset_str)
|
||||||
|
base = 10
|
||||||
|
if offset_str.lower().startswith("0x"):
|
||||||
|
# Processing something similar to
|
||||||
|
# #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
|
||||||
|
base = 16
|
||||||
|
dict["ARM_"+m.group(1)] = int(offset_str, base) + 0x0f0000
|
||||||
return
|
return
|
||||||
|
|
||||||
m = re_x86_line.match(line)
|
m = re_x86_line.match(line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user