Changeset 0ce5bfb in rtems


Ignore:
Timestamp:
09/08/17 08:50:08 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
b742de2
Parents:
20fc4f9
git-author:
Sebastian Huber <sebastian.huber@…> (09/08/17 08:50:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/12/17 08:00:23)
Message:

bsp/qoriq: Do not touch MMU as hypervisor guest

Update #3085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/start/start.S

    r20fc4f9 r0ce5bfb  
    2323#include <rtems/score/percpu.h>
    2424
    25 #include <bspopts.h>
     25#include <bsp.h>
    2626
    2727#include <libcpu/powerpc-utility.h>
     
    178178#endif
    179179
    180 #ifdef QORIQ_INITIAL_HID0
     180#if defined(QORIQ_INITIAL_HID0) && !defined(QORIQ_IS_HYPERVISOR_GUEST)
    181181        /* HID0 initialization */
    182182        LWI     r0, QORIQ_INITIAL_HID0
     
    201201        mflr    SAVED_LINK_REGISTER
    202202
     203#ifdef QORIQ_IS_HYPERVISOR_GUEST
     204        /* MSR initialization with guest state */
     205        LWI     INITIAL_MSR, QORIQ_INITIAL_MSR
     206        oris    r0, INITIAL_MSR, MSR_GS >> 16
     207        mtmsr   r0
     208        isync
     209#else
    203210        /* Invalidate all TS1 MMU entries */
    204211        li      r3, 1
     
    222229        mtmsr   r0
    223230        isync
     231#endif
    224232
    225233        /*
     
    241249
    242250.Linitmmu:
     251#ifndef QORIQ_IS_HYPERVISOR_GUEST
    243252        mflr    SAVED_LINK_REGISTER
    244253
     
    255264
    256265        mtlr    SAVED_LINK_REGISTER
     266#endif
    257267        blr
    258268
Note: See TracChangeset for help on using the changeset viewer.