From e42289ce61f4877bcc077192ce32c05af614f07f Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 3 Dec 2018 20:13:29 +0100 Subject: [PATCH] arm: add SVCAll with 0 arguments Some very basic system calls may have no arguments at all. --- src/device/arm/arm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device/arm/arm.go b/src/device/arm/arm.go index 27abc7f3..26a2f0d0 100644 --- a/src/device/arm/arm.go +++ b/src/device/arm/arm.go @@ -54,6 +54,9 @@ func AsmFull(asm string, regs map[string]interface{}) // must be a processor register, reachable with the "mov" instruction. func ReadRegister(name string) uintptr +// Run the following system call (SVCall) with 0 arguments. +func SVCall0(num uintptr) uintptr + // Run the following system call (SVCall) with 1 argument. func SVCall1(num uintptr, a1 interface{}) uintptr