Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
26863a27
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
26863a27
编写于
5月 12, 2019
作者:
N
neal
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][at91sam9g45]Fix build bugs which caused by the change of libcpu/arm/arm926/start_gcc.S
上级
9f7cc78b
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
36 addition
and
12 deletion
+36
-12
bsp/allwinner_tina/libcpu/interrupt.c
bsp/allwinner_tina/libcpu/interrupt.c
+2
-1
bsp/at91sam9g45/drivers/board.c
bsp/at91sam9g45/drivers/board.c
+2
-2
bsp/at91sam9g45/link_scripts/at91sam9g45_ram.ld
bsp/at91sam9g45/link_scripts/at91sam9g45_ram.ld
+4
-4
bsp/at91sam9g45/platform/interrupt.c
bsp/at91sam9g45/platform/interrupt.c
+24
-1
bsp/at91sam9g45/rtconfig.py
bsp/at91sam9g45/rtconfig.py
+1
-1
libcpu/arm/arm926/trap.c
libcpu/arm/arm926/trap.c
+3
-3
未找到文件。
bsp/allwinner_tina/libcpu/interrupt.c
浏览文件 @
26863a27
...
...
@@ -102,6 +102,7 @@ void rt_hw_interrupt_mask(int vector)
}
/**
* This function will un-mask a interrupt.
* @param vector the interrupt number
*/
...
...
@@ -167,7 +168,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
return
old_handler
;
}
void
rt_interrupt_dispatch
(
void
)
void
rt_interrupt_dispatch
(
rt_uint32_t
fiq_irq
)
{
void
*
param
;
int
vector
;
...
...
bsp/at91sam9g45/drivers/board.c
浏览文件 @
26863a27
...
...
@@ -36,8 +36,8 @@
extern
int
Image
$$
ER_ZI
$$
ZI
$$
Limit
;
#define HEAP_BEGIN (&Image$$ER_ZI$$ZI$$Limit)
#elif (defined (__GNUC__))
extern
unsigned
char
__bss_end
__
;
#define HEAP_BEGIN (&__bss_end
__
)
extern
unsigned
char
__bss_end
;
#define HEAP_BEGIN (&__bss_end)
#elif (defined (__ICCARM__))
#pragma section=".noinit"
#define HEAP_BEGIN (__section_end(".noinit"))
...
...
bsp/at91sam9g45/link_scripts/at91sam9g45_ram.ld
浏览文件 @
26863a27
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(s
tart
)
ENTRY(s
ystem_vectors
)
SECTIONS
{
. = 0x70000000;
...
...
@@ -8,7 +8,7 @@ SECTIONS
. = ALIGN(4);
.text :
{
*(.
init
)
*(.
vectors
)
*(.text)
*(.gnu.linkonce.t*)
...
...
@@ -76,9 +76,9 @@ SECTIONS
.nobss : { *(.nobss) }
. = ALIGN(4);
__bss_start
__
= .;
__bss_start = .;
.bss : { *(.bss)}
__bss_end
__
= .;
__bss_end = .;
/* stabs debugging sections. */
.stab 0 : { *(.stab) }
...
...
bsp/at91sam9g45/platform/interrupt.c
浏览文件 @
26863a27
...
...
@@ -332,7 +332,7 @@ void rt_hw_interrupt_umask(int irq)
* @return old handler
*/
rt_isr_handler_t
rt_hw_interrupt_install
(
int
vector
,
rt_isr_handler_t
handler
,
void
*
param
,
char
*
name
)
void
*
param
,
c
onst
c
har
*
name
)
{
rt_isr_handler_t
old_handler
=
RT_NULL
;
...
...
@@ -419,6 +419,29 @@ void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id)
AT91C_BASE_AIC
->
AIC_EOICR
=
0x0
;
}
void
rt_interrupt_dispatch
(
rt_uint32_t
fiq_irq
)
{
rt_isr_handler_t
isr_func
;
rt_uint32_t
irq
;
void
*
param
;
/* get irq number */
irq
=
rt_hw_interrupt_get_active
(
fiq_irq
);
/* get interrupt service routine */
isr_func
=
irq_desc
[
irq
].
handler
;
param
=
irq_desc
[
irq
].
param
;
/* turn to interrupt service routine */
isr_func
(
irq
,
param
);
rt_hw_interrupt_ack
(
fiq_irq
,
irq
);
#ifdef RT_USING_INTERRUPT_INFO
irq_desc
[
irq
].
counter
++
;
#endif
}
#ifdef RT_USING_FINSH
#ifdef RT_USING_INTERRUPT_INFO
void
list_irq
(
void
)
...
...
bsp/at91sam9g45/rtconfig.py
浏览文件 @
26863a27
...
...
@@ -10,7 +10,7 @@ if os.getenv('RTT_CC'):
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'D:\arm-2013.11\
bin'
EXEC_PATH
=
'/usr/
bin'
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_v5'
...
...
libcpu/arm/arm926/trap.c
浏览文件 @
26863a27
...
...
@@ -197,14 +197,14 @@ void rt_hw_trap_resv(struct rt_hw_register *regs)
rt_hw_cpu_shutdown
();
}
extern
void
rt_interrupt_dispatch
(
void
);
extern
void
rt_interrupt_dispatch
(
rt_uint32_t
fiq_irq
);
void
rt_hw_trap_irq
(
void
)
{
rt_interrupt_dispatch
();
rt_interrupt_dispatch
(
INT_IRQ
);
}
void
rt_hw_trap_fiq
(
void
)
{
rt_interrupt_dispatch
();
rt_interrupt_dispatch
(
INT_FIQ
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录