*/
#include "misc.h"
+#include "error.h"
#include "../string.h"
#include "../voffset.h"
#define memmove memmove
/* Functions used by the included decompressor code below. */
-static void error(char *m);
void *memmove(void *dest, const void *src, size_t n);
/*
}
}
-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
static void handle_relocations(void *output, unsigned long output_len)
{
int *reloc;
unsigned long delta, map, ptr;
unsigned long min_addr = (unsigned long)output;
- unsigned long max_addr = min_addr + output_len;
+ unsigned long max_addr = min_addr + (VO___bss_start - VO__text);
/*
* Calculate the delta between where vmlinux was linked to load