Page MenuHomeFreeBSD

Fix casts between 64-bit physical addresses and pointers in EFI.
ClosedPublic

Authored by jhb on Aug 3 2018, 9:00 PM.
Tags
None
Referenced Files
F169809818: D16586.id46906.diff
Wed, Sep 2, 3:27 PM
F169809812: D16586.id46270.diff
Wed, Sep 2, 3:27 PM
Unknown Object (File)
Sun, Aug 30, 7:21 PM
Unknown Object (File)
Sun, Aug 30, 7:21 PM
Unknown Object (File)
Sat, Aug 22, 4:53 AM
Unknown Object (File)
Wed, Aug 19, 11:33 PM
Unknown Object (File)
Tue, Aug 11, 6:32 PM
Unknown Object (File)
Tue, Aug 11, 6:31 PM
Subscribers
None

Details

Summary

Compiling FreeBSD/i386 with modern GCC triggers warnings for various
places that convert 64-bit EFI_ADDRs to pointers and vice versa.

  • Cast pointers to uintptr_t rather than to uint64_t when assigning to a 64-bit integer.
  • Cast 64-bit integers to uintptr_t before a cast to a pointer.
Test Plan
  • build world with CROSS_TOOLCHAIN=i386-gcc

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Aug 14 2018, 4:23 AM
This revision was automatically updated to reflect the committed changes.