From dae8ca738c37c7ca619f575de7a88823db17976a Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Mar 2014 00:26:03 +0100 Subject: x32: fix sysinfo() the kernel uses long longs in the struct, but the documentation says they're long. so we need to fixup the mismatch between the userspace and kernelspace structs. since the struct offers a mem_unit member, we can avoid truncation by adjusting that value. --- src/linux/x32/sysinfo.s | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/linux/x32/sysinfo.s (limited to 'src/linux') diff --git a/src/linux/x32/sysinfo.s b/src/linux/x32/sysinfo.s new file mode 100644 index 0000000..43c378c --- /dev/null +++ b/src/linux/x32/sysinfo.s @@ -0,0 +1,5 @@ +.text +.global sysinfo +.type sysinfo,@function +sysinfo: + jmp __x32_sysinfo -- cgit v1.1