Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3ac3af29
Commit
3ac3af29
authored
Jun 29, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Moved parse_tag_omap to common.c
In 2.6.13-rc1 arch.c disappears.
parent
b336048f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
25 deletions
+22
-25
arch/arm/kernel/arch.c
arch/arm/kernel/arch.c
+0
-23
arch/arm/mach-omap/common.c
arch/arm/mach-omap/common.c
+22
-2
No files found.
arch/arm/kernel/arch.c
View file @
3ac3af29
...
...
@@ -45,26 +45,3 @@ static int __init parse_tag_acorn(const struct tag *tag)
__tagtable
(
ATAG_ACORN
,
parse_tag_acorn
);
#endif
#ifdef CONFIG_OMAP_BOOT_TAG
unsigned
char
omap_bootloader_tag
[
512
];
int
omap_bootloader_tag_len
=
0
;
static
int
__init
parse_tag_omap
(
const
struct
tag
*
tag
)
{
u32
size
=
tag
->
hdr
.
size
-
(
sizeof
(
tag
->
hdr
)
>>
2
);
size
<<=
2
;
if
(
size
>
sizeof
(
omap_bootloader_tag
))
return
-
1
;
memcpy
(
omap_bootloader_tag
,
tag
->
u
.
omap
.
data
,
size
);
omap_bootloader_tag_len
=
size
;
return
0
;
}
__tagtable
(
ATAG_BOARD
,
parse_tag_omap
);
#endif
arch/arm/mach-omap/common.c
View file @
3ac3af29
...
...
@@ -35,12 +35,32 @@
#define NO_LENGTH_CHECK 0xffffffff
extern
int
omap_bootloader_tag_len
;
extern
u8
omap_bootloader_tag
[]
;
unsigned
char
omap_bootloader_tag
[
512
]
;
int
omap_bootloader_tag_len
=
0
;
struct
omap_board_config_kernel
*
omap_board_config
;
int
omap_board_config_size
=
0
;
#ifdef CONFIG_OMAP_BOOT_TAG
static
int
__init
parse_tag_omap
(
const
struct
tag
*
tag
)
{
u32
size
=
tag
->
hdr
.
size
-
(
sizeof
(
tag
->
hdr
)
>>
2
);
size
<<=
2
;
if
(
size
>
sizeof
(
omap_bootloader_tag
))
return
-
1
;
memcpy
(
omap_bootloader_tag
,
tag
->
u
.
omap
.
data
,
size
);
omap_bootloader_tag_len
=
size
;
return
0
;
}
__tagtable
(
ATAG_BOARD
,
parse_tag_omap
);
#endif
static
const
void
*
get_config
(
u16
tag
,
size_t
len
,
int
skip
,
size_t
*
len_out
)
{
struct
omap_board_config_kernel
*
kinfo
=
NULL
;
...
...
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