diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-18 21:17:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-18 21:17:06 +0000 |
commit | b679966dc97836271d38795af83091008330302e (patch) | |
tree | ff69663bc771dd86e9508f03a3fe47a06c0890b1 /c/src/lib/libcpu/powerpc/mpc6xx | |
parent | 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-b679966dc97836271d38795af83091008330302e.tar.bz2 |
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.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc6xx')
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c | 4 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.h | 24 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c | 8 |
3 files changed, 14 insertions, 22 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c index 3436256594..4f430cefc1 100644 --- a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c +++ b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c @@ -231,7 +231,7 @@ dumpPteg (unsigned long vsid, unsigned long pi, unsigned long hash); unsigned long triv121IsRangeMapped (long vsid, unsigned long start, unsigned long end); -static void do_dssall (); +static void do_dssall (void); /**************************** STATIC VARIABLES ****************************/ @@ -899,7 +899,7 @@ triv121UnmapEa (unsigned long ea) * Just do it to be on the safe side... */ static void -do_dssall () +do_dssall (void) { /* Before changing BATs, 'dssall' must be issued. * We check MSR for MSR_VE and issue a 'dssall' if diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.h b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.h index 54465e06bf..6b9497106d 100644 --- a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.h +++ b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.h @@ -219,20 +219,17 @@ triv121PgTblSDR1(Triv121PgTbl pgTbl); * may have to switch overlapping BATs OFF in order * for the page table mappings to take effect. */ -void -triv121PgTblActivate(Triv121PgTbl pgTbl); +void triv121PgTblActivate(Triv121PgTbl pgTbl); /* Find the PTE for a EA and print its contents to stdout * RETURNS: pte for EA or NULL if no entry was found. */ -APte -triv121DumpEa(unsigned long ea); +APte triv121DumpEa(unsigned long ea); /* Find and return a PTE for a vsid/pi combination * RETURNS: pte or NULL if no entry was found */ -APte -triv121FindPte(unsigned long vsid, unsigned long pi); +APte triv121FindPte(unsigned long vsid, unsigned long pi); /* * 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 * mapping existed. */ -APte -triv121UnmapEa(unsigned long ea); +APte triv121UnmapEa(unsigned long 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. */ -APte -triv121ChangeEaAttributes(unsigned long ea, int wimg, int pp); +APte triv121ChangeEaAttributes(unsigned long ea, int wimg, int pp); /* Make the whole page table writable * NOTES: If the page table has not been initialized yet, * this routine has no effect (i.e., after * initialization the page table will still be read-only). */ -void -triv121MakePgTblRW(); +void triv121MakePgTblRW(void); /* Make the whole page table read-only */ -void -triv121MakePgTblRO(); +void triv121MakePgTblRO(void); /* Dump a pte to stdout */ -long -triv121DumpPte(APte pte); +long triv121DumpPte(APte pte); #endif diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c index f32ebca34b..032482aef2 100644 --- a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c +++ b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c @@ -28,7 +28,7 @@ unsigned clicks_overhead = 0; * Timer Get overhead */ -int Timer_get_clicks_overhead() +int Timer_get_clicks_overhead(void) { uint64_t clicks; @@ -42,7 +42,7 @@ int Timer_get_clicks_overhead() /* * Timer_initialize */ -void Timer_initialize() +void Timer_initialize(void) { /* @@ -58,7 +58,7 @@ void Timer_initialize() * Read_timer */ -int Read_timer() +int Read_timer(void) { uint64_t total64; uint32_t total; @@ -77,7 +77,7 @@ int Read_timer() return (int) BSP_Convert_decrementer(total - clicks_overhead); } -unsigned long long Read_long_timer() +unsigned long long Read_long_timer(void) { uint64_t total64; |