diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-15 19:21:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-15 19:46:07 +0300 |
| commit | a717296a2036cede5fccfff544513043a984d614 (patch) | |
| tree | 68f75a23adc298628fb9cab41fd47402a99dd19d /include/arch | |
| parent | 619725a5f2f5272f9cbb547ed95c87312c2765a9 (diff) | |
| download | kmi-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 'include/arch')
| -rw-r--r-- | include/arch/types.h | 2 | ||||
| -rw-r--r-- | include/arch/vmem.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/arch/types.h b/include/arch/types.h index 78b001d..8732be2 100644 --- a/include/arch/types.h +++ b/include/arch/types.h @@ -17,7 +17,7 @@ #if defined(riscv64) #include "../../arch/riscv64/include/types.h" #elif defined(riscv32) -#include "../../arch/riscv64/include/types.h" +#include "../../arch/riscv32/include/types.h" #endif #endif /* APOS_ARCH_TYPES_H */ diff --git a/include/arch/vmem.h b/include/arch/vmem.h index 832d47e..bbaf9c4 100644 --- a/include/arch/vmem.h +++ b/include/arch/vmem.h @@ -16,6 +16,8 @@ #include "../../arch/riscv32/include/vmem.h" #endif +#include <apos/types.h> + /** * Map one virtual page to physical page. * |
