Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
d7c2a02d
Commit
d7c2a02d
authored
18 years ago
by
Detlev Zundel
Browse files
Options
Downloads
Patches
Plain Diff
Added simple_strtoul(), getenv() and setenv() to the exported functions.
Also bumped up ABI version to reflect this change.
parent
43835aac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common/exports.c
+5
-2
5 additions, 2 deletions
common/exports.c
include/_exports.h
+3
-0
3 additions, 0 deletions
include/_exports.h
include/exports.h
+4
-1
4 additions, 1 deletion
include/exports.h
with
12 additions
and
3 deletions
common/exports.c
+
5
−
2
View file @
d7c2a02d
...
@@ -23,8 +23,11 @@ void jumptable_init (void)
...
@@ -23,8 +23,11 @@ void jumptable_init (void)
gd
->
jt
[
XF_get_version
]
=
(
void
*
)
get_version
;
gd
->
jt
[
XF_get_version
]
=
(
void
*
)
get_version
;
gd
->
jt
[
XF_malloc
]
=
(
void
*
)
malloc
;
gd
->
jt
[
XF_malloc
]
=
(
void
*
)
malloc
;
gd
->
jt
[
XF_free
]
=
(
void
*
)
free
;
gd
->
jt
[
XF_free
]
=
(
void
*
)
free
;
gd
->
jt
[
XF_get_timer
]
=
(
void
*
)
get_timer
;
gd
->
jt
[
XF_getenv
]
=
(
void
*
)
getenv
;
gd
->
jt
[
XF_udelay
]
=
(
void
*
)
udelay
;
gd
->
jt
[
XF_setenv
]
=
(
void
*
)
setenv
;
gd
->
jt
[
XF_get_timer
]
=
(
void
*
)
get_timer
;
gd
->
jt
[
XF_simple_strtoul
]
=
(
void
*
)
simple_strtoul
;
gd
->
jt
[
XF_udelay
]
=
(
void
*
)
udelay
;
#if defined(CONFIG_I386) || defined(CONFIG_PPC)
#if defined(CONFIG_I386) || defined(CONFIG_PPC)
gd
->
jt
[
XF_install_hdlr
]
=
(
void
*
)
irq_install_handler
;
gd
->
jt
[
XF_install_hdlr
]
=
(
void
*
)
irq_install_handler
;
gd
->
jt
[
XF_free_hdlr
]
=
(
void
*
)
irq_free_handler
;
gd
->
jt
[
XF_free_hdlr
]
=
(
void
*
)
irq_free_handler
;
...
...
This diff is collapsed.
Click to expand it.
include/_exports.h
+
3
−
0
View file @
d7c2a02d
...
@@ -12,6 +12,9 @@ EXPORT_FUNC(udelay)
...
@@ -12,6 +12,9 @@ EXPORT_FUNC(udelay)
EXPORT_FUNC
(
get_timer
)
EXPORT_FUNC
(
get_timer
)
EXPORT_FUNC
(
vprintf
)
EXPORT_FUNC
(
vprintf
)
EXPORT_FUNC
(
do_reset
)
EXPORT_FUNC
(
do_reset
)
EXPORT_FUNC
(
getenv
)
EXPORT_FUNC
(
setenv
)
EXPORT_FUNC
(
simple_strtoul
)
#if (CONFIG_COMMANDS & CFG_CMD_I2C)
#if (CONFIG_COMMANDS & CFG_CMD_I2C)
EXPORT_FUNC
(
i2c_write
)
EXPORT_FUNC
(
i2c_write
)
EXPORT_FUNC
(
i2c_read
)
EXPORT_FUNC
(
i2c_read
)
...
...
This diff is collapsed.
Click to expand it.
include/exports.h
+
4
−
1
View file @
d7c2a02d
...
@@ -20,6 +20,9 @@ void udelay(unsigned long);
...
@@ -20,6 +20,9 @@ void udelay(unsigned long);
unsigned
long
get_timer
(
unsigned
long
);
unsigned
long
get_timer
(
unsigned
long
);
void
vprintf
(
const
char
*
,
va_list
);
void
vprintf
(
const
char
*
,
va_list
);
void
do_reset
(
void
);
void
do_reset
(
void
);
unsigned
long
simple_strtoul
(
const
char
*
cp
,
char
**
endp
,
unsigned
int
base
);
char
*
getenv
(
char
*
name
);
void
setenv
(
char
*
varname
,
char
*
varvalue
);
#if (CONFIG_COMMANDS & CFG_CMD_I2C)
#if (CONFIG_COMMANDS & CFG_CMD_I2C)
int
i2c_write
(
uchar
,
uint
,
int
,
uchar
*
,
int
);
int
i2c_write
(
uchar
,
uint
,
int
,
uchar
*
,
int
);
int
i2c_read
(
uchar
,
uint
,
int
,
uchar
*
,
int
);
int
i2c_read
(
uchar
,
uint
,
int
,
uchar
*
,
int
);
...
@@ -37,7 +40,7 @@ enum {
...
@@ -37,7 +40,7 @@ enum {
XF_MAX
XF_MAX
};
};
#define XF_VERSION
2
#define XF_VERSION
3
#if defined(CONFIG_I386)
#if defined(CONFIG_I386)
extern
gd_t
*
global_data
;
extern
gd_t
*
global_data
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment