libcpu/powerpc/e500/mmu/mmu.c: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-15 14:22:02 -05:00
parent d4ab6611f3
commit 3cdc08c2dd

View File

@@ -121,7 +121,7 @@ E500_tlb_va_cache_t rtems_e500_tlb_va_cache[16];
static void
myprintf(FILE *f, char *fmt, ...)
{
va_list ap;
va_list ap;
va_start(ap, fmt);
if (!f || !_impure_ptr->__sdidinit) {
@@ -199,11 +199,11 @@ int idx = key & ~E500_SELTLB_1;
int
rtems_e500_prtlb(rtems_e500_tlb_idx key, int quiet, FILE *f)
{
uint32_t mas0, mas1, mas2, mas3;
rtems_interrupt_level lvl;
E500_tlb_va_cache_t *tlb;
E500_tlb_va_cache_t buf;
int sel, idx;
uint32_t mas1, mas2, mas3;
rtems_interrupt_level lvl;
E500_tlb_va_cache_t *tlb;
E500_tlb_va_cache_t buf;
int sel, idx;
sel = (key & E500_SELTLB_1) ? 1 : 0;
idx = key & ~E500_SELTLB_1;
@@ -217,7 +217,7 @@ int sel, idx;
asm volatile("tlbre");
mas0 = _read_MAS0();
/* not manipulating MAS0, skip reading it */
mas1 = _read_MAS1();
mas2 = _read_MAS2();
mas3 = _read_MAS3();
@@ -434,11 +434,11 @@ rtems_interrupt_level lvl;
_write_MAS4(mas4);
asm volatile(
" sync \n"
" isync \n"
" tlbwe \n"
" sync \n"
" isync \n"
" sync\n"
" isync\n"
" tlbwe\n"
" sync\n"
" isync\n"
);
rtems_interrupt_enable(lvl);
@@ -614,11 +614,11 @@ rtems_interrupt_level lvl;
_write_MAS1( _read_MAS1() & ~FSL_EIS_MAS1_V );
asm volatile(
" sync \n"
" isync \n"
" tlbwe \n"
" sync \n"
" isync \n"
" sync\n"
" isync\n"
" tlbwe\n"
" sync\n"
" isync\n"
);
/* update cache */