diff options
Diffstat (limited to 'os/hal/osal')
-rw-r--r-- | os/hal/osal/os-less/AVR/osal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/osal/os-less/AVR/osal.h b/os/hal/osal/os-less/AVR/osal.h index 309ed6b7d..f0ae5d372 100644 --- a/os/hal/osal/os-less/AVR/osal.h +++ b/os/hal/osal/os-less/AVR/osal.h @@ -569,6 +569,7 @@ static inline void osalSysDisable(void) { static inline void osalSysEnable(void) {
asm volatile ("sei" : : : "memory");
+ asm volatile ("nop");
}
/**
@@ -591,6 +592,7 @@ static inline void osalSysLock(void) { static inline void osalSysUnlock(void) {
asm volatile ("sei" : : : "memory");
+ asm volatile ("nop");
}
/**
@@ -650,6 +652,7 @@ static inline void osalSysRestoreStatusX(syssts_t sts) { if ((sts & 0x80) != 0) {
asm volatile ("sei" : : : "memory");
+ asm volatile ("nop");
}
}
|