diff options
Diffstat (limited to 'lib/libjove/arch/x86_64/invoke-pagemap.c')
-rw-r--r-- | lib/libjove/arch/x86_64/invoke-pagemap.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libjove/arch/x86_64/invoke-pagemap.c b/lib/libjove/arch/x86_64/invoke-pagemap.c new file mode 100644 index 0000000..8357904 --- /dev/null +++ b/lib/libjove/arch/x86_64/invoke-pagemap.c @@ -0,0 +1,21 @@ +#include <arch/x86_64/object-pagemap.h> +#include <kernel/syscall.h> +#include <kernel/arch/x86_64/syscall.h> +#include <object.h> +#include <path-fromobj.h> +#include <syscall.h> +#include <jove/jove.h> + +int +_syscall_invoke_mapping_get(KernelObjectPageMapping *mapping, uint16_t pmli, KernelObjectPageMapping *dest) +{ + uint8_t *syscallData = _syscall_message_ptr; + int syscall_at = 0; + + SYSCALL_PAYLOAD_PUTOBJ(syscallData, syscall_at, mapping); + SYSCALL_PAYLOAD_PUTL(syscallData, syscall_at, INVOKE_MAPPING_GET, uint8_t); + SYSCALL_PAYLOAD_PUTL(syscallData, syscall_at, pmli, uint16_t); + SYSCALL_PAYLOAD_PUTOBJ(syscallData, syscall_at, dest); + + return _syscall_invoke(); +} |