summaryrefslogtreecommitdiffstats
path: root/src/sbefw/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbefw/core')
-rw-r--r--src/sbefw/core/sbeexeintf.H10
-rw-r--r--src/sbefw/core/sbeirq.C2
2 files changed, 9 insertions, 3 deletions
diff --git a/src/sbefw/core/sbeexeintf.H b/src/sbefw/core/sbeexeintf.H
index 80d89586..eaeab51c 100644
--- a/src/sbefw/core/sbeexeintf.H
+++ b/src/sbefw/core/sbeexeintf.H
@@ -5,7 +5,8 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* Contributors Listed Below - COPYRIGHT 2015,2018 */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -44,7 +45,6 @@ extern "C" {
#ifdef __cplusplus
}
#endif
-
/**
* @brief enums for priorities for thread creation
*
@@ -118,6 +118,8 @@ typedef struct
void setIntrSource(const sbeHandler_t i_handler,
const sbeInterfaceSrc_t i_val)
{
+ PkMachineContext ctx;
+ pk_critical_section_enter(&ctx);
switch(i_handler)
{
case SBE_INTERRUPT_ROUTINE: intrSource |= i_val; break;
@@ -125,11 +127,14 @@ typedef struct
case SBE_PROC_ROUTINE: procThrIntrSource |= i_val; break;
case SBE_ALL_HANDLER: break;
}
+ pk_critical_section_exit(&ctx);
}
void clearIntrSource(const sbeHandler_t i_handler,
const sbeInterfaceSrc_t i_val)
{
+ PkMachineContext ctx;
+ pk_critical_section_enter(&ctx);
switch(i_handler)
{
case SBE_INTERRUPT_ROUTINE: intrSource &= ~i_val; break;
@@ -143,6 +148,7 @@ typedef struct
break;
}
}
+ pk_critical_section_exit(&ctx);
}
bool isSet (const sbeHandler_t i_handler, const sbeInterfaceSrc_t i_val)
diff --git a/src/sbefw/core/sbeirq.C b/src/sbefw/core/sbeirq.C
index 48021f3c..a1d5b72b 100644
--- a/src/sbefw/core/sbeirq.C
+++ b/src/sbefw/core/sbeirq.C
@@ -51,7 +51,7 @@
void sbe_interrupt_handler (void *i_pArg, PkIrqId i_irq)
{
#define SBE_FUNC " sbe_interrupt_handler "
- SBE_ENTER(SBE_FUNC"i_irq=[0x%02X]",i_irq);
+ SBE_INFO(SBE_FUNC"i_irq=[0x%02X]",i_irq);
int l_rc = 0;
OpenPOWER on IntegriCloud