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)
Tue, Sep 30, 4:41 AM
Unknown Object (File)
Mon, Sep 29, 8:47 AM
Unknown Object (File)
Mon, Sep 29, 6:51 AM
Unknown Object (File)
Sun, Sep 28, 5:21 PM
Unknown Object (File)
Sun, Sep 28, 2:09 PM
Unknown Object (File)
Aug 25 2025, 12:09 PM
Unknown Object (File)
Jul 6 2025, 9:02 PM
Unknown Object (File)
Jul 5 2025, 1:13 AM
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.