]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc64: change CAS to support Radix MMU
authorLeandro Lupori <luporl@FreeBSD.org>
Wed, 15 Sep 2021 18:12:37 +0000 (15:12 -0300)
committerLeandro Lupori <luporl@FreeBSD.org>
Thu, 30 Sep 2021 11:34:16 +0000 (08:34 -0300)
commitcc8e726c85bee3f3da0fb02c12028f2310a7ee17
tree0320f0717fc28316e5abdc6ac3291035cb19fade
parentc926cf71d4445575069214881bf13bdeb4a6a6d1
powerpc64: change CAS to support Radix MMU

Use radix_mmu environment variable to select between Hash or Radix
MMU, when performing the CAS method call. This matches kernel's
behavior, by selecting Hash MMU by default and Radix if radix_mmu
is not zero, to make sure that both loader and kernel always select
the same MMU.

The device tree is queried to detect Radix/GTSE support and to
find out if CAS is supported, making the old CPU version and HV
bit checks unnecessary now.

Reviewed by: jhibbits
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D31951

(cherry picked from commit a58abcde2c83b71e5bf19575750564f7bff78833)
stand/powerpc/ofw/cas.c