#include "interrupt.h"
#include "interr.h"
#include "breakpoint.h"
-#include "monitor.h"
void arch_init(void)
{
*os_context_register_addr(context,reg_ALLOC) |= 1;
}
+/* FIXME: untested */
+void arch_clear_pseudo_atomic_interrupted(os_context_t *context)
+{
+ *os_context_register_addr(context,reg_ALLOC) &= ~1;
+}
+
void arch_skip_instruction(os_context_t *context)
{
((char *) *os_context_pc_addr(context)) = ((char *) *os_context_npc_addr(context));
/* state so that we will continue as if nothing happened. */
if (NextPc == NULL)
- lose("SingleStepBreakpoint trap at strange time.");
+ lose("SingleStepBreakpoint trap at strange time.\n");
if ((SC_PC(scp)&~3) == (unsigned int)SingleStepTraps) {
/* The next instruction was not nullified. */