From b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 10 Aug 2011 11:22:49 -0500 Subject: Allocate block system call stub Change-Id: Ief3476b5306bc231c9d3044b2736fcd195e840b1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/243 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/testcore/kernel/slbtest.H | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/usr') diff --git a/src/usr/testcore/kernel/slbtest.H b/src/usr/testcore/kernel/slbtest.H index 65fe3bd08..0572ca068 100644 --- a/src/usr/testcore/kernel/slbtest.H +++ b/src/usr/testcore/kernel/slbtest.H @@ -10,6 +10,7 @@ #include #include #include +#include class slbtest: public CxxTest::TestSuite { @@ -63,6 +64,20 @@ class slbtest: public CxxTest::TestSuite } } + void testSegBlock() + { + 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"); + rc = mm_alloc_block(mq,reinterpret_cast(va),size); + if (rc != 0) + { + TS_FAIL("Failed to create BaseSegment block\n"); + } + } + private: static void writeEA1TB(void *i_p) -- cgit v1.2.3