mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
commit
effb15a2cc
@ -40,25 +40,6 @@
|
||||
.global cpu_switch_context_exit
|
||||
.global task_return
|
||||
.global ctx_switch
|
||||
.global dINT
|
||||
.global eINT
|
||||
|
||||
.func
|
||||
dINT:
|
||||
mrs r0, cpsr
|
||||
|
||||
orr r0, r0, #NOINT /* Disable Int */
|
||||
msr CPSR_c, r0
|
||||
mov pc,lr
|
||||
.endfunc
|
||||
|
||||
.func
|
||||
eINT:
|
||||
mrs r0, cpsr
|
||||
and r0, r0, #~NOINT /* Enable Int */
|
||||
msr CPSR_c, r0
|
||||
mov pc,lr
|
||||
.endfunc
|
||||
|
||||
ctx_switch:
|
||||
/* Save return address on stack */
|
||||
|
||||
@ -20,9 +20,6 @@
|
||||
#define NEW_TASK_CPSR 0x1F
|
||||
#define WORDSIZE 32
|
||||
|
||||
extern void dINT(void);
|
||||
extern void eINT(void);
|
||||
|
||||
uint32_t get_system_speed(void);
|
||||
void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale);
|
||||
|
||||
|
||||
@ -43,9 +43,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define eINT enableIRQ
|
||||
#define dINT disableIRQ
|
||||
|
||||
/**
|
||||
* @brief global in-ISR state variable
|
||||
*/
|
||||
|
||||
@ -64,14 +64,6 @@ extern "C" {
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Deprecated interrupt control function for backward compatibility
|
||||
* @{
|
||||
*/
|
||||
#define eINT enableIRQ
|
||||
#define dINT disableIRQ
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Some members of the Cortex-M family have architecture specific
|
||||
* atomic operations in atomic_arch.c
|
||||
|
||||
@ -26,10 +26,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* TODO: remove once these have been removed from RIOT: */
|
||||
void dINT(void);
|
||||
void eINT(void);
|
||||
|
||||
/**
|
||||
* @brief Prints the last instruction's address
|
||||
*/
|
||||
|
||||
@ -218,17 +218,6 @@ int inISR(void)
|
||||
return _native_in_isr;
|
||||
}
|
||||
|
||||
|
||||
void dINT(void)
|
||||
{
|
||||
disableIRQ();
|
||||
}
|
||||
|
||||
void eINT(void)
|
||||
{
|
||||
enableIRQ();
|
||||
}
|
||||
|
||||
int _native_popsig(void)
|
||||
{
|
||||
int nread, nleft, i;
|
||||
|
||||
@ -121,7 +121,7 @@ void _native_syscall_leave(void)
|
||||
)
|
||||
{
|
||||
_native_in_isr = 1;
|
||||
disableIRQ();
|
||||
unsigned int mask = disableIRQ();
|
||||
_native_cur_ctx = (ucontext_t *)sched_active_thread->sp;
|
||||
native_isr_context.uc_stack.ss_sp = __isr_stack;
|
||||
native_isr_context.uc_stack.ss_size = SIGSTKSZ;
|
||||
@ -130,7 +130,7 @@ void _native_syscall_leave(void)
|
||||
if (swapcontext(_native_cur_ctx, &native_isr_context) == -1) {
|
||||
err(EXIT_FAILURE, "_native_syscall_leave: swapcontext");
|
||||
}
|
||||
enableIRQ();
|
||||
restoreIRQ(mask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -206,7 +206,7 @@ void pthread_exit(void *retval)
|
||||
}
|
||||
}
|
||||
|
||||
dINT();
|
||||
disableIRQ();
|
||||
if (self->stack) {
|
||||
msg_t m;
|
||||
m.content.ptr = self->stack;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user