From 5bb7001449cd1dae6cbff2d660374d6d17cbd2c4 Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Fri, 11 Nov 2022 14:29:03 -0800 Subject: sys/fuchsia: add test for vmar syscall descriptions Also made some small updates to the vmar descriptions: - In a few places, a `len` arg was incorrectly tagged as the length of another arg when it actually represents a region size; fixed. - The `buffer` and `buffer_size` args to `zx_vmar_op_range` must be null; replaced with constants. - Added a `zx_vaddr` resource type wrapping `intptr` and used it in place of `vma`, since it's not clear how to use `vma` as the pointee type of an outptr in a program. --- pkg/runtest/run.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg') diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 87acf4565..952a2e1e6 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -305,10 +305,13 @@ func parseProg(target *prog.Target, dir, filename string) (*prog.Prog, map[strin "EOPNOTSUPP": 95, // Fuchsia specific errors. + "ZX_ERR_NO_RESOURCES": 3, + "ZX_ERR_INVALID_ARGS": 10, "ZX_ERR_BAD_HANDLE": 11, "ZX_ERR_BAD_STATE": 20, "ZX_ERR_TIMED_OUT": 21, "ZX_ERR_ALREADY_EXISTS": 26, + "ZX_ERR_ACCESS_DENIED": 30, } info := &ipc.ProgInfo{Calls: make([]ipc.CallInfo, len(p.Calls))} for i, call := range p.Calls { -- cgit mrf-deployment