Page MenuHomeFreeBSD

Port PowerPC kqueue(2) compat32 fix in r320500 to MIPS.
ClosedPublic

Authored by kib on Jul 1 2017, 4:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 9 2024, 6:13 AM
Unknown Object (File)
Mar 23 2024, 2:01 AM
Unknown Object (File)
Dec 20 2023, 5:02 AM
Unknown Object (File)
Nov 25 2023, 11:43 PM
Unknown Object (File)
Nov 23 2023, 2:34 PM
Unknown Object (File)
Dec 31 2022, 2:05 PM
Subscribers

Details

Summary

All 32bit MIPS ABIs align uint64_t on 8-byte, according to jhb. Since struct kevent32 is defined using 32bit types to avoid extra alignment on amd64/i386, layout of the structure needs paddings on PowerPC and apparently MIPS.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb added inline comments.
sys/compat/freebsd32/freebsd32_misc.c
125 ↗(On Diff #30283)

Just checked via gdb on a recent mips o32 libc.so.7 and 'sizeof(struct kevent)' is 64.

This revision is now accepted and ready to land.Jul 1 2017, 4:47 PM
This revision was automatically updated to reflect the committed changes.