libpayload: Correct shareability mmu configuration on ARM64
BUG=chrome-os-partner:38222 BRANCH=None TEST=Compiles successfully and boots kernel Change-Id: I6e1e841d84d1a73e5c726143aeba76af933e81a1 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 59861a2700407b9e6a6209fbc45543c127b50b4b Original-Change-Id: I256d07a41bec83037f2b61a9350f903119d8c101 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/263325 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Original-Trybot-Ready: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/9902 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
e1ba3dac41
commit
c769267395
|
@ -93,6 +93,7 @@ static uint64_t get_block_attr(unsigned long tag)
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
|
|
||||||
case TYPE_NORMAL_MEM:
|
case TYPE_NORMAL_MEM:
|
||||||
|
attr |= BLOCK_SH_INNER_SHAREABLE;
|
||||||
attr |= (BLOCK_INDEX_MEM_NORMAL << BLOCK_INDEX_SHIFT);
|
attr |= (BLOCK_INDEX_MEM_NORMAL << BLOCK_INDEX_SHIFT);
|
||||||
break;
|
break;
|
||||||
case TYPE_DEV_MEM:
|
case TYPE_DEV_MEM:
|
||||||
|
|
|
@ -80,6 +80,12 @@ extern char _start[], _end[];
|
||||||
|
|
||||||
#define BLOCK_ACCESS (1 << 10)
|
#define BLOCK_ACCESS (1 << 10)
|
||||||
|
|
||||||
|
#define BLOCK_SH_SHIFT (8)
|
||||||
|
#define BLOCK_SH_NON_SHAREABLE (0 << BLOCK_SH_SHIFT)
|
||||||
|
#define BLOCK_SH_UNPREDICTABLE (1 << BLOCK_SH_SHIFT)
|
||||||
|
#define BLOCK_SH_OUTER_SHAREABLE (2 << BLOCK_SH_SHIFT)
|
||||||
|
#define BLOCK_SH_INNER_SHAREABLE (3 << BLOCK_SH_SHIFT)
|
||||||
|
|
||||||
/* XLAT Table Init Attributes */
|
/* XLAT Table Init Attributes */
|
||||||
|
|
||||||
#define VA_START 0x0
|
#define VA_START 0x0
|
||||||
|
|
Loading…
Reference in New Issue