diff --git a/libsel4/arch_include/arm/interfaces/sel4arch.xml b/libsel4/arch_include/arm/interfaces/sel4arch.xml
index 92fdbd333..47e74feb1 100644
--- a/libsel4/arch_include/arm/interfaces/sel4arch.xml
+++ b/libsel4/arch_include/arm/interfaces/sel4arch.xml
@@ -19,11 +19,11 @@
-
+
-
+
@@ -39,7 +39,7 @@
-
+
diff --git a/libsel4/include/interfaces/sel4.xml b/libsel4/include/interfaces/sel4.xml
index bdb09478f..56b29a392 100644
--- a/libsel4/include/interfaces/sel4.xml
+++ b/libsel4/include/interfaces/sel4.xml
@@ -75,14 +75,14 @@
-
+
-
+
@@ -90,10 +90,10 @@
-
+
-
+
diff --git a/libsel4/sel4_arch_include/aarch32/interfaces/sel4arch.xml b/libsel4/sel4_arch_include/aarch32/interfaces/sel4arch.xml
index e28150d21..4cf6b29a6 100644
--- a/libsel4/sel4_arch_include/aarch32/interfaces/sel4arch.xml
+++ b/libsel4/sel4_arch_include/aarch32/interfaces/sel4arch.xml
@@ -47,20 +47,20 @@
-
+
-
+
-
+
-
+
diff --git a/libsel4/tools/syscall_stub_gen.py b/libsel4/tools/syscall_stub_gen.py
index e2394f74e..ae044bd96 100644
--- a/libsel4/tools/syscall_stub_gen.py
+++ b/libsel4/tools/syscall_stub_gen.py
@@ -683,7 +683,7 @@ def parse_xml_file(input_file, valid_types):
for method in interface.getElementsByTagName("method"):
method_name = method.getAttribute("name")
method_id = method.getAttribute("id")
- method_config = method.getAttribute("config")
+ method_condition = method.getAttribute("condition")
#
# Get parameters.
@@ -703,7 +703,7 @@ def parse_xml_file(input_file, valid_types):
input_params.append(Parameter(param_name, param_type))
else:
output_params.append(Parameter(param_name, param_type))
- methods.append((interface_name, method_name, method_id, input_params, output_params, method_config))
+ methods.append((interface_name, method_name, method_id, input_params, output_params, method_condition))
return (methods, structs)
@@ -781,12 +781,12 @@ def generate_stub_file(arch, wordsize, input_files, output_file, use_only_ipc_bu
result.append("/*")
result.append(" * Generated stubs.")
result.append(" */")
- for (interface_name, method_name, method_id, inputs, outputs, config) in methods:
- if config != "":
- result.append("#ifdef %s" % config)
+ for (interface_name, method_name, method_id, inputs, outputs, condition) in methods:
+ if condition != "":
+ result.append("#if %s" % condition)
result.append(generate_stub(arch, wordsize, interface_name, method_name,
method_id, inputs, outputs, structs, use_only_ipc_buffer))
- if config != "":
+ if condition != "":
result.append("#endif")
# Print footer.
diff --git a/tools/invocation_header_gen.py b/tools/invocation_header_gen.py
index f489a08bb..83e3fc35a 100755
--- a/tools/invocation_header_gen.py
+++ b/tools/invocation_header_gen.py
@@ -150,7 +150,7 @@ def parse_xml(xml_file):
invocation_labels = []
for method in doc.getElementsByTagName("method"):
- invocation_labels.append((str(method.getAttribute("id")), str(method.getAttribute("config"))))
+ invocation_labels.append((str(method.getAttribute("id")), str(method.getAttribute("condition"))))
return invocation_labels