Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2008-08-16 05:46:28 +00:00
parent 41ba6c4ef3
commit 1b502424df
5 changed files with 10 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
#include <rtems/score/registers.h> #include <rtems/score/registers.h>
#include "cache_.h" #include "cache_.h"
void _CPU_disable_cache() { void _CPU_disable_cache(void) {
cr0 regCr0; cr0 regCr0;
regCr0.i = i386_get_cr0(); regCr0.i = i386_get_cr0();
@@ -22,7 +22,7 @@ void _CPU_disable_cache() {
* Enable the entire cache * Enable the entire cache
*/ */
void _CPU_enable_cache() { void _CPU_enable_cache(void) {
cr0 regCr0; cr0 regCr0;
regCr0.i = i386_get_cr0(); regCr0.i = i386_get_cr0();

View File

@@ -172,7 +172,7 @@ static const char * getmodel(int x86, int model)
return nbuf; return nbuf;
} }
void printCpuInfo() void printCpuInfo(void)
{ {
int i; int i;
static const char *x86_cap_flags[] = { static const char *x86_cap_flags[] = {

View File

@@ -42,7 +42,7 @@ extern uint32_t rtemsFreeMemStart;
/* /*
* Disable the paging * Disable the paging
*/ */
void _CPU_disable_paging() { void _CPU_disable_paging(void) {
cr0 regCr0; cr0 regCr0;
rtems_cache_flush_entire_data(); rtems_cache_flush_entire_data();
@@ -54,7 +54,7 @@ void _CPU_disable_paging() {
/* /*
* Enable the paging * Enable the paging
*/ */
void _CPU_enable_paging() { void _CPU_enable_paging(void) {
cr0 regCr0; cr0 regCr0;
regCr0.i = i386_get_cr0(); regCr0.i = i386_get_cr0();
@@ -68,7 +68,7 @@ void _CPU_enable_paging() {
* Initialize the paging with 1-to-1 mapping * Initialize the paging with 1-to-1 mapping
*/ */
int init_paging() { int init_paging(void) {
int memorySize; int memorySize;
int nbPages; int nbPages;

View File

@@ -146,7 +146,7 @@ typedef struct {
typedef void (*cpuExcHandlerType) (CPU_Exception_frame*); typedef void (*cpuExcHandlerType) (CPU_Exception_frame*);
extern cpuExcHandlerType _currentExcHandler; extern cpuExcHandlerType _currentExcHandler;
extern void rtems_exception_init_mngt(); extern void rtems_exception_init_mngt(void);
/* /*
* The following structure defines the set of information saved * The following structure defines the set of information saved

View File

@@ -149,7 +149,7 @@ static inline uint16_t i386_swap_u16(
* Added for pagination management * Added for pagination management
*/ */
static inline unsigned int i386_get_cr0() static inline unsigned int i386_get_cr0(void)
{ {
register unsigned int segment = 0; register unsigned int segment = 0;
@@ -163,7 +163,7 @@ static inline void i386_set_cr0(unsigned int segment)
asm volatile ( "movl %0,%%cr0" : "=r" (segment) : "0" (segment) ); asm volatile ( "movl %0,%%cr0" : "=r" (segment) : "0" (segment) );
} }
static inline unsigned int i386_get_cr2() static inline unsigned int i386_get_cr2(void)
{ {
register unsigned int segment = 0; register unsigned int segment = 0;
@@ -172,7 +172,7 @@ static inline unsigned int i386_get_cr2()
return segment; return segment;
} }
static inline unsigned int i386_get_cr3() static inline unsigned int i386_get_cr3(void)
{ {
register unsigned int segment = 0; register unsigned int segment = 0;