powerpc/shared/bootloader: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-17 10:21:18 -05:00
parent 04d3761d54
commit f33e6c0603
3 changed files with 11 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ nvram_addr(uint16_t addr)
} }
/* Read a 32-bit (big-endian) work from NVRAM */ /* Read a 32-bit (big-endian) work from NVRAM */
uint32_t static uint32_t
nvram_rdl_be(uint16_t addr) nvram_rdl_be(uint16_t addr)
{ {
int i; int i;

View File

@@ -1,6 +1,9 @@
/* A fake 'bios' which does nothing but move a kernel image /* A fake 'bios' which does nothing but move a kernel image
* to RAM address zero and then starts that... * to RAM address zero and then starts that...
*/ */
#include <bsp/residual.h>
#define LD_CACHE_LINE_SIZE 5 #define LD_CACHE_LINE_SIZE 5
#define INIT_STACK (0x100 - 16) /* 16-byte/svr4 aligned */ #define INIT_STACK (0x100 - 16) /* 16-byte/svr4 aligned */

View File

@@ -16,6 +16,8 @@
#ifndef ASM #ifndef ASM
#include <stdint.h>
#define MAX_CPUS 32 /* These should be set to the maximum */ #define MAX_CPUS 32 /* These should be set to the maximum */
#define MAX_MEMS 64 /* number possible for this system. */ #define MAX_MEMS 64 /* number possible for this system. */
#define MAX_DEVICES 256 /* Changing these will change the */ #define MAX_DEVICES 256 /* Changing these will change the */
@@ -345,5 +347,10 @@ extern PnP_TAG_PACKET *PnP_find_small_vendor_packet(unsigned char *p,
extern PnP_TAG_PACKET *PnP_find_large_vendor_packet(unsigned char *p, extern PnP_TAG_PACKET *PnP_find_large_vendor_packet(unsigned char *p,
unsigned packet_type, unsigned packet_type,
int n); int n);
/*
* Prototypes for methods called only from .S for dependency tracking
*/
uint32_t res_copy(void);
#endif /* ASM */ #endif /* ASM */
#endif /* ndef _RESIDUAL_ */ #endif /* ndef _RESIDUAL_ */