Compare commits

..

No commits in common. "0b46382a56f9df765dc507c17af6ae7ec7670bfc" and "fbef2ef765a851d169d57250387d6b8e885bdb3b" have entirely different histories.

View file

@ -1,18 +1,13 @@
#!/usr/bin/env python3
template = """
.global {name}
template = """.global {name}
{name}:
li a7, SYS_{name}
ecall
ret
""".strip()
ret"""
def genstub(syscall: str):
if not 3 >= len(syscall) <= 15:
raise ValueError("Syscall {} is too short/long!".format(syscall[:35]))
return template.format(name=syscall)
@ -60,9 +55,7 @@ with open("kernel/syscall.h", "r") as sfile:
missing_in_header_calls = calls - header_calls
if missing_in_calls:
print(
"#These items are in header_calls but not in calls:", missing_in_calls
)
print("#These items are in header_calls but not in calls:", missing_in_calls)
if missing_in_header_calls:
print(
"#These items are in calls but not in header_calls:",