diff options
author | rofl0r <retnyg@gmx.net> | 2014-03-06 00:26:03 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2014-03-06 05:35:13 +0100 |
commit | dae8ca738c37c7ca619f575de7a88823db17976a (patch) | |
tree | e0765125f28da929f657c0b89f3df9b89e3a8c9a /src/linux/x32/sysinfo.s | |
parent | abdd2e48df01511603cae570695a7a3d78190e7e (diff) | |
download | musl-dae8ca738c37c7ca619f575de7a88823db17976a.tar.gz musl-dae8ca738c37c7ca619f575de7a88823db17976a.tar.xz musl-dae8ca738c37c7ca619f575de7a88823db17976a.zip |
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.
Diffstat (limited to 'src/linux/x32/sysinfo.s')
-rw-r--r-- | src/linux/x32/sysinfo.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linux/x32/sysinfo.s b/src/linux/x32/sysinfo.s new file mode 100644 index 00000000..43c378c1 --- /dev/null +++ b/src/linux/x32/sysinfo.s @@ -0,0 +1,5 @@ +.text +.global sysinfo +.type sysinfo,@function +sysinfo: + jmp __x32_sysinfo |