Page MenuHomeFreeBSD

arm64_pmap: narrow scope of bti_same test
ClosedPublic

Authored by dougm on May 11 2024, 6:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 7:00 AM
Unknown Object (File)
Fri, Mar 20, 6:55 AM
Unknown Object (File)
Fri, Mar 20, 6:55 AM
Unknown Object (File)
Tue, Mar 17, 2:26 AM
Unknown Object (File)
Mar 7 2026, 1:09 AM
Unknown Object (File)
Feb 9 2026, 3:28 AM
Unknown Object (File)
Jan 25 2026, 12:08 PM
Unknown Object (File)
Jan 2 2026, 9:15 PM
Subscribers

Details

Summary

The pmap_bti_same test in pmap_enter_l3c only happens in the !ADDR_IS_KERNEL case; in the other case, a KASSERT fails. So move the test into that case to save a bit of time when ADDR_IS_KERNEL.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.May 11 2024, 6:57 AM
sys/arm64/arm64/pmap.c
5680–5681

This is unneeded, it always returns true for a kernel address as bti is always enabled.

This revision is now accepted and ready to land.May 13 2024, 6:05 PM
This revision was automatically updated to reflect the committed changes.