powerpc/8xx: change name of a few page flags to avoid confusion

_PAGE_PRIVILEGED corresponds to the SH bit which doesn't protect
against user access but only disables ASID verification on kernel
accesses. User access is controlled with _PMD_USER flag.

Name it _PAGE_SH instead of _PAGE_PRIVILEGED

_PAGE_HUGE corresponds to the SPS bit which doesn't really tells
that's it is a huge page but only that it is not a 4k page.

Name it _PAGE_SPS instead of _PAGE_HUGE

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Christophe Leroy
2018-10-09 13:52:18 +00:00
committed by Michael Ellerman
부모 5662315384
커밋 ff00552578
4개의 변경된 파일19개의 추가작업 그리고 19개의 파일을 삭제

파일 보기

@@ -11,7 +11,7 @@
static const struct flag_info flag_array[] = {
{
.mask = _PAGE_PRIVILEGED,
.mask = _PAGE_SH,
.val = 0,
.set = "user",
.clear = " ",