Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
216285a2
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
216285a2
编写于
12月 25, 2020
作者:
G
greedyhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bluetrum] fix context switch error
上级
9a59737b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
6 deletion
+15
-6
bsp/bluetrum/ab32vg1-ab-prougen/.config
bsp/bluetrum/ab32vg1-ab-prougen/.config
+5
-2
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
+2
-2
bsp/bluetrum/libcpu/cpu/context_gcc.S
bsp/bluetrum/libcpu/cpu/context_gcc.S
+6
-2
bsp/bluetrum/libcpu/cpu/cpuport.c
bsp/bluetrum/libcpu/cpu/cpuport.c
+2
-0
未找到文件。
bsp/bluetrum/ab32vg1-ab-prougen/.config
浏览文件 @
216285a2
...
...
@@ -288,6 +288,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_PDULIB is not set
# CONFIG_PKG_USING_BTSTACK is not set
# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set
# CONFIG_PKG_USING_WAYZ_IOTKIT is not set
#
# security packages
...
...
@@ -437,6 +438,8 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_QKEY is not set
# CONFIG_PKG_USING_RS485 is not set
# CONFIG_PKG_USING_NES is not set
# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set
# CONFIG_PKG_USING_VDEVICE is not set
#
# miscellaneous packages
...
...
@@ -495,13 +498,13 @@ CONFIG_RT_USING_LIBC=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_USB_TO_USART
=
y
CONFIG_BSP_USING_AUDIO
=
y
CONFIG_BSP_USING_AUDIO_PLAY
=
y
#
# On-chip Peripheral Drivers
#
CONFIG_BSP_USING_UART0
=
y
CONFIG_BSP_USING_AUDIO
=
y
CONFIG_BSP_USING_AUDIO_PLAY
=
y
#
# Board extended module Drivers
...
...
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
浏览文件 @
216285a2
...
...
@@ -169,12 +169,12 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_USB_TO_USART
#define BSP_USING_AUDIO
#define BSP_USING_AUDIO_PLAY
/* On-chip Peripheral Drivers */
#define BSP_USING_UART0
#define BSP_USING_AUDIO
#define BSP_USING_AUDIO_PLAY
/* Board extended module Drivers */
...
...
bsp/bluetrum/libcpu/cpu/context_gcc.S
浏览文件 @
216285a2
...
...
@@ -44,7 +44,7 @@ enable_int_ret:
/*
Macro
for
saving
task
context
*/
.
macro
save_context
addi
sp
,
sp
,
-
12
0
addi
sp
,
sp
,
-
12
4
/
*
Save
Context
*/
sw
x1
,
0
(
sp
)
...
...
@@ -79,6 +79,8 @@ enable_int_ret:
lw
a5
,
EPC
(
zero
)
//
Saves
current
program
counter
(
EPC
)
as
task
program
counter
sw
a5
,
116
(
sp
)
lw
a5
,
EPICCON
(
zero
)
sw
a5
,
120
(
sp
)
sw
sp
,
rt_cur_thread_sp
,
a4
//
store
sp
in
preempted
tasks
tcb
.
endm
...
...
@@ -93,6 +95,8 @@ enable_int_ret:
/
*
Load
task
program
counter
EPC
*/
lw
a5
,
116
(
sp
)
sw
a5
,
EPC
(
zero
)
lw
a5
,
120
(
sp
)
sw
a5
,
EPICCON
(
zero
)
/
*
Restore
registers
,
Skip
global
pointer
because
that
does
not
change
*/
...
...
@@ -126,7 +130,7 @@ enable_int_ret:
lw
x30
,
108
(
sp
)
lw
x31
,
112
(
sp
)
addi
sp
,
sp
,
12
0
addi
sp
,
sp
,
12
4
mret
.
endm
...
...
bsp/bluetrum/libcpu/cpu/cpuport.c
浏览文件 @
216285a2
...
...
@@ -39,6 +39,8 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
stack_addr
=
(
rt_uint8_t
*
)
RT_ALIGN_DOWN
((
rt_uint32_t
)
stack_addr
,
8
);
stk
=
(
rt_uint32_t
*
)
stack_addr
;
stk
--
;
*
stk
=
(
rt_uint32_t
)
0x10003
;
/* Start address */
stk
--
;
*
stk
=
(
rt_uint32_t
)
tentry
;
/* Start address */
stk
-=
22
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录