Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
ce612157
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,发现更多精彩内容 >>
提交
ce612157
编写于
3月 15, 2013
作者:
P
prife
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:RT-Thread/rt-thread
上级
9a80044a
be59c928
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
21 addition
and
7 deletion
+21
-7
bsp/simulator/drivers/dfs_win32.c
bsp/simulator/drivers/dfs_win32.c
+16
-2
libcpu/mips/jz47xx/start_gcc.S
libcpu/mips/jz47xx/start_gcc.S
+5
-5
未找到文件。
bsp/simulator/drivers/dfs_win32.c
浏览文件 @
ce612157
/*
/*
* File : rtthread.h
* File : rtthread.h
* This file is part of RT-Thread RTOS
* This file is part of RT-Thread RTOS
...
@@ -11,6 +10,7 @@
...
@@ -11,6 +10,7 @@
* Change Logs:
* Change Logs:
* Date Author Notes
* Date Author Notes
* 2012-11-27 prife the first version
* 2012-11-27 prife the first version
* 2013-03-03 aozima add dfs_win32_stat st_mtime support.
*/
*/
#include <rtthread.h>
#include <rtthread.h>
...
@@ -473,7 +473,21 @@ static int dfs_win32_stat(struct dfs_filesystem *fs, const char *path, struct st
...
@@ -473,7 +473,21 @@ static int dfs_win32_stat(struct dfs_filesystem *fs, const char *path, struct st
st
->
st_dev
=
0
;
st
->
st_dev
=
0
;
st
->
st_size
=
fileInfo
.
nFileSizeLow
;
st
->
st_size
=
fileInfo
.
nFileSizeLow
;
st
->
st_mtime
=
0
;
/* get st_mtime. */
{
LARGE_INTEGER
time_tmp
;
time_tmp
.
LowPart
=
fileInfo
.
ftLastWriteTime
.
dwLowDateTime
;
time_tmp
.
HighPart
=
fileInfo
.
ftLastWriteTime
.
dwHighDateTime
;
/* removes the diff between 1970 and 1601. */
time_tmp
.
QuadPart
-=
11644473600000
*
10000
;
/* converts back from 100-nanoseconds to seconds. */
time_tmp
.
QuadPart
/=
10UL
*
1000
*
1000
;
st
->
st_mtime
=
time_tmp
.
QuadPart
;
}
st
->
st_blksize
=
0
;
st
->
st_blksize
=
0
;
FindClose
(
hFind
);
FindClose
(
hFind
);
...
...
libcpu/mips/jz47xx/start_gcc.S
浏览文件 @
ce612157
...
@@ -19,24 +19,24 @@ _start:
...
@@ -19,24 +19,24 @@ _start:
.
set
noreorder
.
set
noreorder
la
ra
,
_start
la
ra
,
_start
li
t1
,
0x00800000
mtc0
t1
,
CP0_CAUSE
/
*
init
cp0
registers
.
*/
/
*
init
cp0
registers
.
*/
li
t0
,
0x0000FC00
/*
BEV
=
0
and
mask
all
interrupt
*/
li
t0
,
0x0000FC00
/*
BEV
=
0
and
mask
all
interrupt
*/
mtc0
t0
,
CP0_STATUS
mtc0
t0
,
CP0_STATUS
li
t1
,
0x00800000
mtc0
t1
,
CP0_CAUSE
/
*
setup
stack
pointer
*/
/
*
setup
stack
pointer
*/
li
sp
,
SYSTEM_STACK
li
sp
,
SYSTEM_STACK
la
gp
,
_gp
la
gp
,
_gp
/
*
init
caches
,
assumes
a
4
way
*
128
set
*
32
byte
I
/
D
cache
*/
/
*
init
caches
,
assumes
a
4
way
*
128
set
*
32
byte
I
/
D
cache
*/
mtc0
zero
,
CP0_TAGLO
/*
TAGLO
reg
*/
mtc0
zero
,
CP0_TAGHI
/*
TAGHI
reg
*/
li
t0
,
3
/*
enable
cache
for
kseg0
accesses
*/
li
t0
,
3
/*
enable
cache
for
kseg0
accesses
*/
mtc0
t0
,
CP0_CONFIG
/*
CONFIG
reg
*/
mtc0
t0
,
CP0_CONFIG
/*
CONFIG
reg
*/
la
t0
,
0x80000000
/*
an
idx
op
should
use
an
unmappable
address
*/
la
t0
,
0x80000000
/*
an
idx
op
should
use
an
unmappable
address
*/
ori
t1
,
t0
,
0x4000
/*
16
kB
cache
*/
ori
t1
,
t0
,
0x4000
/*
16
kB
cache
*/
mtc0
zero
,
CP0_TAGLO
/*
TAGLO
reg
*/
mtc0
zero
,
CP0_TAGHI
/*
TAGHI
reg
*/
_cache_loop
:
_cache_loop
:
cache
0x8
,
0
(
t0
)
/*
index
store
icache
tag
*/
cache
0x8
,
0
(
t0
)
/*
index
store
icache
tag
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录