diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2012-07-16 21:37:56 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-18 14:06:41 -0500 |
commit | 6f6561babb56d891e88dbcd07646c23af2563ddd (patch) | |
tree | 2a1d669781a0a02870cb2bbbb91b3b81d4aea16b /src/usr/testcore | |
parent | dd8219097772fe68a6eb66ff20ef4f6ffb4e469f (diff) | |
download | talos-hostboot-6f6561babb56d891e88dbcd07646c23af2563ddd.tar.gz talos-hostboot-6f6561babb56d891e88dbcd07646c23af2563ddd.zip |
cpu_spr_value syscall for SLW image build.
Task 44887
Change-Id: If87b6e80b974bb4cbff13844d8a3f055a17282d2
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1378
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/testcore')
-rw-r--r-- | src/usr/testcore/kernel/misctest.H | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/usr/testcore/kernel/misctest.H b/src/usr/testcore/kernel/misctest.H new file mode 100644 index 000000000..9a7cbb2ba --- /dev/null +++ b/src/usr/testcore/kernel/misctest.H @@ -0,0 +1,54 @@ +/* IBM_PROLOG_BEGIN_TAG + * This is an automatically generated prolog. + * + * $Source: src/usr/testcore/kernel/misctest.H $ + * + * IBM CONFIDENTIAL + * + * COPYRIGHT International Business Machines Corp. 2012 + * + * p1 + * + * Object Code Only (OCO) source materials + * Licensed Internal Code Source Materials + * IBM HostBoot Licensed Internal Code + * + * The source code for this program is not published or other- + * wise divested of its trade secrets, irrespective of what has + * been deposited with the U.S. Copyright Office. + * + * Origin: 30 + * + * IBM_PROLOG_END_TAG + */ +#ifndef __TESTCORE_KERNEL_MISC_H +#define __TESTCORE_KERNEL_MISC_H + +#include <sys/misc.h> +#include <kernel/cpumgr.H> + +/** @file misctest.H + * + * Testcases for the system calls in sys/misc.h + */ + +class MiscTest : public CxxTest::TestSuite +{ + public: + + /** Tests for cpu_spr_value() */ + void testCpuSprValue() + { + if (CpuManager::WAKEUP_MSR_VALUE != cpu_spr_value(CPU_SPR_MSR)) + { + TS_FAIL("MSR value is not as expected."); + } + + if (CpuManager::WAKEUP_LPCR_VALUE != cpu_spr_value(CPU_SPR_LPCR)) + { + TS_FAIL("LPCR value is not as expected."); + } + } +}; + +#endif |