Re: [PATCH v2 2/2] libbsp/arm: Fix the local interrupt mask disable/enable calls.

2016-08-15 Thread Sebastian Huber
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 f65000

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Sebastian Huber
On 16/08/16 07:40, Chris Johns wrote: On 16/08/2016 15:36, Sebastian Huber wrote: On 16/08/16 07:35, Chris Johns wrote: On 16/08/2016 15:32, Sebastian Huber wrote: https://docs.rtems.org/doc-current/share/rtems/html/c_user/Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_002d-Disable-Inte

[PATCH v2 2/2] libbsp/arm: Fix the local interrupt mask disable/enable calls.

2016-08-15 Thread Chris Johns
--- 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/a

[PATCH v2 1/2] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Chris Johns
This is a copy of the patch from Pavel to fix some strange behaviour with data cache, instruction cache and MMU being enabled by u-boot on the RaspberryPi. Closes #2774. --- .../libbsp/arm/shared/include/arm-a9mpcore-start.h | 38 ++ c/src/lib/libbsp/arm/xilinx-zynq/Makefile.a

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Chris Johns
On 16/08/2016 15:36, Sebastian Huber wrote: On 16/08/16 07:35, Chris Johns wrote: On 16/08/2016 15:32, Sebastian Huber wrote: https://docs.rtems.org/doc-current/share/rtems/html/c_user/Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_002d-Disable-Interrupts-on-Current-Processor.html#Interrup

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Sebastian Huber
On 16/08/16 07:35, Chris Johns wrote: On 16/08/2016 15:32, Sebastian Huber wrote: https://docs.rtems.org/doc-current/share/rtems/html/c_user/Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_002d-Disable-Interrupts-on-Current-Processor.html#Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Chris Johns
On 16/08/2016 15:32, Sebastian Huber wrote: https://docs.rtems.org/doc-current/share/rtems/html/c_user/Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_002d-Disable-Interrupts-on-Current-Processor.html#Interrupt-Manager-INTERRUPT_005fLOCAL_005fDISABLE-_002d-Disable-Interrupts-on-Current-Proces

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Sebastian Huber
On 16/08/16 03:49, Chris Johns wrote: On 15/08/2016 16:54, Pavel Pisa wrote: If you test that chage is OK for Zynq with SMP then I reintroduce change to RPi code (it would worth to have RPi2 SMP working for that testing but that is near to bottom of my own TODO list). My debug server app doe

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Chris Johns
On 15/08/2016 16:54, Pavel Pisa wrote: If you test that chage is OK for Zynq with SMP then I reintroduce change to RPi code (it would worth to have RPi2 SMP working for that testing but that is near to bottom of my own TODO list). My debug server app does not link when SMP is enabled. I am gett

Re: [PATCH] arm/cortex-a: Fix cache flush/invalidate after u-boot.

2016-08-15 Thread Chris Johns
On 15/08/2016 16:54, Pavel Pisa wrote: if (cpu_id == 0) { +rtems_cache_invalidate_entire_data(); +rtems_cache_invalidate_entire_instruction(); } else { arm_cache_l1_invalidate_entire_data(); arm_cache_l1_invalidate_entire_instruction(); } The header a