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.
This commit is contained in:
parent
abdd2e48df
commit
dae8ca738c
2 changed files with 52 additions and 0 deletions
5
src/linux/x32/sysinfo.s
Normal file
5
src/linux/x32/sysinfo.s
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.text
|
||||
.global sysinfo
|
||||
.type sysinfo,@function
|
||||
sysinfo:
|
||||
jmp __x32_sysinfo
|
||||
Loading…
Add table
Add a link
Reference in a new issue