Changeset 62aa318 in rtems


Ignore:
Timestamp:
Apr 25, 2013, 1:21:35 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ad8010c
Parents:
45c9b7d4
git-author:
Sebastian Huber <sebastian.huber@…> (04/25/13 13:21:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/25/13 13:31:41)
Message:

bsp/mpc55xx: Add MMU tag translate initializer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h

    r45c9b7d4 r62aa318  
    151151        };
    152152
    153 #define MPC55XX_MMU_TAG_INITIALIZER(idx, addr, size, x, w, r, io) \
     153#define MPC55XX_MMU_TAG_TRANSLATE_INITIALIZER(idx, addreff, addrreal, size, x, w, r, io) \
    154154  { \
    155155    .MAS0 = { .B = { .TLBSEL = 1, .ESEL = (idx) } }, \
     
    158158    }, \
    159159    .MAS2 = { .B = { \
    160       .EPN = (addr) >> 10, .VLE = 0, \
     160      .EPN = (addreff) >> 10, .VLE = 0, \
    161161      .W = (io) == 2, .I = (io) == 1, .M = 0, .G = (io) == 1, .E = 0 } \
    162162    }, \
    163163    .MAS3 = { .B = { \
    164       .RPN = (addr) >> 10, .U0 = 0, .U1 = 0, .U2 = 0, .U3 = 0, .UX = 0, \
     164      .RPN = (addrreal) >> 10, .U0 = 0, .U1 = 0, .U2 = 0, .U3 = 0, .UX = 0, \
    165165      .SX = (x), .UW = 0, .SW = (w), .UR = 0, .SR = (r) } \
    166166    } \
    167167  }
     168
     169#define MPC55XX_MMU_TAG_INITIALIZER(idx, addr, size, x, w, r, io) \
     170  MPC55XX_MMU_TAG_TRANSLATE_INITIALIZER(idx, addr, addr, size, x, w, r, io)
    168171
    169172#define MPC55XX_MMU_1K 0
Note: See TracChangeset for help on using the changeset viewer.