Skip to content
GitLab
Menu
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
3944adca
Commit
3944adca
authored
Mar 18, 2017
by
davidcunado-arm
Committed by
GitHub
Mar 18, 2017
Browse files
Merge pull request #861 from soby-mathew/sm/aarch32_fixes
Misc AArch32 fixes
parents
effe0dca
a6b3954b
Changes
4
Hide whitespace changes
Inline
Side-by-side
drivers/arm/ccn/ccn.c
View file @
3944adca
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2017
, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
...
...
@@ -38,7 +38,7 @@
#include "ccn_private.h"
static
const
ccn_desc_t
*
ccn_plat_desc
;
#ifdef
IMAGE_BL3
1
#if
def
ined(IMAGE_BL31) || (defined(AARCH32) && defined(
IMAGE_BL3
2))
DEFINE_BAKERY_LOCK
(
ccn_lock
);
#endif
...
...
@@ -285,7 +285,7 @@ static void ccn_snoop_dvm_do_op(unsigned long long rn_id_map,
assert
(
ccn_plat_desc
);
assert
(
ccn_plat_desc
->
periphbase
);
#ifdef
IMAGE_BL3
1
#if
def
ined(IMAGE_BL31) || (defined(AARCH32) && defined(
IMAGE_BL3
2))
bakery_lock_get
(
&
ccn_lock
);
#endif
start_region_id
=
region_id
;
...
...
@@ -305,7 +305,7 @@ static void ccn_snoop_dvm_do_op(unsigned long long rn_id_map,
rn_id_map
);
}
#ifdef
IMAGE_BL3
1
#if
def
ined(IMAGE_BL31) || (defined(AARCH32) && defined(
IMAGE_BL3
2))
bakery_lock_release
(
&
ccn_lock
);
#endif
}
...
...
include/plat/arm/common/plat_arm.h
View file @
3944adca
...
...
@@ -64,7 +64,7 @@ void arm_setup_page_tables(uintptr_t total_base,
#endif
);
#ifdef
IMAGE_BL3
1
#if
def
ined(IMAGE_BL31) || (defined(AARCH32) && defined(
IMAGE_BL3
2))
/*
* Use this macro to instantiate lock before it is used in below
* arm_lock_xxx() macros
...
...
@@ -88,7 +88,7 @@ void arm_setup_page_tables(uintptr_t total_base,
#define arm_lock_get()
#define arm_lock_release()
#endif
/* IMAGE_BL31 */
#endif
/*
defined(
IMAGE_BL31
) || (defined(AARCH32) && defined(IMAGE_BL32))
*/
#if ARM_RECOM_STATE_ID_ENC
/*
...
...
lib/locks/bakery/bakery_lock_normal.c
View file @
3944adca
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
...
...
@@ -178,8 +178,11 @@ void bakery_lock_get(bakery_lock_t *lock)
unsigned
int
their_bakery_data
;
me
=
plat_my_core_pos
();
#ifdef AARCH32
is_cached
=
read_sctlr
()
&
SCTLR_C_BIT
;
#else
is_cached
=
read_sctlr_el3
()
&
SCTLR_C_BIT
;
#endif
/* Get a ticket */
my_ticket
=
bakery_get_ticket
(
lock
,
me
,
is_cached
);
...
...
@@ -231,7 +234,11 @@ void bakery_lock_get(bakery_lock_t *lock)
void
bakery_lock_release
(
bakery_lock_t
*
lock
)
{
bakery_info_t
*
my_bakery_info
;
#ifdef AARCH32
unsigned
int
is_cached
=
read_sctlr
()
&
SCTLR_C_BIT
;
#else
unsigned
int
is_cached
=
read_sctlr_el3
()
&
SCTLR_C_BIT
;
#endif
my_bakery_info
=
get_bakery_info
(
plat_my_core_pos
(),
lock
);
...
...
plat/common/aarch32/platform_mp_stack.S
View file @
3944adca
/*
*
Copyright
(
c
)
2016
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2016
-
2017
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
Redistribution
and
use
in
source
and
binary
forms
,
with
or
without
*
modification
,
are
permitted
provided
that
the
following
conditions
are
met
:
...
...
@@ -32,8 +32,8 @@
#include <asm_macros.S>
#include <platform_def.h>
.
globl
plat_get_my_stack
.
globl
plat_set_my_stack
.
weak
plat_get_my_stack
.
weak
plat_set_my_stack
/
*
-----------------------------------------------------
*
uintptr_t
plat_get_my_stack
(
u_register_t
mpidr
)
...
...
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