diff options
Diffstat (limited to 'src/usr/diag/attn/runtime')
-rw-r--r-- | src/usr/diag/attn/runtime/attn_rt.C | 56 | ||||
-rw-r--r-- | src/usr/diag/attn/runtime/attn_rt.mk | 26 | ||||
-rw-r--r-- | src/usr/diag/attn/runtime/makefile | 43 | ||||
-rw-r--r-- | src/usr/diag/attn/runtime/test/attntest_rt.H | 53 | ||||
-rw-r--r-- | src/usr/diag/attn/runtime/test/makefile | 35 |
5 files changed, 213 insertions, 0 deletions
diff --git a/src/usr/diag/attn/runtime/attn_rt.C b/src/usr/diag/attn/runtime/attn_rt.C new file mode 100644 index 000000000..0fcddc386 --- /dev/null +++ b/src/usr/diag/attn/runtime/attn_rt.C @@ -0,0 +1,56 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/attn/runtime/attn_rt.C $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2014 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +#include "common/attntrace.H" +#include <runtime/interface.h> +#include <runtime/rt_targeting.H> +#include <targeting/common/target.H> +#include <targeting/common/targetservice.H> +#include <targeting/common/utilFilter.H> +#include <errl/errlentry.H> +#include <errl/errlmanager.H> +#include <errno.h> + +using namespace std; +using namespace TARGETING; +using namespace ATTN; + +namespace ATTN_RT +{ + // enableAttns() and handleAttns() + // will be added later on. + + // will be used to register runtimeInterfaces + struct registerAttn + { + registerAttn() + { + ATTN_FAST("registerAttn"); + } + }; + + registerAttn g_registerAttn; +} + diff --git a/src/usr/diag/attn/runtime/attn_rt.mk b/src/usr/diag/attn/runtime/attn_rt.mk new file mode 100644 index 000000000..c571865b7 --- /dev/null +++ b/src/usr/diag/attn/runtime/attn_rt.mk @@ -0,0 +1,26 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/usr/diag/attn/runtime/attn_common.mk $ +# +# OpenPOWER HostBoot Project +# +# Contributors Listed Below - COPYRIGHT 2012,2014 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG + +ATTN_RT_OBJS += attn_rt.o diff --git a/src/usr/diag/attn/runtime/makefile b/src/usr/diag/attn/runtime/makefile new file mode 100644 index 000000000..352a39b4b --- /dev/null +++ b/src/usr/diag/attn/runtime/makefile @@ -0,0 +1,43 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/usr/diag/attn/runtime/makefile $ +# +# OpenPOWER HostBoot Project +# +# Contributors Listed Below - COPYRIGHT 2014 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG + +HOSTBOOT_RUNTIME = 1 +ROOTPATH = ../../../../.. + +EXTRAINCDIR += ${ROOTPATH}/src/include/usr/diag +CFLAGS += -iquote${ROOTPATH}/src/usr/diag/attn + +MODULE = attn_rt + +include attn_rt.mk + +OBJS += ${ATTN_RT_OBJS} + +SUBDIRS += test.d + +VPATH += .. +VPATH += ../common + +include ${ROOTPATH}/config.mk diff --git a/src/usr/diag/attn/runtime/test/attntest_rt.H b/src/usr/diag/attn/runtime/test/attntest_rt.H new file mode 100644 index 000000000..841f66bd5 --- /dev/null +++ b/src/usr/diag/attn/runtime/test/attntest_rt.H @@ -0,0 +1,53 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/attn/runtime/test/attntest_rt.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2014 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef __ATTNTEST_RT_H +#define __ATTNTEST_RT_H + +#include <cxxtest/TestSuite.H> +#include <runtime/interface.h> +#include <targeting/common/commontargeting.H> +#include "../../common/attntrace.H" + +class AttnTestRT: public CxxTest::TestSuite +{ + public: + + void testAttnIntf() + { + ATTN_SLOW("runtime testAttnIntf"); + + runtimeInterfaces_t* rt_intf = getRuntimeInterfaces(); + if (NULL == rt_intf) + { + TS_FAIL("AttnTestRT: runtimeIntfaces not set"); + return; + } + } + + private: + +}; + +#endif diff --git a/src/usr/diag/attn/runtime/test/makefile b/src/usr/diag/attn/runtime/test/makefile new file mode 100644 index 000000000..208bf830e --- /dev/null +++ b/src/usr/diag/attn/runtime/test/makefile @@ -0,0 +1,35 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/usr/diag/attn/runtime/test/makefile $ +# +# OpenPOWER HostBoot Project +# +# Contributors Listed Below - COPYRIGHT 2014 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG + +HOSTBOOT_RUNTIME = 1 +ROOTPATH = ../../../../../.. + +EXTRAINCDIR += ${ROOTPATH}/src/include/usr/diag + +MODULE = testattn_rt + +TESTS = *.H + +include ${ROOTPATH}/config.mk |