Page MenuHomeFreeBSD

arm64: Add ADDR_IS_USER
ClosedPublic

Authored by andrew on Jul 18 2025, 10:59 AM.
Tags
None
Referenced Files
F132227683: D51406.id158732.diff
Tue, Oct 14, 11:57 PM
Unknown Object (File)
Mon, Oct 13, 6:00 PM
Unknown Object (File)
Sun, Oct 12, 1:14 AM
Unknown Object (File)
Sun, Oct 12, 1:14 AM
Unknown Object (File)
Sun, Oct 12, 1:14 AM
Unknown Object (File)
Sat, Oct 11, 3:44 PM
Unknown Object (File)
Thu, Oct 9, 10:55 PM
Unknown Object (File)
Mon, Oct 6, 1:52 PM
Subscribers

Details

Summary

In most of the places we used ADDR_IS_KERNEL to decide which address
space was being used it was to see if the address was for userspace.

To make the checks more descriptive add ADDR_IS_USER rather than
checking for not ADDR_IS_KERNEL.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

kib added inline comments.
sys/arm64/include/vmparam.h
216

Might be test the bit 55 is 0 instead of using !ADDR_IS_KERNEL().
Also the comment in line 214 can be updated, or a new comment line added.

This revision is now accepted and ready to land.Jul 18 2025, 12:13 PM
This revision was automatically updated to reflect the committed changes.