summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2011-08-12 10:54:52 -0500
committerMATTHEW S. BARTH <msbarth@us.ibm.com>2011-08-15 16:14:21 -0500
commit5b4ea4d127be9898ae1aada5df6b06e67ec47086 (patch)
tree2df7dd4825b8208492a536174f6f6bb4dc86d997 /src/usr
parentfa0113e4599fcca0c2d4c938c88d445d288a952a (diff)
downloadtalos-hostboot-5b4ea4d127be9898ae1aada5df6b06e67ec47086.tar.gz
talos-hostboot-5b4ea4d127be9898ae1aada5df6b06e67ec47086.zip
Support msgq and paging data for blocks in base segment
Change-Id: I4f1775b6a843140be97f3c328155aa1654086723 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/254 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/testcore/kernel/slbtest.H13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/testcore/kernel/slbtest.H b/src/usr/testcore/kernel/slbtest.H
index 0572ca068..d5920a14f 100644
--- a/src/usr/testcore/kernel/slbtest.H
+++ b/src/usr/testcore/kernel/slbtest.H
@@ -69,13 +69,22 @@ class slbtest: public CxxTest::TestSuite
int rc = -1;
msg_q_t mq = msg_q_create(); //Create empty message queue
uint64_t va = 0xC800000000; //800GB
- uint64_t size = 0x40000000; //1GB
- printk("Allocate 1GB block with empty msgq @ vaddr = 800GB within base segment\n");
+ uint64_t size = 0x100000; //1MB
+ printk("Allocate 1MB block with empty msgq @ vaddr = 800GB within base segment\n");
rc = mm_alloc_block(mq,reinterpret_cast<void*>(va),size);
if (rc != 0)
{
TS_FAIL("Failed to create BaseSegment block\n");
}
+ msg_q_t mq2 = msg_q_create(); //Create empty message queue
+ uint64_t va2 = 0xE100000000; //900GB
+ uint64_t size2 = 0x100000; //1MB
+ printk("Allocate 1MB block with empty msgq @ vaddr = 900GB within base segment\n");
+ rc = mm_alloc_block(mq2,reinterpret_cast<void*>(va2),size2);
+ if (rc != 0)
+ {
+ TS_FAIL("Failed to create BaseSegment block\n");
+ }
}
private:
OpenPOWER on IntegriCloud