From 924f7606047a430a9b313c135b782e1e8f852bec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 15 Mar 2020 21:16:13 +0100 Subject: pkg/compiler: ensure consistency of syscall argument types Ensure that we don't have conflicting sizes for the same argument of the same syscall, e.g.: foo$1(a int16) foo$2(a int32) This is useful for several reasons: - we will be able avoid morphing syscalls into other syscalls - we will be able to figure out more precise sizes for args (lots of them are implicitly intptr, which is the largest type on most important arches) - found few bugs in linux descriptions Update #477 Update #502 --- sys/linux/dev_fb.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/dev_fb.txt') diff --git a/sys/linux/dev_fb.txt b/sys/linux/dev_fb.txt index 28432b258..0f688a825 100644 --- a/sys/linux/dev_fb.txt +++ b/sys/linux/dev_fb.txt @@ -13,7 +13,7 @@ openat$fb1(fd const[AT_FDCWD], file ptr[in, string["/dev/fb1"]], flags flags[ope write$fb(fd fd_fb, data ptr[in, array[int8]], len bytesize[data]) read$fb(fd fd_fb, data ptr[out, array[int8]], len bytesize[data]) -mmap$fb(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd_fb, off int64[0:0x100000, 0x1000]) +mmap$fb(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd_fb, off intptr[0:0x100000, 0x1000]) ioctl$FBIOGET_VSCREENINFO(fd fd_fb, cmd const[FBIOGET_VSCREENINFO], arg ptr[out, array[int8, FB_VAR_SCREENINFO_SIZE]]) ioctl$FBIOPUT_VSCREENINFO(fd fd_fb, cmd const[FBIOPUT_VSCREENINFO], arg ptr[in, fb_var_screeninfo]) -- cgit mrf-deployment