Skip to content
Snippets Groups Projects
Commit 72013649 authored by MohmadAyman's avatar MohmadAyman Committed by Martine Lenders
Browse files

cpu: unify naming of ISR stacksize macro

parent 4a70299d
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ extern "C" { ...@@ -30,6 +30,7 @@ extern "C" {
#define THREAD_EXTRA_STACKSIZE_PRINTF (8192) #define THREAD_EXTRA_STACKSIZE_PRINTF (8192)
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (8192) #define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (8192)
#define THREAD_STACKSIZE_MINIMUM (8192) #define THREAD_STACKSIZE_MINIMUM (8192)
#define ISR_STACKSIZE (0)
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -40,6 +40,7 @@ extern "C" { ...@@ -40,6 +40,7 @@ extern "C" {
#endif #endif
#define THREAD_STACKSIZE_IDLE (128) #define THREAD_STACKSIZE_IDLE (128)
#define ISR_STACKSIZE (0)
/** @} */ /** @} */
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -51,6 +51,8 @@ extern "C" { ...@@ -51,6 +51,8 @@ extern "C" {
#endif #endif
#define THREAD_STACKSIZE_IDLE (160) #define THREAD_STACKSIZE_IDLE (160)
#define ISR_STACKSIZE (0)
/** @} */ /** @} */
/** /**
......
...@@ -75,7 +75,7 @@ extern volatile int __irq_is_in; ...@@ -75,7 +75,7 @@ extern volatile int __irq_is_in;
/** /**
* @brief Memory used as stack for the interrupt context * @brief Memory used as stack for the interrupt context
*/ */
extern char __isr_stack[MSP430_ISR_STACK_SIZE]; extern char __isr_stack[ISR_STACKSIZE];
/** /**
* @brief Save the current thread context from inside an ISR * @brief Save the current thread context from inside an ISR
...@@ -126,7 +126,7 @@ static inline void __attribute__((always_inline)) __restore_context(void) ...@@ -126,7 +126,7 @@ static inline void __attribute__((always_inline)) __restore_context(void)
static inline void __attribute__((always_inline)) __enter_isr(void) static inline void __attribute__((always_inline)) __enter_isr(void)
{ {
__save_context(); __save_context();
__asm__("mov.w %0,r1" : : "i"(__isr_stack + MSP430_ISR_STACK_SIZE)); __asm__("mov.w %0,r1" : : "i"(__isr_stack + ISR_STACKSIZE));
__irq_is_in = 1; __irq_is_in = 1;
} }
......
...@@ -25,7 +25,7 @@ extern "C" { ...@@ -25,7 +25,7 @@ extern "C" {
#endif #endif
#define THREAD_STACKSIZE_IDLE (96) #define THREAD_STACKSIZE_IDLE (96)
#define MSP430_ISR_STACK_SIZE (256) #define ISR_STACKSIZE (256)
#ifndef GNRC_PKTBUF_SIZE #ifndef GNRC_PKTBUF_SIZE
#define GNRC_PKTBUF_SIZE (2560) /* TODO: Make this value #define GNRC_PKTBUF_SIZE (2560) /* TODO: Make this value
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
volatile int __irq_is_in = 0; volatile int __irq_is_in = 0;
char __isr_stack[MSP430_ISR_STACK_SIZE]; char __isr_stack[ISR_STACKSIZE];
unsigned int irq_disable(void) unsigned int irq_disable(void)
{ {
......
...@@ -36,7 +36,7 @@ extern "C" { ...@@ -36,7 +36,7 @@ extern "C" {
#define THREAD_STACKSIZE_MINIMUM (163840) #define THREAD_STACKSIZE_MINIMUM (163840)
/* native internal */ /* native internal */
#define THREAD_STACKSIZE_MINIMUM (163840) #define THREAD_STACKSIZE_MINIMUM (163840)
#define NATIVE_ISR_STACKSIZE (163840) #define ISR_STACKSIZE (163840)
#else /* Linux etc. */ #else /* Linux etc. */
#define THREAD_STACKSIZE_DEFAULT (8192) #define THREAD_STACKSIZE_DEFAULT (8192)
...@@ -46,7 +46,7 @@ extern "C" { ...@@ -46,7 +46,7 @@ extern "C" {
/* for core/include/thread.h */ /* for core/include/thread.h */
#define THREAD_STACKSIZE_MINIMUM (8192) #define THREAD_STACKSIZE_MINIMUM (8192)
/* native internal */ /* native internal */
#define NATIVE_ISR_STACKSIZE (8192) #define ISR_STACKSIZE (8192)
#endif /* OS */ #endif /* OS */
/** @} */ /** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment