]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Start to clean up arm64 address space selection
authorAndrew Turner <andrew@FreeBSD.org>
Wed, 14 Jul 2021 15:19:06 +0000 (15:19 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 30 Aug 2021 11:22:21 +0000 (12:22 +0100)
commite20f0db4a94ab5c29161fda4e6377878f78ab8d7
tree1c8c600205f5735d8ff33622b6322cd0405f3b1c
parent45f92b1e834c11093d8c1fd4fb7654a14e0b2de1
Start to clean up arm64 address space selection

On arm64 we should use bit 55 of the address to decide if aan address
is a user or kernel address. Add a new macro with this check and a
second to ensure the address is in teh canonical form, i.e.
the top bits are all zero or all one.

This will help with supporting future cpu features, including Top
Byte Ignore, Pointer Authentication, and Memory Tagging.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31179

(cherry picked from commit b7a78d573a566c77117af5fe0b259620934a5c7f)
sys/arm64/arm64/machdep.c
sys/arm64/arm64/pmap.c
sys/arm64/arm64/trap.c
sys/arm64/include/vmparam.h