aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-03 12:58:52 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:58:35 +0100
commitfde7c70aece27186cc636df51d25c1099ab7e663 (patch)
tree7878b9bc577a9df322f0f47cb6574ac3690b4857
parentb428530fead73c7c15d9dce78729b7bf94658a7d (diff)
downloadsyslinux-fde7c70aece27186cc636df51d25c1099ab7e663.tar.gz
syslinux-fde7c70aece27186cc636df51d25c1099ab7e663.tar.xz
syslinux-fde7c70aece27186cc636df51d25c1099ab7e663.zip
localboot: Include header files for function prototypes
... 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>
-rw-r--r--core/localboot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/localboot.c b/core/localboot.c
index c6993fc0..ff21e991 100644
--- a/core/localboot.c
+++ b/core/localboot.c
@@ -11,7 +11,11 @@
* -----------------------------------------------------------------------
*/
#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;