[RTEMS Project] #3760: BBB MMU update crashes

RTEMS trac trac at rtems.org
Tue Jun 25 10:08:06 UTC 2019


#3760: BBB MMU update crashes
-------------------------+---------------------
 Reporter:  Chris Johns  |       Owner:  (none)
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:  5.1
Component:  arch/arm     |     Version:  5
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+---------------------

Comment (by Chris Johns):

 The implementation is:
 {{{
 ARM_CP15_TEXT_SECTION static inline void
 arm_cp15_tlb_invalidate_entry_all_asids(const void *mva)
 {
   ARM_SWITCH_REGISTERS;

   mva = ARM_CP15_TLB_PREPARE_MVA(mva);

   __asm__ volatile (
     ARM_SWITCH_TO_ARM
     "mcr p15, 0, %[mva], c8, c7, 3\n"
     ARM_SWITCH_BACK
     : ARM_SWITCH_OUTPUT
     : [mva] "r" (mva)
   );
 }
 }}}

 The cp15 register c8, 0, c7, 3 is `undefined` for a Cortex-A8 (ARM's
 document DDI0334K p3-12). The conditional define in
 `arm_cp15_set_translation_table_entries` catches the Cortex-A8.

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


More information about the bugs mailing list