[PATCH v2 2/2] libbsp/arm: Fix the local interrupt mask disable/enable calls.
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Aug 16 05:55:57 UTC 2016
On 16/08/16 07:45, Chris Johns wrote:
> ---
> c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c b/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
> index f650009..cfad45f 100644
> --- a/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
> +++ b/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
> @@ -88,10 +88,10 @@ uint32_t arm_cp15_set_translation_table_entries(
> rtems_interrupt_level level;
> uint32_t section_flags_of_first_entry;
>
> - rtems_interrupt_disable(level);
> + rtems_interrupt_local_disable(level);
> section_flags_of_first_entry =
> set_translation_table_entries(begin, end, section_flags);
> - rtems_interrupt_enable(level);
> + rtems_interrupt_local_enable(level);
>
> return section_flags_of_first_entry;
> }
We should only change this if this is known to work on SMP.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list