HomeFreeBSD

Use more standard types for manipulating pointers.

Description

Use more standard types for manipulating pointers.

  • Use a uintptr_t cast to get the virtual address of a pointer in USB_P2U() instead of a ptrdiff_t.
  • Add offsets to a char * pointer directly without roundtripping the pointer through a ptrdiff_t in USB_ADD_BYTES().

Reviewed by: imp, hselasky
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27581

Details

Provenance
jhbAuthored on Dec 16 2020, 12:27 AM
Parents
rGaa54c24283a4: Use uintptr_t instead of unsigned long for integers holding pointers.
Branches
Unknown
Tags
Unknown

Event Timeline