forked from Imagelibrary/rtems
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:
@@ -109,24 +109,24 @@ extern unsigned ppc_exc_min_prolog_size[];
|
||||
extern unsigned ppc_exc_tgpr_clr_prolog_size[];
|
||||
|
||||
/* 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_sync_tmpl_std();
|
||||
extern void ppc_exc_min_prolog_async_tmpl_p405_crit();
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_p405_crit();
|
||||
extern void ppc_exc_min_prolog_async_tmpl_bookE_crit();
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_bookE_crit();
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_e500_mchk();
|
||||
extern void ppc_exc_min_prolog_async_tmpl_e500_mchk();
|
||||
extern void ppc_exc_min_prolog_async_tmpl_std(void);
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_std(void);
|
||||
extern void ppc_exc_min_prolog_async_tmpl_p405_crit(void);
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_p405_crit(void);
|
||||
extern void ppc_exc_min_prolog_async_tmpl_bookE_crit(void);
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_bookE_crit(void);
|
||||
extern void ppc_exc_min_prolog_sync_tmpl_e500_mchk(void);
|
||||
extern void ppc_exc_min_prolog_async_tmpl_e500_mchk(void);
|
||||
|
||||
/* 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
|
||||
* the offset address. This must only be used for classic, synchronous
|
||||
* 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
|
||||
@@ -136,7 +136,7 @@ extern void ppc_exc_min_prolog_auto_packed();
|
||||
* across PPC families so we need assistance from
|
||||
* CPU support
|
||||
*/
|
||||
extern uint32_t (*ppc_exc_get_DAR)();
|
||||
extern uint32_t (*ppc_exc_get_DAR)(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This include file describe the data structure and the functions implemented
|
||||
* 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
|
||||
* 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_405)
|
||||
|
||||
uint32_t ppc_exc_get_DAR_dflt()
|
||||
uint32_t ppc_exc_get_DAR_dflt(void)
|
||||
{
|
||||
if ( ppc_cpu_is_60x() )
|
||||
return _read_DAR();
|
||||
@@ -71,7 +71,7 @@ uint32_t ppc_exc_get_DAR_dflt()
|
||||
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
|
||||
BSP_printStackTrace(BSP_Exception_frame* excPtr)
|
||||
|
||||
Reference in New Issue
Block a user