Page MenuHomeFreeBSD

Eliminate p_elf_machine from struct proc.
ClosedPublic

Authored by dchagin on Jun 28 2021, 5:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 4, 11:40 PM
Unknown Object (File)
Fri, Sep 4, 11:53 AM
Unknown Object (File)
Fri, Sep 4, 7:20 AM
Unknown Object (File)
Thu, Sep 3, 9:01 PM
Unknown Object (File)
Thu, Sep 3, 11:26 AM
Unknown Object (File)
Tue, Sep 1, 9:00 PM
Unknown Object (File)
Mon, Aug 31, 3:15 AM
Unknown Object (File)
Mon, Aug 31, 2:01 AM
Subscribers

Details

Summary

Instead of p_elf_machine use machine member of the Elf_Brandinfo which is now
cached in the struct proc at p_elf_brandinfo member.

As p_elf_flags alignment is 8 bytes here is a hole, should I remove p_reserved?

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40146
Build 37035: arc lint + arc unit

Event Timeline

kib added inline comments.
sys/sys/proc.h
703

We do not leave the cruft in system structures (in HEAD), even if it is padding.

This revision is now accepted and ready to land.Jun 28 2021, 5:56 PM
This revision was automatically updated to reflect the committed changes.