Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jack Humbert
reform-boundary-uboot
Commits
1ad98ad6
Commit
1ad98ad6
authored
14 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-microblaze
parents
3e5ab1af
1020286e
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
arch/microblaze/cpu/interrupts.c
+4
-1
4 additions, 1 deletion
arch/microblaze/cpu/interrupts.c
arch/microblaze/lib/board.c
+5
-3
5 additions, 3 deletions
arch/microblaze/lib/board.c
include/configs/microblaze-generic.h
+4
-4
4 additions, 4 deletions
include/configs/microblaze-generic.h
with
13 additions
and
8 deletions
arch/microblaze/cpu/interrupts.c
+
4
−
1
View file @
1ad98ad6
...
...
@@ -41,8 +41,11 @@ void enable_interrupts (void)
int
disable_interrupts
(
void
)
{
unsigned
int
msr
;
MFS
(
msr
,
rmsr
);
MSRCLR
(
0x2
);
return
0
;
return
(
msr
&
0x2
)
!=
0
;
}
#ifdef CONFIG_SYS_INTC_0
...
...
This diff is collapsed.
Click to expand it.
arch/microblaze/lib/board.c
+
5
−
3
View file @
1ad98ad6
...
...
@@ -90,16 +90,18 @@ void board_init (void)
{
bd_t
*
bd
;
init_fnc_t
**
init_fnc_ptr
;
gd
=
(
gd_t
*
)
CONFIG_SYS_GBL_DATA_OFFSET
;
gd
=
(
gd_t
*
)
(
CONFIG_SYS_SDRAM_BASE
+
CONFIG_SYS_GBL_DATA_OFFSET
);
bd
=
(
bd_t
*
)
(
CONFIG_SYS_SDRAM_BASE
+
CONFIG_SYS_GBL_DATA_OFFSET
\
-
GENERATED_BD_INFO_SIZE
);
char
*
s
;
#if defined(CONFIG_CMD_FLASH)
ulong
flash_size
=
0
;
#endif
asm
(
"nop"
);
/* FIXME gd is not initialize - wait */
memset
((
void
*
)
gd
,
0
,
GENERATED_GBL_DATA_SIZE
);
gd
->
bd
=
(
bd_t
*
)
(
gd
+
1
);
/* At end of global data */
memset
((
void
*
)
bd
,
0
,
GENERATED_BD_INFO_SIZE
);
gd
->
bd
=
bd
;
gd
->
baudrate
=
CONFIG_BAUDRATE
;
bd
=
gd
->
bd
;
bd
->
bi_baudrate
=
CONFIG_BAUDRATE
;
bd
->
bi_memstart
=
CONFIG_SYS_SDRAM_BASE
;
bd
->
bi_memsize
=
CONFIG_SYS_SDRAM_SIZE
;
...
...
This diff is collapsed.
Click to expand it.
include/configs/microblaze-generic.h
+
4
−
4
View file @
1ad98ad6
...
...
@@ -137,14 +137,14 @@
/* global pointer */
/* start of global data */
#define CONFIG_SYS_GBL_DATA_OFFSET \
(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE \
- GENERATED_GBL_DATA_SIZE)
(CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE)
/* monitor code */
#define SIZE 0x40000
#define CONFIG_SYS_MONITOR_LEN
(
SIZE
- GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_MONITOR_LEN SIZE
#define CONFIG_SYS_MONITOR_BASE \
(CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN)
(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
- CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE)
#define CONFIG_SYS_MONITOR_END \
(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
#define CONFIG_SYS_MALLOC_LEN SIZE
...
...
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