aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/asm/source.mk
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-15 19:21:14 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-15 19:46:07 +0300
commita717296a2036cede5fccfff544513043a984d614 (patch)
tree68f75a23adc298628fb9cab41fd47402a99dd19d /arch/riscv64/asm/source.mk
parent619725a5f2f5272f9cbb547ed95c87312c2765a9 (diff)
downloadkmi-a717296a2036cede5fccfff544513043a984d614.tar.gz
kmi-a717296a2036cede5fccfff544513043a984d614.zip
change syscalls to take 5 params and return 6
+ In total, a syscall is built up of 6 values, with the first being the syscall number. Symmetrically, the first value is now a status and the following five values return "values". This allows us to cram in more info into the ipc_* functions. The performance difference is absolutely minimal, at least from my testing in qemu.
Diffstat (limited to 'arch/riscv64/asm/source.mk')
-rw-r--r--arch/riscv64/asm/source.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv64/asm/source.mk b/arch/riscv64/asm/source.mk
index 9b463b7..87bcf24 100644
--- a/arch/riscv64/asm/source.mk
+++ b/arch/riscv64/asm/source.mk
@@ -9,7 +9,7 @@ $(OFFSET_HEADER): $(OFFSET_SOURCE)
echo " * @file asm-offsets.h" >> $(OFFSET_HEADER)
echo " * This comment is to shut up warnings." >> $(OFFSET_HEADER)
echo " */" >> $(OFFSET_HEADER)
- $(COMPILER) $(INCLUDE_FLAGS) -S $(OFFSET_SOURCE) -o - |\
+ $(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS) -S $(OFFSET_SOURCE) -o - |\
awk '($$1 == "#->") { print "#define " $$2 " " $$3 }' >> $(OFFSET_HEADER)
echo "#endif /* APOS_ASM_OFFSETS_H */" >> $(OFFSET_HEADER)