diff options
| author | Stefan Roese <sr@denx.de> | 2010-04-14 13:57:18 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2010-04-19 15:29:03 +0200 | 
| commit | cf6eb6da433179674571f9370566b1ec8989a41a (patch) | |
| tree | fc0ad7161d7146154026fa789a97dd2c047c61a7 /arch | |
| parent | 2a72e9ed18d2164eb7fe569119342eb631b568da (diff) | |
| download | olio-uboot-2014.01-cf6eb6da433179674571f9370566b1ec8989a41a.tar.xz olio-uboot-2014.01-cf6eb6da433179674571f9370566b1ec8989a41a.zip | |
ppc4xx: TLB init file cleanup
This patch adds new macros, with frequently used combinations of the
4xx TLB access control and storage attibutes. Additionally the 4xx init.S
files are updated to make use of these new macros. Resulting in easier
to read TLB definitions.
Additionally some init.S files are updated to use the mmu header for the
TLB defines, instead of defining their own macros.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/ppc/include/asm/mmu.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/arch/ppc/include/asm/mmu.h b/arch/ppc/include/asm/mmu.h index ce7f08100..5166507f9 100644 --- a/arch/ppc/include/asm/mmu.h +++ b/arch/ppc/include/asm/mmu.h @@ -577,11 +577,16 @@ extern int num_tlb_entries;  #define SA_M	0x00000200	/* Memory coherence */  #define SA_G	0x00000100	/* Guarded */  #define SA_E	0x00000080	/* Endian */ +/* Some additional macros for combinations often used */ +#define SA_IG	(SA_I | SA_G)  /* Access control */  #define AC_X	0x00000024	/* Execute */  #define AC_W	0x00000012	/* Write */  #define AC_R	0x00000009	/* Read */ +/* Some additional macros for combinations often used */ +#define AC_RW	(AC_R | AC_W) +#define AC_RWX	(AC_R | AC_W | AC_X)  /* Some handy macros */ |