[rtems commit] powerpc/shared/bootloader: Fix warnings

Joel Sherrill joel at rtems.org
Sun Oct 19 21:51:57 UTC 2014


Module:    rtems
Branch:    master
Commit:    f33e6c06036ef618adc54763f7a48836844dcb0c
Changeset: http://git.rtems.org/rtems/commit/?id=f33e6c06036ef618adc54763f7a48836844dcb0c

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Oct 17 10:21:18 2014 -0500

powerpc/shared/bootloader: Fix warnings

---

 .../powerpc/shared/bootloader/qemu_fakeres.c       |    2 +-
 .../powerpc/shared/bootloader/qemu_fakerom.S       |    3 +++
 .../lib/libbsp/powerpc/shared/residual/residual.h  |    7 +++++++
 3 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
index e8944b9..51f03a0 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakeres.c
@@ -119,7 +119,7 @@ nvram_addr(uint16_t addr)
 }
 
 /* Read a 32-bit (big-endian) work from NVRAM */
-uint32_t
+static uint32_t
 nvram_rdl_be(uint16_t addr)
 {
 int i;
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
index 7ed9739..b77c3bd 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/qemu_fakerom.S
@@ -1,6 +1,9 @@
 /* A fake 'bios' which does nothing but move a kernel image 
  * to RAM address zero and then starts that...
  */
+
+#include <bsp/residual.h>
+
 #define LD_CACHE_LINE_SIZE  5
 #define INIT_STACK (0x100 - 16) /* 16-byte/svr4 aligned */
 
diff --git a/c/src/lib/libbsp/powerpc/shared/residual/residual.h b/c/src/lib/libbsp/powerpc/shared/residual/residual.h
index 3c6ae37..1bf1a34 100644
--- a/c/src/lib/libbsp/powerpc/shared/residual/residual.h
+++ b/c/src/lib/libbsp/powerpc/shared/residual/residual.h
@@ -16,6 +16,8 @@
 
 #ifndef ASM
 
+#include <stdint.h>
+
 #define MAX_CPUS 32                     /* These should be set to the maximum */
 #define MAX_MEMS 64                     /* number possible for this system.   */
 #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,
 						    unsigned packet_type,
 						    int n);
+/*
+ * Prototypes for methods called only from .S for dependency tracking
+ */
+uint32_t res_copy(void);
+
 #endif /* ASM */
 #endif  /* ndef _RESIDUAL_ */



More information about the vc mailing list