2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>

* mpc6xx/mmu/pte121.c, mpc6xx/mmu/pte121.h, mpc6xx/timer/timer.c,
	new-exceptions/e500_raw_exc_init.c,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h,
	new-exceptions/bspsupport/vectors_init.c: Fix warnings.
This commit is contained in:
Joel Sherrill
2008-08-18 21:17:06 +00:00
parent 1487880d2c
commit b679966dc9
7 changed files with 37 additions and 38 deletions

View File

@@ -1,3 +1,10 @@
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* mpc6xx/mmu/pte121.c, mpc6xx/mmu/pte121.h, mpc6xx/timer/timer.c,
new-exceptions/e500_raw_exc_init.c,
new-exceptions/bspsupport/ppc_exc_bspsupp.h,
new-exceptions/bspsupport/vectors_init.c: Fix warnings.
2008-07-27 Ralf Corsépius <ralf.corsepius@rtems.org> 2008-07-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Remove doxygen comments. * Makefile.am: Remove doxygen comments.

View File

@@ -231,7 +231,7 @@ dumpPteg (unsigned long vsid, unsigned long pi, unsigned long hash);
unsigned long unsigned long
triv121IsRangeMapped (long vsid, unsigned long start, unsigned long end); triv121IsRangeMapped (long vsid, unsigned long start, unsigned long end);
static void do_dssall (); static void do_dssall (void);
/**************************** STATIC VARIABLES ****************************/ /**************************** STATIC VARIABLES ****************************/
@@ -899,7 +899,7 @@ triv121UnmapEa (unsigned long ea)
* Just do it to be on the safe side... * Just do it to be on the safe side...
*/ */
static void static void
do_dssall () do_dssall (void)
{ {
/* Before changing BATs, 'dssall' must be issued. /* Before changing BATs, 'dssall' must be issued.
* We check MSR for MSR_VE and issue a 'dssall' if * We check MSR for MSR_VE and issue a 'dssall' if

View File

@@ -219,20 +219,17 @@ triv121PgTblSDR1(Triv121PgTbl pgTbl);
* may have to switch overlapping BATs OFF in order * may have to switch overlapping BATs OFF in order
* for the page table mappings to take effect. * for the page table mappings to take effect.
*/ */
void void triv121PgTblActivate(Triv121PgTbl pgTbl);
triv121PgTblActivate(Triv121PgTbl pgTbl);
/* Find the PTE for a EA and print its contents to stdout /* Find the PTE for a EA and print its contents to stdout
* RETURNS: pte for EA or NULL if no entry was found. * RETURNS: pte for EA or NULL if no entry was found.
*/ */
APte APte triv121DumpEa(unsigned long ea);
triv121DumpEa(unsigned long ea);
/* Find and return a PTE for a vsid/pi combination /* Find and return a PTE for a vsid/pi combination
* RETURNS: pte or NULL if no entry was found * RETURNS: pte or NULL if no entry was found
*/ */
APte APte triv121FindPte(unsigned long vsid, unsigned long pi);
triv121FindPte(unsigned long vsid, unsigned long pi);
/* /*
* Unmap an effective address * Unmap an effective address
@@ -240,8 +237,7 @@ triv121FindPte(unsigned long vsid, unsigned long pi);
* RETURNS: pte that mapped the ea or NULL if no * RETURNS: pte that mapped the ea or NULL if no
* mapping existed. * mapping existed.
*/ */
APte APte triv121UnmapEa(unsigned long ea);
triv121UnmapEa(unsigned long ea);
/* /*
* Change the WIMG and PP attributes of the page containing 'ea' * Change the WIMG and PP attributes of the page containing 'ea'
@@ -251,24 +247,20 @@ triv121UnmapEa(unsigned long ea);
* *
* RETURNS: Pointer to modified PTE or NULL if 'ea' is not mapped. * RETURNS: Pointer to modified PTE or NULL if 'ea' is not mapped.
*/ */
APte APte triv121ChangeEaAttributes(unsigned long ea, int wimg, int pp);
triv121ChangeEaAttributes(unsigned long ea, int wimg, int pp);
/* Make the whole page table writable /* Make the whole page table writable
* NOTES: If the page table has not been initialized yet, * NOTES: If the page table has not been initialized yet,
* this routine has no effect (i.e., after * this routine has no effect (i.e., after
* initialization the page table will still be read-only). * initialization the page table will still be read-only).
*/ */
void void triv121MakePgTblRW(void);
triv121MakePgTblRW();
/* Make the whole page table read-only /* Make the whole page table read-only
*/ */
void void triv121MakePgTblRO(void);
triv121MakePgTblRO();
/* Dump a pte to stdout */ /* Dump a pte to stdout */
long long triv121DumpPte(APte pte);
triv121DumpPte(APte pte);
#endif #endif

View File

@@ -28,7 +28,7 @@ unsigned clicks_overhead = 0;
* Timer Get overhead * Timer Get overhead
*/ */
int Timer_get_clicks_overhead() int Timer_get_clicks_overhead(void)
{ {
uint64_t clicks; uint64_t clicks;
@@ -42,7 +42,7 @@ int Timer_get_clicks_overhead()
/* /*
* Timer_initialize * Timer_initialize
*/ */
void Timer_initialize() void Timer_initialize(void)
{ {
/* /*
@@ -58,7 +58,7 @@ void Timer_initialize()
* Read_timer * Read_timer
*/ */
int Read_timer() int Read_timer(void)
{ {
uint64_t total64; uint64_t total64;
uint32_t total; uint32_t total;
@@ -77,7 +77,7 @@ int Read_timer()
return (int) BSP_Convert_decrementer(total - clicks_overhead); return (int) BSP_Convert_decrementer(total - clicks_overhead);
} }
unsigned long long Read_long_timer() unsigned long long Read_long_timer(void)
{ {
uint64_t total64; uint64_t total64;

View File

@@ -109,24 +109,24 @@ extern unsigned ppc_exc_min_prolog_size[];
extern unsigned ppc_exc_tgpr_clr_prolog_size[]; extern unsigned ppc_exc_tgpr_clr_prolog_size[];
/* Templates for ppc_exc_min_prolog_expand() which fills-in the vector information */ /* Templates for ppc_exc_min_prolog_expand() which fills-in the vector information */
extern void ppc_exc_min_prolog_async_tmpl_std(); extern void ppc_exc_min_prolog_async_tmpl_std(void);
extern void ppc_exc_min_prolog_sync_tmpl_std(); extern void ppc_exc_min_prolog_sync_tmpl_std(void);
extern void ppc_exc_min_prolog_async_tmpl_p405_crit(); extern void ppc_exc_min_prolog_async_tmpl_p405_crit(void);
extern void ppc_exc_min_prolog_sync_tmpl_p405_crit(); extern void ppc_exc_min_prolog_sync_tmpl_p405_crit(void);
extern void ppc_exc_min_prolog_async_tmpl_bookE_crit(); extern void ppc_exc_min_prolog_async_tmpl_bookE_crit(void);
extern void ppc_exc_min_prolog_sync_tmpl_bookE_crit(); extern void ppc_exc_min_prolog_sync_tmpl_bookE_crit(void);
extern void ppc_exc_min_prolog_sync_tmpl_e500_mchk(); extern void ppc_exc_min_prolog_sync_tmpl_e500_mchk(void);
extern void ppc_exc_min_prolog_async_tmpl_e500_mchk(); extern void ppc_exc_min_prolog_async_tmpl_e500_mchk(void);
/* Special prologue for handling register shadowing on 603-style CPUs */ /* Special prologue for handling register shadowing on 603-style CPUs */
extern void ppc_exc_tgpr_clr_prolog(); extern void ppc_exc_tgpr_clr_prolog(void);
/* Classic prologue which determines the vector dynamically from /* Classic prologue which determines the vector dynamically from
* the offset address. This must only be used for classic, synchronous * the offset address. This must only be used for classic, synchronous
* exceptions with a vector offset aligned on a 256-byte boundary. * exceptions with a vector offset aligned on a 256-byte boundary.
*/ */
extern void ppc_exc_min_prolog_auto(); extern void ppc_exc_min_prolog_auto(void);
extern void ppc_exc_min_prolog_auto_packed(); extern void ppc_exc_min_prolog_auto_packed(void);
/* CPU support may store the address of a function here /* CPU support may store the address of a function here
@@ -136,7 +136,7 @@ extern void ppc_exc_min_prolog_auto_packed();
* across PPC families so we need assistance from * across PPC families so we need assistance from
* CPU support * CPU support
*/ */
extern uint32_t (*ppc_exc_get_DAR)(); extern uint32_t (*ppc_exc_get_DAR)(void);
#ifdef __cplusplus #ifdef __cplusplus
}; };

View File

@@ -4,7 +4,7 @@
* This include file describe the data structure and the functions implemented * This include file describe the data structure and the functions implemented
* by rtems to handle exceptions. * by rtems to handle exceptions.
* *
* CopyRight (C) 1999 valette@crf.canon.fr * Copyright (C) 1999 valette@crf.canon.fr
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
* found in found in the file LICENSE in this distribution or at * found in found in the file LICENSE in this distribution or at
@@ -56,7 +56,7 @@ SPR_RO(DAR)
SPR_RO(DEAR_BOOKE) SPR_RO(DEAR_BOOKE)
SPR_RO(DEAR_405) SPR_RO(DEAR_405)
uint32_t ppc_exc_get_DAR_dflt() uint32_t ppc_exc_get_DAR_dflt(void)
{ {
if ( ppc_cpu_is_60x() ) if ( ppc_cpu_is_60x() )
return _read_DAR(); return _read_DAR();
@@ -71,7 +71,7 @@ uint32_t ppc_exc_get_DAR_dflt()
return 0xdeadbeef; return 0xdeadbeef;
} }
uint32_t (*ppc_exc_get_DAR)() = ppc_exc_get_DAR_dflt; uint32_t (*ppc_exc_get_DAR)(void) = ppc_exc_get_DAR_dflt;
void void
BSP_printStackTrace(BSP_Exception_frame* excPtr) BSP_printStackTrace(BSP_Exception_frame* excPtr)

View File

@@ -6,7 +6,7 @@
/* Use during early init for initializing the e500 IVOR/IVPR registers */ /* Use during early init for initializing the e500 IVOR/IVPR registers */
void void
e500_setup_raw_exceptions() e500_setup_raw_exceptions(void)
{ {
unsigned c; unsigned c;
if ( ! (c = ppc_cpu_is_bookE()) || PPC_BOOKE_405 == c ) if ( ! (c = ppc_cpu_is_bookE()) || PPC_BOOKE_405 == c )