Page MenuHomeFreeBSD

kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers.
ClosedPublic

Authored by jhb on Sep 13 2022, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 4:59 PM
Unknown Object (File)
Fri, Sep 11, 2:18 PM
Unknown Object (File)
Thu, Sep 10, 12:35 AM
Unknown Object (File)
Tue, Sep 8, 11:54 PM
Unknown Object (File)
Tue, Sep 8, 11:04 PM
Unknown Object (File)
Sun, Sep 6, 4:06 PM
Unknown Object (File)
Sat, Sep 5, 8:49 PM
Unknown Object (File)
Sat, Sep 5, 7:45 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47363
Build 44250: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2022, 1:38 PM

This will require a __FreeBSD_version bump and needs patches for the following ports (I already have them patched locally, but will need to finalize the patches once the real __FreeBSD_version value is known):

  • emulators/open-vm-tools
  • x11/nvidia-driver*

I should clarify that the motivation behind both this change and the pmap_unmapdev change is to reduce friction with CheriBSD for which vm_offset_t as a type doesn't work with these APIs in CHERI kernels (vm_offset_t is an address but not a pointer in CHERI kernels)

This revision is now accepted and ready to land.Sep 13 2022, 2:01 PM