Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
b2b43463
Commit
b2b43463
authored
19 years ago
by
Markus Klotzbcher
Committed by
Markus Klotzbcher
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Changed gcc-4.0 global data pointer fix to conform with the fix for this on
other platforms (see
c75eba3b
)
parent
b3c36e6b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asm-arm/global_data.h
+1
-1
1 addition, 1 deletion
include/asm-arm/global_data.h
lib_arm/board.c
+2
-5
2 additions, 5 deletions
lib_arm/board.c
with
3 additions
and
6 deletions
include/asm-arm/global_data.h
+
1
−
1
View file @
b2b43463
...
...
@@ -61,7 +61,7 @@ typedef struct global_data {
#define GD_FLG_DEVINIT 0x00002
/* Devices have been initialized */
#define GD_FLG_SILENT 0x00004
/* Silent mode */
#def
ine
GCC_4_SCREW_GDP
1
#
un
def GCC_4_SCREW_GDP
#ifdef GCC_4_SCREW_GDP
# define DECLARE_GLOBAL_DATA_PTR register gd_t* volatile gd asm ("r8");
#else
...
...
This diff is collapsed.
Click to expand it.
lib_arm/board.c
+
2
−
5
View file @
b2b43463
...
...
@@ -54,6 +54,8 @@
#include
"../drivers/lan91c96.h"
#endif
DECLARE_GLOBAL_DATA_PTR
;
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
void
nand_init
(
void
);
#endif
...
...
@@ -121,8 +123,6 @@ void *sbrk (ptrdiff_t increment)
static
int
init_baudrate
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
uchar
tmp
[
64
];
/* long enough for environment variables */
int
i
=
getenv_r
(
"baudrate"
,
tmp
,
sizeof
(
tmp
));
gd
->
bd
->
bi_baudrate
=
gd
->
baudrate
=
(
i
>
0
)
...
...
@@ -157,7 +157,6 @@ static int display_banner (void)
*/
static
int
display_dram_config
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
int
i
;
#ifdef DEBUG
...
...
@@ -236,8 +235,6 @@ init_fnc_t *init_sequence[] = {
void
start_armboot
(
void
)
{
DECLARE_GLOBAL_DATA_PTR
;
ulong
size
;
init_fnc_t
**
init_fnc_ptr
;
char
*
s
;
...
...
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