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)
Sat, Nov 23, 9:57 PM
Unknown Object (File)
Sat, Nov 23, 9:46 PM
Unknown Object (File)
Oct 19 2024, 11:44 PM
Unknown Object (File)
Oct 10 2024, 5:04 PM
Unknown Object (File)
Oct 10 2024, 5:03 PM
Unknown Object (File)
Oct 10 2024, 5:03 PM
Unknown Object (File)
Oct 10 2024, 4:48 PM
Unknown Object (File)
Sep 25 2024, 8:17 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.