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