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

2016-08-14 Thread Pavel Pisa
Hello Chris, On Monday 15 of August 2016 07:30:56 Chris Johns wrote: > 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. My code can have issues with SMP. If the arm_a9m

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

2016-08-14 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 | 29 ++ 1 file changed, 29 insertions(+) diff --gi

Re: [PATCH] arm/xilinx_zynq: Disable the MMU and the data and instruction cache on boot.

2016-08-14 Thread Chris Johns
Hi Pavel, Thank you for taking the time to provide a really great explanation. On 14/08/2016 20:44, Pavel Pisa wrote: So I have kept the code in bsp_start_hook_0 for RaspberryPi https://git.rtems.org/rtems/tree/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c#n39 I added the code f

Re: [PATCH] libbsp/arm: Add the TTB table to the default MMU set up as read/write.

2016-08-14 Thread Pavel Pisa
On Tuesday 09 of August 2016 09:39:00 Chris Johns wrote: > This lets the table be changed at runtime for dynamic loading and > debugger support. > --- > c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/c/src/lib/libbsp/arm/shared/inc

Re: [PATCH] arm/xilinx_zynq: Disable the MMU and the data and instruction cache on boot.

2016-08-14 Thread Pavel Pisa
Hello Chris, On Tuesday 09 of August 2016 09:19:51 Chris Johns wrote: > The u-boot loader can enable the MMU plus the data and instruction caches. > Disable them and if the data cache is enabled clear it before turn the > caches off. > > Closes #2774. > --- > c/src/lib/libbsp/arm/shared/include/a

Re: Expanding Mailbox API

2016-08-14 Thread Pavel Pisa
Hello Mudit and Gedare, I have returned from my mountain trip and digging through e-mails flood, some oversight possible. On Saturday 06 of August 2016 20:52:58 Gedare Bloom wrote: > It would make sense to me to refactor this code. I can't recall if > there was a compelling reason to have all of