Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
f1b2e4ed
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f1b2e4ed
编写于
12月 24, 2018
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][qemu-vexpress] code cleanup.
Move idle_wfi to board.c for idle hook.
上级
6db31e30
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
19 deletion
+9
-19
bsp/qemu-vexpress-a9/cpu/context_gcc.S
bsp/qemu-vexpress-a9/cpu/context_gcc.S
+1
-1
bsp/qemu-vexpress-a9/cpu/cpuport.c
bsp/qemu-vexpress-a9/cpu/cpuport.c
+0
-6
bsp/qemu-vexpress-a9/cpu/interrupt.c
bsp/qemu-vexpress-a9/cpu/interrupt.c
+3
-10
bsp/qemu-vexpress-a9/drivers/board.c
bsp/qemu-vexpress-a9/drivers/board.c
+5
-2
未找到文件。
bsp/qemu-vexpress-a9/cpu/context_gcc.S
浏览文件 @
f1b2e4ed
...
...
@@ -117,7 +117,7 @@ rt_hw_context_switch:
ldmfd
sp
!,
{
r0
-
r12
,
lr
,
pc
}^
@
pop
new
task
r0
-
r12
,
lr
&
pc
,
copy
spsr
to
cpsr
/*
*
void
rt_hw_context_switch_interrupt
(
rt_u
int32
from
,
rt_uint32
to
)
;
*
void
rt_hw_context_switch_interrupt
(
rt_u
base_t
from
,
rt_ubase_t
to
)
;
*/
.
equ
Mode_USR
,
0x10
.
equ
Mode_FIQ
,
0x11
...
...
bsp/qemu-vexpress-a9/cpu/cpuport.c
浏览文件 @
f1b2e4ed
...
...
@@ -60,14 +60,8 @@ void rt_hw_spin_unlock(rt_hw_spinlock_t *lock)
lock
->
tickets
.
owner
++
;
__asm__
volatile
(
"dsb ishst
\n
sev"
:::
"memory"
);
}
#endif
/*RT_USING_SMP*/
void
idle_wfi
(
void
)
{
asm
volatile
(
"wfi"
);
}
/**
* @addtogroup ARM CPU
*/
...
...
bsp/qemu-vexpress-a9/cpu/interrupt.c
浏览文件 @
f1b2e4ed
...
...
@@ -25,9 +25,9 @@ struct rt_irq_desc isr_table[MAX_HANDLERS];
#ifndef RT_USING_SMP
/* Those varibles will be accessed in ISR, so we need to share them. */
rt_uint32_t
rt_interrupt_from_thread
;
rt_uint32_t
rt_interrupt_to_thread
;
rt_uint32_t
rt_thread_switch_interrupt_flag
;
rt_uint32_t
rt_interrupt_from_thread
=
0
;
rt_uint32_t
rt_interrupt_to_thread
=
0
;
rt_uint32_t
rt_thread_switch_interrupt_flag
=
0
;
#endif
const
unsigned
int
VECTOR_BASE
=
0x00
;
...
...
@@ -59,13 +59,6 @@ void rt_hw_interrupt_init(void)
arm_gic_dist_init
(
0
,
gic_dist_base
,
0
);
arm_gic_cpu_init
(
0
,
gic_cpu_base
);
/* init interrupt nest, and context in thread sp */
#ifndef RT_USING_SMP
rt_interrupt_from_thread
=
0
;
rt_interrupt_to_thread
=
0
;
rt_thread_switch_interrupt_flag
=
0
;
#endif
}
/**
...
...
bsp/qemu-vexpress-a9/drivers/board.c
浏览文件 @
f1b2e4ed
...
...
@@ -19,9 +19,13 @@
#define SYS_CTRL __REG32(REALVIEW_SCTL_BASE)
extern
void
idle_wfi
(
void
);
extern
void
rt_hw_ipi_handler_install
(
int
ipi_vector
,
rt_isr_handler_t
ipi_isr_handler
);
void
idle_wfi
(
void
)
{
asm
volatile
(
"wfi"
);
}
/**
* This function will initialize beaglebone board
*/
...
...
@@ -42,4 +46,3 @@ void rt_hw_board_init(void)
rt_hw_ipi_handler_install
(
RT_SCHEDULE_IPI
,
rt_scheduler_ipi_handler
);
#endif
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录