summaryrefslogtreecommitdiff
path: root/big-little/common/pagetable_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'big-little/common/pagetable_setup.c')
-rw-r--r--big-little/common/pagetable_setup.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/big-little/common/pagetable_setup.c b/big-little/common/pagetable_setup.c
index 431e047..e394b15 100644
--- a/big-little/common/pagetable_setup.c
+++ b/big-little/common/pagetable_setup.c
@@ -201,8 +201,7 @@ static void CreateL3PageTable(four_kb_pt_desc * l3_mapping, unsigned level,
/*
* Replace the existing descriptor with new mapping and attributes
*/
- l3_pt_addr[pa_4k_index] =
- l3_mapping->va | l3_mapping->attrs;
+ l3_pt_addr[pa_4k_index] = l3_mapping->va | l3_mapping->attrs;
return;
}
@@ -218,8 +217,7 @@ static void Add4KMapping(four_kb_pt_desc * l3_mapping)
/*
* Replace the existing descriptor with new mapping and attributes
*/
- l3_pt_addr[pa_4k_index] =
- l3_mapping->va | l3_mapping->attrs;
+ l3_pt_addr[pa_4k_index] = l3_mapping->va | l3_mapping->attrs;
return;
}
@@ -283,7 +281,7 @@ void CreateHypModePageTables(void)
l3_desc.va = (unsigned)&BL_DV_PAGE$$Base;
l3_desc.pa = (unsigned)&BL_DV_PAGE$$Base;
l3_desc.attrs = ACCESS_FLAG | HMAIR0_DEVICE_MEM_ATTR_IDX |
- SHAREABILITY(0x3) | AP(KERN_RW) | VALID_MAPPING;
+ SHAREABILITY(0x3) | AP(KERN_RW) | VALID_MAPPING;
l3_desc.pt_addr = hyp_l3_so_pt;
CreateL3PageTable(&l3_desc, LEVEL1,
(unsigned long long *)hyp_l1_pagetable);
@@ -366,7 +364,7 @@ void Create2ndStagePageTables(void)
l3_desc.va = VGIC_VM_PHY_BASE;
l3_desc.pa = GIC_IC_PHY_BASE;
l3_desc.attrs = ACCESS_FLAG | SHAREABILITY(0x3) | ACCESS_PERM(0x3) |
- MEM_ATTR(0x1) | VALID_MAPPING;
+ MEM_ATTR(0x1) | VALID_MAPPING;
l3_desc.pt_addr = stage2_l3_cpuif_pt;
CreateL3PageTable(&l3_desc, LEVEL2,
(unsigned long long *)stage2_l2_pagetable);
@@ -375,7 +373,7 @@ void Create2ndStagePageTables(void)
l3_desc.va = VGIC_VM_PHY_BASE + 0x1000;
l3_desc.pa = GIC_IC_PHY_BASE + 0x1000;
l3_desc.attrs = ACCESS_FLAG | SHAREABILITY(0x3) | ACCESS_PERM(0x3) |
- MEM_ATTR(0x1) | VALID_MAPPING;
+ MEM_ATTR(0x1) | VALID_MAPPING;
l3_desc.pt_addr = stage2_l3_cpuif_pt;
Add4KMapping(&l3_desc);
@@ -383,7 +381,7 @@ void Create2ndStagePageTables(void)
l3_desc.va = GIC_ID_PHY_BASE;
l3_desc.pa = GIC_ID_PHY_BASE;
l3_desc.attrs = ACCESS_FLAG | SHAREABILITY(0x3) | ACCESS_PERM(0x3) |
- MEM_ATTR(0x1);
+ MEM_ATTR(0x1);
l3_desc.pt_addr = stage2_l3_cpuif_pt;
Add4KMapping(&l3_desc);
@@ -395,7 +393,7 @@ void Create2ndStagePageTables(void)
l3_desc.va = (unsigned)&BL_DV_PAGE$$Base;
l3_desc.pa = (unsigned)&BL_DV_PAGE$$Base;
l3_desc.attrs = ACCESS_FLAG | SHAREABILITY(0x3) | ACCESS_PERM(0x3) |
- MEM_ATTR(0x1) | VALID_MAPPING;
+ MEM_ATTR(0x1) | VALID_MAPPING;
l3_desc.pt_addr = stage2_l3_so_pt;
CreateL3PageTable(&l3_desc, LEVEL2,
(unsigned long long *)stage2_l2_pagetable);
@@ -404,10 +402,10 @@ void Create2ndStagePageTables(void)
l3_desc.va = KFSCB_BASE;
l3_desc.pa = KFSCB_BASE;
l3_desc.attrs = ACCESS_FLAG | SHAREABILITY(0x3) | ACCESS_PERM(0x3) |
- MEM_ATTR(0x1);
+ MEM_ATTR(0x1);
l3_desc.pt_addr = stage2_l3_kfscb_pt;
CreateL3PageTable(&l3_desc, LEVEL2,
- (unsigned long long *)stage2_l2_pagetable);
+ (unsigned long long *)stage2_l2_pagetable);
return;
}
@@ -484,7 +482,9 @@ void SetupVirtExtPageTables(void)
Create2ndStagePageTables();
/* Send the event to all the cpus on this cluster */
- num_cpus = CLUSTER_CPU_COUNT(cluster_id) + CLUSTER_CPU_COUNT(!cluster_id);
+ num_cpus =
+ CLUSTER_CPU_COUNT(cluster_id) +
+ CLUSTER_CPU_COUNT(!cluster_id);
cpu_mask = (1 << num_cpus) - 1;
set_events(VIRT_PGT_DONE, cpu_mask);
}