syscalls: reorder generic entries
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 19:12:52 +0000 (22:12 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 19:12:52 +0000 (22:12 +0300)
src/openpower/syscalls/__main__.py

index eefa2304315c96640c6d9e941fb2a3dd58bfdbbe..48bd5e2c641ef7acc85a5209e788fc3959ca3b02 100644 (file)
@@ -65,15 +65,15 @@ def collect_sysnums(tree):
             table[abi][number] = (name, [])
             table[abi][name] = number
 
-        if entry32 is not None:
-            table["arch32"][number][1].append(entry32)
+        if entry is not None:
+            table["arch32"][number][1].append(entry)
+            table["arch64"][number][1].append(entry)
         if entry64 is not None:
             table["arch64"][number][1].append(entry64)
+        if entry32 is not None:
+            table["arch32"][number][1].append(entry32)
         if compat is not None:
             table["arch64"][number][1].append(compat)
-        if entry is not None:
-            table["arch32"][number][1].append(entry)
-            table["arch64"][number][1].append(entry)
 
         for abi in dict(table):
             if not table[abi][number][1]: