Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
545359dd
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
545359dd
编写于
8月 10, 2007
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
差异文件
Merge with /home/wd/git/u-boot/work
上级
2ee8078f
3a6d56c2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
15 deletion
+12
-15
drivers/nand/nand_util.c
drivers/nand/nand_util.c
+10
-11
include/div64.h
include/div64.h
+0
-0
lib_avr32/Makefile
lib_avr32/Makefile
+1
-1
lib_generic/Makefile
lib_generic/Makefile
+1
-1
lib_generic/div64.c
lib_generic/div64.c
+0
-2
未找到文件。
drivers/nand/nand_util.c
浏览文件 @
545359dd
...
...
@@ -37,6 +37,7 @@
#include <command.h>
#include <watchdog.h>
#include <malloc.h>
#include <div64.h>
#include <nand.h>
#include <jffs2/jffs2.h>
...
...
@@ -208,10 +209,10 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
}
if
(
!
opts
->
quiet
)
{
int
percent
=
(
int
)
((
unsigned
long
long
)
unsigned
long
long
n
=
(
unsigned
long
long
)
(
erase
.
addr
+
meminfo
->
erasesize
-
opts
->
offset
)
*
100
/
erase_length
);
*
100
;
int
percent
=
(
int
)
do_div
(
n
,
erase_length
);
/* output progress message only at whole percent
* steps to reduce the number of messages printed
...
...
@@ -475,10 +476,9 @@ int nand_write_opts(nand_info_t *meminfo, const nand_write_options_t *opts)
imglen
-=
readlen
;
if
(
!
opts
->
quiet
)
{
int
percent
=
(
int
)
((
unsigned
long
long
)
(
opts
->
length
-
imglen
)
*
100
/
opts
->
length
);
unsigned
long
long
n
=
(
unsigned
long
long
)
(
opts
->
length
-
imglen
)
*
100
;
int
percent
=
(
int
)
do_div
(
n
,
opts
->
length
);
/* output progress message only at whole percent
* steps to reduce the number of messages printed
* on (slow) serial consoles
...
...
@@ -651,10 +651,9 @@ int nand_read_opts(nand_info_t *meminfo, const nand_read_options_t *opts)
}
if
(
!
opts
->
quiet
)
{
int
percent
=
(
int
)
((
unsigned
long
long
)
(
opts
->
length
-
imglen
)
*
100
/
opts
->
length
);
unsigned
long
long
n
=
(
unsigned
long
long
)
(
opts
->
length
-
imglen
)
*
100
;
int
percent
=
(
int
)
do_div
(
n
,
opts
->
length
);
/* output progress message only at whole percent
* steps to reduce the number of messages printed
* on (slow) serial consoles
...
...
include/
asm-avr32/
div64.h
→
include/div64.h
浏览文件 @
545359dd
文件已移动
lib_avr32/Makefile
浏览文件 @
545359dd
...
...
@@ -29,7 +29,7 @@ LIB = $(obj)lib$(ARCH).a
SOBJS
=
memset.o
COBJS
=
board.o interrupts.o avr32_linux.o
div64.o
COBJS
=
board.o interrupts.o avr32_linux.o
SRCS
:=
$(SOBJS:.o=.S)
$(COBJS:.o=.c)
OBJS
:=
$(
addprefix
$(obj)
,
$(SOBJS)
$(COBJS)
)
...
...
lib_generic/Makefile
浏览文件 @
545359dd
...
...
@@ -27,7 +27,7 @@ LIB = $(obj)libgeneric.a
COBJS
=
bzlib.o bzlib_crctable.o bzlib_decompress.o
\
bzlib_randtable.o bzlib_huffman.o
\
crc32.o ctype.o display_options.o ldiv.o sha1.o
\
crc32.o ctype.o display_options.o
div64.o
ldiv.o sha1.o
\
string.o vsprintf.o zlib.o
SRCS
:=
$(COBJS:.o=.c)
...
...
lib_
avr32
/div64.c
→
lib_
generic
/div64.c
浏览文件 @
545359dd
...
...
@@ -18,8 +18,6 @@
#include <linux/types.h>
#include <asm/div64.h>
uint32_t
__div64_32
(
uint64_t
*
n
,
uint32_t
base
)
{
uint64_t
rem
=
*
n
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录