Changeset a12724f9 in rtems


Ignore:
Timestamp:
Apr 14, 2016, 5:57:38 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6efa349
Parents:
33a1a4db
git-author:
Sebastian Huber <sebastian.huber@…> (04/14/16 05:57:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/14/16 05:59:55)
Message:

bsp/qoriq: Fix MMU initialization for e6500

In case a hypervisor mode is present, then we must set MAS8 for some TLB
operations, otherwise the run-time behaviour is unpredictable.

Location:
c/src/lib/libbsp/powerpc/qoriq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/configure.ac

    r33a1a4db ra12724f9  
    165165RTEMS_BSPOPTS_HELP([QORIQ_MMU_DEVICE_MAS7],[MAS7 value for device TLB1 entries])
    166166
     167RTEMS_BSPOPTS_SET([QORIQ_HAS_HYPERVISOR_MODE],[qoriq_t*],[1])
     168RTEMS_BSPOPTS_SET([QORIQ_HAS_HYPERVISOR_MODE],[*],[])
     169RTEMS_BSPOPTS_HELP([QORIQ_HAS_HYPERVISOR_MODE],[defined if the processor core has a hypervisor mode])
     170
    167171RTEMS_BSPOPTS_SET([QORIQ_L2CSR0],[qoriq_t*],[0xfec20000])
    168172RTEMS_BSPOPTS_SET([QORIQ_L2CSR0],[*],[])
  • c/src/lib/libbsp/powerpc/qoriq/startup/mmu-tlb1.S

    r33a1a4db ra12724f9  
    88
    99/*
    10  * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2011, 2016 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Obere Lagerstr. 30
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    2020 * http://www.rtems.org/license/LICENSE.
    2121 */
     22
     23#include <bspopts.h>
    2224
    2325#include <libcpu/powerpc-utility.h>
     
    4345        mtspr   FSL_EIS_MAS3, r6
    4446        mtspr   FSL_EIS_MAS7, r7
     47#ifdef QORIQ_HAS_HYPERVISOR_MODE
     48        li      r0, 0
     49        mtspr   FSL_EIS_MAS8, r0
     50#endif
    4551        tlbwe
    4652        sync
     
    5763        mtspr   FSL_EIS_MAS3, r0
    5864        mtspr   FSL_EIS_MAS7, r0
     65#ifdef QORIQ_HAS_HYPERVISOR_MODE
     66        mtspr   FSL_EIS_MAS8, r0
     67#endif
    5968        tlbwe
    6069        sync
Note: See TracChangeset for help on using the changeset viewer.