stm32f2能够运行

This commit is contained in:
zhangzheng
2024-04-11 12:00:49 +08:00
parent 5b2ac390ab
commit acb21792bb
18 changed files with 42 additions and 21 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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);

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -233,6 +233,6 @@ void start_kernel(void)
while (1)
{
knl_main();
// knl_main();
}
}