From 9980a72713f95bdef6bbd649fd0525bfe1da64d5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 11 Dec 2015 15:42:14 +0100 Subject: sys: automatically add padding to structs --- prog/encodingc.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prog/encodingc.go') diff --git a/prog/encodingc.go b/prog/encodingc.go index c84acc918..c22180ce5 100644 --- a/prog/encodingc.go +++ b/prog/encodingc.go @@ -86,6 +86,9 @@ int main() fmt.Fprintf(w, "\tlong r%v = -1;\n", n) fmt.Fprintf(w, "\tif (r%v != -1)\n", lastCall) fmt.Fprintf(w, "\t\tr%v = *(uint%v_t*)0x%x;\n", n, size*8, addr) + case instrSetPad, instrCheckPad: + read() // addr + read() // size default: // Normal syscall. meta := sys.Calls[instr] -- cgit mrf-deployment