Page MenuHomeFreeBSD

arm64_pmap: narrow scope of bti_same test
ClosedPublic

Authored by dougm on Sat, May 11, 6:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 22, 3:21 AM
Unknown Object (File)
Mon, May 20, 12:24 AM
Unknown Object (File)
Sun, May 19, 8:01 PM
Unknown Object (File)
Sun, May 19, 5:27 PM
Unknown Object (File)
Sun, May 19, 5:27 PM
Unknown Object (File)
Sat, May 18, 1:44 AM
Unknown Object (File)
Sat, May 18, 1:44 AM
Unknown Object (File)
Sat, May 18, 1:44 AM
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.Sat, May 11, 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.Mon, May 13, 6:05 PM
This revision was automatically updated to reflect the committed changes.