Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
b34ce282
Commit
b34ce282
authored
11 years ago
by
Sandrine Bailleux
Browse files
Options
Download
Email Patches
Plain Diff
juno: Improve compliance to Linux coding style
parent
a40fc37c
v0.3-Juno
v0.3-Juno-0.3
v0.3-Juno-0.2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/juno/aarch64/plat_common.c
+2
-1
plat/juno/aarch64/plat_common.c
plat/juno/plat_io_storage.c
+9
-9
plat/juno/plat_io_storage.c
with
11 additions
and
10 deletions
+11
-10
plat/juno/aarch64/plat_common.c
View file @
b34ce282
...
...
@@ -142,6 +142,7 @@ unsigned long platform_get_cfgvar(unsigned int var_id)
return
platform_config
[
var_id
];
}
unsigned
long
plat_get_ns_image_entrypoint
(
void
)
{
unsigned
long
plat_get_ns_image_entrypoint
(
void
)
{
return
NS_IMAGE_OFFSET
;
}
This diff is collapsed.
Click to expand it.
plat/juno/plat_io_storage.c
View file @
b34ce282
...
...
@@ -73,14 +73,14 @@ static io_file_spec bl33_file_spec = {
.
mode
=
FOPEN_MODE_R
};
static
int
open_fip
(
void
*
spec
);
static
int
open_memmap
(
void
*
spec
);
static
int
open_fip
(
void
*
spec
);
static
int
open_memmap
(
void
*
spec
);
typedef
struct
{
char
*
image_name
;
io_dev_handle
*
dev_handle
;
void
*
image_spec
;
int
(
*
check
)(
void
*
spec
);
char
*
image_name
;
io_dev_handle
*
dev_handle
;
void
*
image_spec
;
int
(
*
check
)(
void
*
spec
);
}
plat_io_policy
;
static
plat_io_policy
policies
[]
=
{
...
...
@@ -88,7 +88,7 @@ static plat_io_policy policies[] = {
{
BL2_IMAGE_NAME
,
&
fip_dev_handle
,
&
bl2_file_spec
,
open_fip
},
{
BL31_IMAGE_NAME
,
&
fip_dev_handle
,
&
bl31_file_spec
,
open_fip
},
{
BL33_IMAGE_NAME
,
&
fip_dev_handle
,
&
bl33_file_spec
,
open_fip
},
{
0
,
0
,
0
}
{
0
,
0
,
0
}
};
...
...
@@ -187,8 +187,8 @@ int plat_get_image_source(const char *image_name, io_dev_handle *dev_handle,
if
(
strcmp
(
policy
->
image_name
,
image_name
)
==
0
)
{
result
=
policy
->
check
(
policy
->
image_spec
);
if
(
result
==
IO_SUCCESS
)
{
*
(
io_file_spec
**
)
image_spec
=
policy
->
image_spec
;
*
dev_handle
=
*
(
policy
->
dev_handle
);
*
(
io_file_spec
**
)
image_spec
=
policy
->
image_spec
;
*
dev_handle
=
*
(
policy
->
dev_handle
);
break
;
}
else
{
result
=
open_semihosting
(
policy
->
image_spec
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help