Changeset f6e793a2 in rtems


Ignore:
Timestamp:
Apr 3, 2017, 8:05:51 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
d2a45a58
Parents:
2ba996fa
git-author:
Sebastian Huber <sebastian.huber@…> (04/03/17 08:05:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/03/17 12:07:58)
Message:

bsp/qoriq: Adjust MMU config only once

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

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/include/mmu.h

    r2ba996fa rf6e793a2  
    7979void qoriq_mmu_change_perm(uint32_t test, uint32_t set, uint32_t clear);
    8080
    81 void qoriq_mmu_config(int first_tlb, int scratch_tlb);
     81void qoriq_mmu_config(bool boot_processor, int first_tlb, int scratch_tlb);
    8282
    8383void qoriq_tlb1_write(
  • c/src/lib/libbsp/powerpc/qoriq/start/start.S

    r2ba996fa rf6e793a2  
    121121.Lnull_area_setup_done:
    122122
     123        li      r3, 1
    123124        bl      .Linitmmu
    124125
     
    233234
    234235        /* Configure MMU */
    235         li      r3, FIRST_TLB
    236         li      r4, SCRATCH_TLB
     236        li      r4, FIRST_TLB
     237        li      r5, SCRATCH_TLB
    237238        bl      qoriq_mmu_config
    238239        mtmsr   INITIAL_MSR
     
    321322
    322323        bl      .Linitmore
     324        li      r3, 0
    323325        bl      .Linitmmu
    324326        b       bsp_start_on_secondary_processor
  • c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c

    r2ba996fa rf6e793a2  
    192192}
    193193
    194 void TEXT qoriq_mmu_config(int first_tlb, int scratch_tlb)
     194void TEXT qoriq_mmu_config(bool boot_processor, int first_tlb, int scratch_tlb)
    195195{
    196196        qoriq_mmu_context context;
    197197        int i = 0;
    198198
    199         config_fdt_adjust();
     199        if (boot_processor) {
     200                config_fdt_adjust();
     201        }
     202
    200203        qoriq_mmu_context_init(&context);
    201204
Note: See TracChangeset for help on using the changeset viewer.