Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
宁楠萍
rt-thread
提交
5b3ec949
R
rt-thread
项目概览
宁楠萍
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5b3ec949
编写于
8月 26, 2020
作者:
B
Bernard Xiong
提交者:
GitHub
8月 26, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3842 from Michael0066/dev
MIPS:remove redundant #ifdef ARCH_MIPS64
上级
241a29a1
52a4bace
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
32 addition
and
8 deletion
+32
-8
bsp/ls2kdev/SConstruct
bsp/ls2kdev/SConstruct
+1
-0
bsp/ls2kdev/drivers/board.c
bsp/ls2kdev/drivers/board.c
+1
-0
bsp/ls2kdev/drivers/drv_gpio.c
bsp/ls2kdev/drivers/drv_gpio.c
+1
-1
bsp/ls2kdev/drivers/drv_rtc.c
bsp/ls2kdev/drivers/drv_rtc.c
+4
-0
bsp/ls2kdev/ls2k_ram.lds
bsp/ls2kdev/ls2k_ram.lds
+17
-0
bsp/ls2kdev/rtconfig.py
bsp/ls2kdev/rtconfig.py
+1
-0
libcpu/mips/common/asm.h
libcpu/mips/common/asm.h
+0
-4
libcpu/mips/common/stackframe.h
libcpu/mips/common/stackframe.h
+7
-3
未找到文件。
bsp/ls2kdev/SConstruct
浏览文件 @
5b3ec949
...
...
@@ -15,6 +15,7 @@ DefaultEnvironment(tools=[])
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
...
...
bsp/ls2kdev/drivers/board.c
浏览文件 @
5b3ec949
...
...
@@ -12,6 +12,7 @@
#include <rthw.h>
#include "mips_regs.h"
#include "mips_fpu.h"
#include "exception.h"
#include "drv_uart.h"
#include "board.h"
...
...
bsp/ls2kdev/drivers/drv_gpio.c
浏览文件 @
5b3ec949
...
...
@@ -73,7 +73,7 @@ static int loongson_pin_read(struct rt_device *device, rt_base_t pin)
gpio
=
(
void
*
)
device
->
user_data
;
rt_uint64_t
m
;
m
=
gpio
->
GPIO
1
_I
;
m
=
gpio
->
GPIO
0
_I
;
m
&=
(
rt_uint64_t
)
1
<<
pin
;
rc
=
!!
m
;
...
...
bsp/ls2kdev/drivers/drv_rtc.c
浏览文件 @
5b3ec949
...
...
@@ -17,6 +17,8 @@
#include <rtthread.h>
#include "ls2k1000.h"
#ifdef RT_USING_RTC
struct
loongson_rtc
{
rt_uint32_t
sys_toytrim
;
rt_uint32_t
sys_toywrite0
;
...
...
@@ -176,3 +178,5 @@ int rt_hw_rtc_init(void)
}
INIT_DEVICE_EXPORT
(
rt_hw_rtc_init
);
#endif
/*RT_USING_RTC*/
bsp/ls2kdev/ls2k_ram.lds
浏览文件 @
5b3ec949
...
...
@@ -78,6 +78,23 @@ SECTIONS
*(.sdata.*)
}
. = ALIGN(4);
.ctors :
{
PROVIDE(__ctors_start__ = .);
KEEP(*(SORT(.ctors.*)))
KEEP(*(.ctors))
PROVIDE(__ctors_end__ = .);
}
.dtors :
{
PROVIDE(__dtors_start__ = .);
KEEP(*(SORT(.dtors.*)))
KEEP(*(.dtors))
PROVIDE(__dtors_end__ = .);
}
.stack :
{
. = ALIGN(8);
...
...
bsp/ls2kdev/rtconfig.py
浏览文件 @
5b3ec949
...
...
@@ -31,6 +31,7 @@ BUILD = 'debug'
PREFIX
=
'mips-sde-elf-'
CC
=
PREFIX
+
'gcc'
CXX
=
PREFIX
+
'g++'
AS
=
PREFIX
+
'gcc'
AR
=
PREFIX
+
'ar'
LINK
=
PREFIX
+
'gcc'
...
...
libcpu/mips/common/asm.h
浏览文件 @
5b3ec949
...
...
@@ -261,11 +261,7 @@ symbol = value
#define LONG_SRAV srav
#define LONG .word
#ifdef ARCH_MIPS64
#define LONGSIZE 8
#else
#define LONGSIZE 4
#endif
#define LONGMASK 3
#define LONGLOG 2
...
...
libcpu/mips/common/stackframe.h
浏览文件 @
5b3ec949
...
...
@@ -22,7 +22,9 @@
#ifdef RT_USING_FPU
/* Ensure CU1 (FPU) is enabled */
MFC0
v1
,
CP0_STATUS
ori
v1
,
ST0_CU1
lui
t1
,
%
hi
(
ST0_CU1
)
addiu
t1
,
t1
,
%
lo
(
ST0_CU1
)
or
v1
,
v1
,
t1
MTC0
v1
,
CP0_STATUS
SSNOP
cfc1
v1
,
fcr31
...
...
@@ -125,11 +127,13 @@
#ifdef RT_USING_FPU
/* Ensure CU1 (FPU) is enabled */
MFC0
v1
,
CP0_STATUS
ori
v1
,
ST0_CU1
lui
t1
,
%
hi
(
ST0_CU1
)
addiu
t1
,
t1
,
%
lo
(
ST0_CU1
)
or
v1
,
v1
,
t1
MTC0
v1
,
CP0_STATUS
SSNOP
LONG_L
v1
,
PT_FPU_FCSR31
(
sp
)
ctc1
v1
,
fc
s
r31
ctc1
v1
,
fcr31
l
.
d
$
f0
,
PT_FPU_R0
(
sp
)
l
.
d
$
f2
,
PT_FPU_R2
(
sp
)
l
.
d
$
f4
,
PT_FPU_R4
(
sp
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录