summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-09-14 18:09:10 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-09-14 18:09:10 -0500
commit7dbf41357d6061170530601022c123eaf8fc2934 (patch)
tree8da74fbf3a1919c73403b1c67ae8edad77843790 /src/kernel
parent2bc4d154dd12ccd2280012ddb1439020ca79eb79 (diff)
downloadtalos-hostboot-7dbf41357d6061170530601022c123eaf8fc2934.tar.gz
talos-hostboot-7dbf41357d6061170530601022c123eaf8fc2934.zip
Various VMM updates.
1) Do SLBIA prior to creating initial SLB entry. 2) Do proper TLBIEs. 3) Set Ks/Kp in SLB properly. 4) Test data storage exception on code space.
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/vmmmgr.C8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kernel/vmmmgr.C b/src/kernel/vmmmgr.C
index 43348ae67..51e26e60b 100644
--- a/src/kernel/vmmmgr.C
+++ b/src/kernel/vmmmgr.C
@@ -51,9 +51,11 @@ void VmmManager::initSLB()
// ESID = 0, V = 1, Index = 1.
slbRB = 0x0000000008000001;
- // B = 01 (1TB), VSID = 0, Ks = 1, Kp = 1, NLCLP = 0
- slbRS = 0x4000000000000C00;
+ // B = 01 (1TB), VSID = 0, Ks = 0, Kp = 1, NLCLP = 0
+ slbRS = 0x4000000000000400;
+ asm volatile("slbia" ::: "memory");
+ asm volatile("isync" ::: "memory");
asm volatile("slbmte %0, %1" :: "r"(slbRS), "r"(slbRB) : "memory");
asm volatile("isync" ::: "memory");
}
@@ -64,7 +66,7 @@ void VmmManager::initPTEs()
for(size_t i = 0; i < PTEG_COUNT; i++)
for (size_t j = 0; j < PTEG_SIZE; j++)
setValid(false, getPte(i,j));
-
+
// Set up linear map.
for(size_t i = 0; i < (FULL_MEM_SIZE / PAGESIZE); i++)
{
OpenPOWER on IntegriCloud