stm32f2能够运行
This commit is contained in:
@@ -124,8 +124,8 @@ void arch_set_enable_irq_prio(int inx, int sub_prio, int pre_prio);
|
||||
|
||||
static inline __attribute__((optimize(0))) void preemption(void)
|
||||
{
|
||||
cli();
|
||||
sti();
|
||||
cli();
|
||||
}
|
||||
|
||||
static inline umword_t intr_status(void)
|
||||
|
||||
@@ -127,8 +127,8 @@ void arch_set_enable_irq_prio(int inx, int sub_prio, int pre_prio);
|
||||
|
||||
static inline __attribute__((optimize(0))) void preemption(void)
|
||||
{
|
||||
cli();
|
||||
sti();
|
||||
cli();
|
||||
}
|
||||
|
||||
static inline umword_t intr_status(void)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "string.h"
|
||||
typedef struct entry_frame_tmp
|
||||
{
|
||||
umword_t r[6];
|
||||
umword_t r[8];
|
||||
} entry_frame_tmp_t;
|
||||
|
||||
static void syscall_entry_raw(entry_frame_tmp_t entry);
|
||||
|
||||
@@ -124,8 +124,8 @@ void arch_set_enable_irq_prio(int inx, int sub_prio, int pre_prio);
|
||||
|
||||
static inline __attribute__((optimize(0))) void preemption(void)
|
||||
{
|
||||
cli();
|
||||
sti();
|
||||
cli();
|
||||
}
|
||||
|
||||
static inline umword_t intr_status(void)
|
||||
|
||||
@@ -124,8 +124,8 @@ void arch_set_enable_irq_prio(int inx, int sub_prio, int pre_prio);
|
||||
|
||||
static inline void preemption(void)
|
||||
{
|
||||
cli();
|
||||
sti();
|
||||
cli();
|
||||
}
|
||||
|
||||
static inline umword_t intr_status(void)
|
||||
|
||||
@@ -57,8 +57,13 @@ typedef struct msg_tag
|
||||
.msg_buf_len = (msg_words), \
|
||||
.map_buf_len = (buf_words), \
|
||||
.prot = (p)})
|
||||
#if ARCH_WORD_SIZE == 64
|
||||
#define msg_tag_get_prot(tag) \
|
||||
((int)((tag).prot))
|
||||
#else
|
||||
#define msg_tag_get_prot(tag) \
|
||||
((short)((tag).prot))
|
||||
#endif
|
||||
#define msg_tag_get_val(tag) msg_tag_get_prot(tag)
|
||||
|
||||
typedef union syscall_prot
|
||||
|
||||
@@ -233,6 +233,6 @@ void start_kernel(void)
|
||||
|
||||
while (1)
|
||||
{
|
||||
knl_main();
|
||||
// knl_main();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user