From d78bc6e66c108ea0169259520de8f8b9deeadeaa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 26 Aug 2016 12:51:25 +0200 Subject: sys: fix skipping of syscalls with unknown constants Still need to generate description for such syscalls so that they at least can be parsed, and so that Go and C entries match. --- sys/decl.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/decl.go') diff --git a/sys/decl.go b/sys/decl.go index 7023bcdb2..e24b21766 100644 --- a/sys/decl.go +++ b/sys/decl.go @@ -660,7 +660,8 @@ func init() { initResources() initAlign() - for _, c := range Calls { + for i, c := range Calls { + c.ID = i if CallMap[c.Name] != nil { println(c.Name) panic("duplicate syscall") -- cgit mrf-deployment