Commit 5c841330 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: simplify pgtable helpers

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



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

This patch:
  - Remove unused macros.
  - Rename some variables and macros to make them shorter.
  - Add pfn_to_virt and virt_to_pfn to make code cleaner.
  - Map vaddr by __va().
  - Redefine mk_pte with pfn_to_pte.
  - Fix some wrong usages, like pgd_offset

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

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