Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
9bb5b204
Commit
9bb5b204
authored
Feb 24, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-bare-i386: use lib/libc-functions.o
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
130909aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
58 deletions
+1
-58
Makefile
arch-bare-i386/Makefile
+1
-0
bare-io.c
arch-bare-i386/bare-io.c
+0
-58
No files found.
arch-bare-i386/Makefile
View file @
9bb5b204
...
...
@@ -14,6 +14,7 @@ OBJ-libarch := $A/bare-startup.o \
$A
/bare-timer.o
\
$A
/bare-io.o
\
$A
/syscalls.o
\
lib/libc-functions.o
\
lib/div64.o
$(LIBARCH)
:
$(OBJ-libarch)
...
...
arch-bare-i386/bare-io.c
View file @
9bb5b204
...
...
@@ -12,25 +12,6 @@ void pp_puts(const char *s)
sys_write
(
0
,
s
,
pp_strnlen
(
s
,
300
));
}
int
pp_strnlen
(
const
char
*
s
,
int
maxlen
)
{
int
len
=
0
;
while
(
*
(
s
++
))
len
++
;
return
len
;
}
void
*
pp_memcpy
(
void
*
dest
,
const
void
*
src
,
int
count
)
{
/* from u-boot-1.1.2 */
char
*
tmp
=
(
char
*
)
dest
,
*
s
=
(
char
*
)
src
;
while
(
count
--
)
*
tmp
++
=
*
s
++
;
return
dest
;
}
void
bare_get_tstamp
(
TimeInternal
*
t
)
{
struct
bare_timeval
tv
;
...
...
@@ -65,45 +46,6 @@ int32_t bare_set_tstamp(TimeInternal *t)
return
tv
.
tv_sec
-
tv_orig
.
tv_sec
;
}
int
pp_memcmp
(
const
void
*
cs
,
const
void
*
ct
,
int
count
)
{
/* from u-boot-1.1.2 */
const
unsigned
char
*
su1
,
*
su2
;
int
res
=
0
;
for
(
su1
=
cs
,
su2
=
ct
;
0
<
count
;
++
su1
,
++
su2
,
count
--
)
if
((
res
=
*
su1
-
*
su2
)
!=
0
)
break
;
return
res
;
}
void
*
pp_memset
(
void
*
s
,
int
c
,
int
count
)
{
/* from u-boot-1.1.2 */
char
*
xs
=
(
char
*
)
s
;
while
(
count
--
)
*
xs
++
=
c
;
return
s
;
}
/* What follows has no prefix because it's only used by arch code */
char
*
strcpy
(
char
*
dest
,
const
char
*
src
)
{
/* from u-boot-1.1.2 */
char
*
tmp
=
dest
;
while
((
*
dest
++
=
*
src
++
)
!=
'\0'
)
/* nothing */
;
return
tmp
;
}
void
*
memset
(
void
*
s
,
int
c
,
int
count
)
__attribute__
((
alias
(
"pp_memset"
)));
void
*
memcpy
(
void
*
dest
,
const
void
*
src
,
int
count
)
__attribute__
((
alias
(
"pp_memcpy"
)));
int
bare_adj_freq
(
Integer32
adj
)
{
struct
bare_timex
t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment