Commit 96259d70 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: map logical address with __va()

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5G5YB



--------------------------------

Although kmem and IO space are accessed with direct mapping on sw64,
it's not a standard method to or PAGE_OFFSET and access it directly
everywhere. This patch maps PA to VA with __va(). Besides, we change
type of some variables to pointer to make the code clearer.

Signed-off-by: default avatarHe Sheng <hesheng@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 447e5cc1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment