diff options
author | Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org> | 2015-09-04 15:11:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-14 11:40:03 +0200 |
commit | 89e44b51cc0db50ea4b5bbb5d582c4db88bbaed8 (patch) | |
tree | 0a47165178fb3130382db1ebfc1516537ea8623f /arch/mips/kernel/syscall.c | |
parent | arm64/mm: Add PROT_DEVICE_nGnRnE and PROT_NORMAL_WT (diff) | |
download | linux-89e44b51cc0db50ea4b5bbb5d582c4db88bbaed8.tar.xz linux-89e44b51cc0db50ea4b5bbb5d582c4db88bbaed8.zip |
arm64, acpi/apei: Implement arch_apei_get_mem_attributes()
Table 8 of UEFI 2.5 section 2.3.6.1 defines mappings from EFI
memory types to MAIR attribute encodings for arm64.
If the physical address has memory attributes defined by EFI
memmap as EFI_MEMORY_[UC|WC|WT], return approprate page
protection type according to the UEFI spec. Otherwise, return
PAGE_KERNEL.
Signed-off-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
[ Small stylistic tweaks. ]
Reviewed-by: Matt Fleming <matt.fleming@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1441372302-23242-2-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/mips/kernel/syscall.c')
0 files changed, 0 insertions, 0 deletions