aboutsummaryrefslogtreecommitdiff
path: root/slof/ppc64.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-09-09 21:51:59 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2016-09-14 17:50:39 +1000
commit488569289854dba3f6cf63dcbdc2629c44258c0f (patch)
tree7993007f81eb5f025ee4f429afe9a68d0e9cb370 /slof/ppc64.c
parentb3fde41bc75269df2e30a7dfc0645ca239eb2786 (diff)
downloadSLOF-488569289854dba3f6cf63dcbdc2629c44258c0f.zip
SLOF-488569289854dba3f6cf63dcbdc2629c44258c0f.tar.gz
SLOF-488569289854dba3f6cf63dcbdc2629c44258c0f.tar.bz2
paflof: Use CFLAGS from make.rules instead of completely redefining them
It's cumbersome to change the CFLAGS in multiple places in case they have to be changed. So let's use the global CFLAGS from make.rules for building Paflof, too. Since the global rules use some additional compiler warning flags, fix the now occuring compiler warnings in the Paflof code, too (mostly about missing or wrong prototypes). Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'slof/ppc64.c')
-rw-r--r--slof/ppc64.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/slof/ppc64.c b/slof/ppc64.c
index 619d95e..4fc92b9 100644
--- a/slof/ppc64.c
+++ b/slof/ppc64.c
@@ -10,8 +10,11 @@
* IBM Corporation - initial implementation
*****************************************************************************/
+#include <unistd.h>
#include <cpu.h>
+void asm_cout(long Character,long UART,long NVRAM);
+
/* the exception frame should be page aligned
* the_exception_frame is used by the handler to store a copy of all
* registers after an exception; this copy can then be used by paflof's
@@ -45,8 +48,7 @@ extern void io_putchar(unsigned char);
extern unsigned long call_c(cell arg0, cell arg1, cell arg2, cell entry);
-long
-writeLogByte_wrapper(long x, long y)
+static long writeLogByte_wrapper(long x, long y)
{
unsigned long result;
@@ -66,8 +68,7 @@ writeLogByte_wrapper(long x, long y)
* @param count number of bytes to be written
* @return the number of bytes that have been written successfully
*/
-int
-write(int fd, const void *buf, int count)
+ssize_t write(int fd, const void *buf, size_t count)
{
int i;
char *ptr = (char *)buf;