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
7d571f3a
Commit
7d571f3a
authored
11 years ago
by
Jon Medhurst
Committed by
Sandrine Bailleux
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
juno: Override platform_get_core_pos and platform_is_primary_cpu
Signed-off-by:
Jon Medhurst
<
tixy@linaro.org
>
parent
548cc933
v0.4-Juno-0.6-rc0
v0.4-Juno-0.5
v0.4-Juno-0.5-rc1
v0.4-Juno-0.5-rc0
v0.4-Juno-0.4
v0.4-Juno-0.4-rc0
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plat/juno/aarch64/plat_helpers.S
+28
-0
plat/juno/aarch64/plat_helpers.S
plat/juno/platform.h
+1
-1
plat/juno/platform.h
plat/juno/platform.mk
+1
-0
plat/juno/platform.mk
with
30 additions
and
1 deletion
+30
-1
plat/juno/aarch64/plat_helpers.S
View file @
7d571f3a
...
...
@@ -46,3 +46,31 @@
plat_report_exception
:
/
*
Juno
todo
:
Come
up
with
a
way
of
reporting
errors
*/
ret
/
*
*
Return
0
to
3
for
the
A53s
and
4
or
5
for
the
A57s
*/
.
globl
platform_get_core_pos
platform_get_core_pos
:
; .type platform_get_core_pos, %function
and
x1
,
x0
,
#
MPIDR_CPU_MASK
and
x0
,
x0
,
#
MPIDR_CLUSTER_MASK
eor
x0
,
x0
,
#(
1
<<
MPIDR_AFFINITY_BITS
)
//
swap
A53
/
A57
order
add
x0
,
x1
,
x0
,
LSR
#
6
ret
/
*
-----------------------------------------------------
*
void
platform_is_primary_cpu
(
unsigned
int
mpid
)
;
*
*
Given
the
mpidr
say
whether
this
cpu
is
the
primary
*
cpu
(
applicable
ony
after
a
cold
boot
)
*
-----------------------------------------------------
*/
.
globl
platform_is_primary_cpu
platform_is_primary_cpu
:
; .type platform_is_primary_cpu, %function
/
*
Warning
:
this
function
is
called
without
a
valid
stack
*/
/
*
Juno
todo
:
allow
configuration
of
primary
CPU
using
SCC
*/
and
x0
,
x0
,
#(
MPIDR_CLUSTER_MASK
|
MPIDR_CPU_MASK
)
cmp
x0
,
#
PRIMARY_CPU
cset
x0
,
eq
ret
This diff is collapsed.
Click to expand it.
plat/juno/platform.h
View file @
7d571f3a
...
...
@@ -74,7 +74,7 @@
#define PLATFORM_CORE_COUNT (PLATFORM_CLUSTER1_CORE_COUNT + \
PLATFORM_CLUSTER0_CORE_COUNT)
#define PLATFORM_MAX_CPUS_PER_CLUSTER 4
#define PRIMARY_CPU 0x0
#define PRIMARY_CPU 0x
10
0
#define MAX_IO_DEVICES 3
#define MAX_IO_HANDLES 4
...
...
This diff is collapsed.
Click to expand it.
plat/juno/platform.mk
View file @
7d571f3a
...
...
@@ -78,6 +78,7 @@ BL1_SOURCES += bl1_plat_setup.c \
cci400.c
BL2_SOURCES
+=
bl2_plat_setup.c
\
plat_helpers.S
\
plat_common.c
BL31_SOURCES
+=
bl31_plat_setup.c
\
...
...
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