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)
Jan 19 2025, 1:49 PM
Unknown Object (File)
Jan 19 2025, 12:21 PM
Unknown Object (File)
Jan 15 2025, 4:34 PM
Unknown Object (File)
Jan 11 2025, 9:54 PM
Unknown Object (File)
Dec 24 2024, 1:07 PM
Unknown Object (File)
Nov 24 2024, 12:04 PM
Unknown Object (File)
Nov 22 2024, 9:36 AM
Unknown Object (File)
Nov 20 2024, 5:28 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

Lint
Lint Skipped
Unit
Tests Skipped

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.