Changeset 93d4d06 in rtems


Ignore:
Timestamp:
Feb 5, 2013, 3:31:30 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3020614
Parents:
a2930a9
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/13 15:31:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/06/13 14:35:54)
Message:

bsp/mpc55xx: Add mpc55xx_mmu_apply_config()

File:
1 edited

Legend:

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

    ra2930a9 r93d4d06  
    4343#define LIBCPU_POWERPC_MPC55XX_H
    4444
    45 #include <stddef.h>
     45#include <mpc55xx/regs.h>
     46#include <mpc55xx/regs-mmu.h>
    4647
    47 #include <mpc55xx/regs.h>
     48#include <libcpu/powerpc-utility.h>
    4849
    4950#ifdef __cplusplus
     
    139140}
    140141
     142static inline void mpc55xx_mmu_apply_config(const struct MMU_tag *config)
     143{
     144  PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_MAS0, config->MAS0.R);
     145  PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_MAS1, config->MAS1.R);
     146  PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_MAS2, config->MAS2.R);
     147  PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_MAS3, config->MAS3.R);
     148  __asm__ volatile ("tlbwe");
     149}
     150
    141151#ifdef __cplusplus
    142152}
Note: See TracChangeset for help on using the changeset viewer.