Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #98 from AlessandroA/comment_out_assert
Browse files Browse the repository at this point in the history
Comment out assertions in critical.c
  • Loading branch information
0xc0170 committed Mar 4, 2016
2 parents 3db1fdb + 0fa540b commit 0ef4e59
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions source/critical.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ void core_util_critical_section_enter()
are enabled, then something has gone badly wrong thus assert an error.
*/

assert(interruptEnableCounter < UINT32_MAX);
/* FIXME: This assertion needs to be commented out for the moment, as it
* triggers a fault when uVisor is enabled. For more information on
* the fault please checkout ARMmbed/mbed-drivers#176. */
/* assert(interruptEnableCounter < UINT32_MAX); */
if (interruptEnableCounter > 0) {
assert(primask & 0x1);
/* FIXME: This assertion needs to be commented out for the moment, as it
* triggers a fault when uVisor is enabled. For more information
* on the fault please checkout ARMmbed/mbed-drivers#176. */
/* assert(primask & 0x1); */
}
interruptEnableCounter++;
}
Expand All @@ -58,7 +64,10 @@ void core_util_critical_section_exit()

uint32_t primask = __get_PRIMASK(); // get the current interrupt enabled state

assert(primask & 0x1); // Interrupts must be disabled on invoking an exit from a critical section
/* FIXME: This assertion needs to be commented out for the moment, as it
* triggers a fault when uVisor is enabled. For more information
* on the fault please checkout ARMmbed/mbed-drivers#176. */
/* assert(primask & 0x1); // Interrupts must be disabled on invoking an exit from a critical section */

interruptEnableCounter--;

Expand Down

0 comments on commit 0ef4e59

Please sign in to comment.