localboot: Include header files for function prototypes
authorMatt Fleming <matt.fleming@intel.com>
Tue, 3 Apr 2012 11:58:52 +0000 (12:58 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 17 Apr 2012 09:58:35 +0000 (10:58 +0100)
... to avoid the following warnings,

localboot.c: In function ‘local_boot’:
localboot.c:38:2: warning: implicit declaration of function ‘vgaclearmode’
localboot.c:40:2: warning: implicit declaration of function ‘writestr’
localboot.c:41:2: warning: implicit declaration of function ‘crlf’
localboot.c:42:2: warning: implicit declaration of function ‘cleanup_hardware’
localboot.c:76:2: warning: implicit declaration of function ‘memcpy’

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/localboot.c

index c6993fc..ff21e99 100644 (file)
  * -----------------------------------------------------------------------
  */
 #include <sys/cpu.h>
+#include <sys/io.h>
+#include <string.h>
 #include <core.h>
+#include <fs.h>
+#include <bios.h>
 
 /*
  * localboot.c
@@ -73,7 +77,7 @@ void local_boot(int16_t ax)
                kaboom();
 
        cli();                  /* Abandon hope, ye who enter here */
-       memcpy(0x07C00, trackbuf, 512);
+       memcpy((void *)0x07C00, trackbuf, 512);
 
        ireg.esi.w[0] = OFFS(trackbuf);
        ireg.edi.w[0] = 0x07C00;