|
@@ -12,6 +12,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include "misc.h"
|
|
#include "misc.h"
|
|
|
|
+#include "error.h"
|
|
#include "../string.h"
|
|
#include "../string.h"
|
|
#include "../voffset.h"
|
|
#include "../voffset.h"
|
|
|
|
|
|
@@ -36,7 +37,6 @@
|
|
#define memmove memmove
|
|
#define memmove memmove
|
|
|
|
|
|
/* Functions used by the included decompressor code below. */
|
|
/* Functions used by the included decompressor code below. */
|
|
-static void error(char *m);
|
|
|
|
void *memmove(void *dest, const void *src, size_t n);
|
|
void *memmove(void *dest, const void *src, size_t n);
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -169,22 +169,6 @@ void __puthex(unsigned long value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-void warn(char *m)
|
|
|
|
-{
|
|
|
|
- error_putstr("\n\n");
|
|
|
|
- error_putstr(m);
|
|
|
|
- error_putstr("\n\n");
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static void error(char *m)
|
|
|
|
-{
|
|
|
|
- warn(m);
|
|
|
|
- error_putstr(" -- System halted");
|
|
|
|
-
|
|
|
|
- while (1)
|
|
|
|
- asm("hlt");
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#if CONFIG_X86_NEED_RELOCS
|
|
#if CONFIG_X86_NEED_RELOCS
|
|
static void handle_relocations(void *output, unsigned long output_len)
|
|
static void handle_relocations(void *output, unsigned long output_len)
|
|
{
|
|
{
|