mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com> Co-authored-by: xqyjlj <xqyjlj@126.com>
This commit is contained in:
@@ -103,4 +103,11 @@ int __rt_ffs(int value)
|
||||
}
|
||||
#endif
|
||||
|
||||
rt_bool_t rt_hw_interrupt_is_disabled(void)
|
||||
{
|
||||
int rc;
|
||||
__asm__ volatile("mrs %0, cpsr" : "=r" (rc));
|
||||
return !!(rc & 0x80);
|
||||
}
|
||||
|
||||
/*@}*/
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef CPUPORT_H__
|
||||
#define CPUPORT_H__
|
||||
|
||||
#include <rtcompiler.h>
|
||||
|
||||
/* the exception stack without VFP registers */
|
||||
struct rt_hw_exp_stack
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user