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
02e75664
Commit
02e75664
authored
Feb 24, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-spec: remove libc function, provided by wrpc-sw
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0962fa17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
75 deletions
+0
-75
spec-io.c
arch-spec/spec-io.c
+0
-75
No files found.
arch-spec/spec-io.c
View file @
02e75664
...
...
@@ -13,25 +13,6 @@ void pp_puts(const char *s)
uart_write_string
(
s
);
}
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
pp_get_tstamp
(
TimeInternal
*
t
)
//uint32_t *sptr)
{
uint64_t
sec
;
...
...
@@ -41,58 +22,6 @@ void pp_get_tstamp(TimeInternal *t) //uint32_t *sptr)
t
->
nanoseconds
=
(
int32_t
)
nsec
;
}
/* 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
*
pp_memset
(
void
*
s
,
int
c
,
int
count
)
{
return
memset
(
s
,
c
,
count
);
}
void
*
memset
(
void
*
s
,
int
c
,
int
count
)
{
/* from u-boot-1.1.2 */
char
*
xs
=
(
char
*
)
s
;
while
(
count
--
)
*
xs
++
=
c
;
return
s
;
}
void
*
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
;
}
int
pp_memcmp
(
const
void
*
s1
,
const
void
*
s2
,
int
count
)
{
unsigned
char
*
u1
=
(
unsigned
char
*
)
s1
;
unsigned
char
*
u2
=
(
unsigned
char
*
)
s2
;
while
(
count
--
!=
0
)
{
if
(
*
u1
!=
*
u2
)
return
(
*
u1
<
*
u2
)
?
-
1
:
+
1
;
u1
++
;
u2
++
;
}
return
0
;
}
int32_t
spec_set_tstamp
(
TimeInternal
*
t
)
{
shw_pps_gen_set_time
(
t
->
seconds
,
t
->
nanoseconds
);
...
...
@@ -109,9 +38,5 @@ int spec_adj_freq(Integer32 adj)
int
pp_adj_freq
(
Integer32
adj
)
__attribute__
((
alias
(
"spec_adj_freq"
)));
int32_t
pp_set_tstamp
(
TimeInternal
*
t
)
__attribute__
((
alias
(
"spec_set_tstamp"
)));
char
*
pp_strcpy
(
char
*
dest
,
const
char
*
src
)
__attribute__
((
alias
(
"strcpy"
)));
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