diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-06-21 13:42:37 -0500 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2017-09-20 11:41:49 -0400 |
commit | 5d61e7910d6447e433a0286299ac1b6318e800b0 (patch) | |
tree | 5081ce74dbc7c199ec9fd4bafeaf45ceb29e93a8 /src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H | |
parent | c6d037412427d74339b6992bc36684ca62db27ab (diff) | |
download | talos-hostboot-5d61e7910d6447e433a0286299ac1b6318e800b0.tar.gz talos-hostboot-5d61e7910d6447e433a0286299ac1b6318e800b0.zip |
Add FAPI_CALL_SUBROUTINE macro
Change-Id: I0bb7775261505503c4381827e86580199cd60cd4
Original-Change-Id: Icaef8792e225d7f3ae5a3296ccb24537f2e34ac6
RTC:154384
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29757
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46381
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H')
-rw-r--r-- | src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H b/src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H new file mode 100644 index 000000000..6318902b5 --- /dev/null +++ b/src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/hwpf/fapi2/include/fapi2_subroutine_executor.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* [+] 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 */ +/// +/// @file fapi2_sub_executor.H +/// +/// @brief Defines the FAPI2 Subroutine Executor Macro. +/// +/// The FAPI2 Subroutine Executor macro is called to execute a chip-op +/// or subroutine. +/// + +#ifndef FAPI2SUBEXECUTOR_H_ +#define FAPI2SUBEXECUTOR_H_ + +#include <plat_sub_executor.H> + +/** + * @brief Subroutine Executor macro + * + * This macro calls a PLAT macro which will do any platform specific work to + * execute the Subroutine (e.g. dlopening a shared library) + */ +#define FAPI_CALL_SUBROUTINE(RC, CHIPOP, FUNC, _args_...) \ + FAPI_PLAT_CALL_SUBROUTINE(RC, CHIPOP, FUNC, ##_args_) + +#endif // FAPI2SUBEXECUTOR_H_ |