[RTEMS Project] #2343: [Patch] Fix Zynq SMP boot

RTEMS trac trac at rtems.org
Mon May 11 04:39:05 UTC 2015


#2343: [Patch] Fix Zynq SMP boot
----------------------------------------+---------------------
 Reporter:  jbrandmeyer                 |       Owner:
     Type:  defect                      |      Status:  new
 Priority:  high                        |   Milestone:  4.11.1
Component:  SMP                         |     Version:  4.10
 Severity:  normal                      |  Resolution:
 Keywords:  zynq, xilinx_zynq_zedboard  |
----------------------------------------+---------------------

Comment (by chrisj):

 Replying to [comment:3 jbrandmeyer]:
 > What it really needs is for the write to be observable by the other CPU.
 In order to make that happen, it needs to be device memory because of a
 confluence of issues:
 >
 > * RTEMS initializes the MMU and caches before starting up other CPUs.
 > * The other CPU does not have its MMU enabled in its waiting-to-startup
 state.
 > * Normal memory is cachable.
 > * RTEMS does not support cache flush functions in ARMv7-A, only ARMv5TEJ
 (see c/src/lib/libcpu/arm/shared/include/cache_.h)
 >
 > So, marking the memory as 'device' memory seemed like the safest way
 around those issues.

 From the TRM "Configuring OCM memory as device memory in the MMU or using
 narrow, non-modifiable accesses through the ACP port is not recommended.".
 I assume "the memory" being referred to is OCM memory.

 Also the changes in the MMU should not be in an area that is overloaded by
 the MMU's weak symbol if it effects the operation of other code in the
 BSP.

--
Ticket URL: <http://devel.rtems.org/ticket/2343#comment:9>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list