sh: Kill off superfluous sh_bios references from compressed loader.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 28 Jan 2010 09:26:37 +0000 (18:26 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 28 Jan 2010 09:26:37 +0000 (18:26 +0900)
The VBR value needs to be initialized in order for any of the bios
trapping to work, and as we don't do that until slightly later in the
boot process, this has no real chance of working.

The only reason for using this in the past was due to the fact that early
serial initialization wasn't possible, but now that early sh-sci is
supported by everyone, there's no longer any reason to support the
sh_bios hacks in the first place. Given that, we just kill off the
references completely.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boot/compressed/Makefile
arch/sh/boot/compressed/misc.c

index 6b95a2a48267288b39fd98d165aa9ca926216b1f..5d660b90943b05bb4662ca9209fa1957da60192a 100644 (file)
@@ -11,10 +11,6 @@ targets              := vmlinux vmlinux.bin vmlinux.bin.gz \
 
 OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o
 
-ifdef CONFIG_SH_STANDARD_BIOS
-OBJECTS += $(obj)/../../kernel/sh_bios.o
-endif
-
 #
 # IMAGE_OFFSET is the load offset of the compression loader
 #
index 4b319e9e4f886278647c1d4137a18029358e81d0..d509a50506235c612713f778c83b49a0d0f9f7ac 100644 (file)
@@ -14,7 +14,6 @@
 #include <asm/uaccess.h>
 #include <asm/addrspace.h>
 #include <asm/page.h>
-#include <asm/sh_bios.h>
 
 /*
  * gzip declarations
@@ -66,29 +65,11 @@ static unsigned long free_mem_end_ptr;
 #include "../../../../lib/decompress_unlzo.c"
 #endif
 
-#ifdef CONFIG_SH_STANDARD_BIOS
-size_t strlen(const char *s)
-{
-       int i = 0;
-
-       while (*s++)
-               i++;
-       return i;
-}
-
-int puts(const char *s)
-{
-       int len = strlen(s);
-       sh_bios_console_write(s, len);
-       return len;
-}
-#else
 int puts(const char *s)
 {
        /* This should be updated to use the sh-sci routines */
        return 0;
 }
-#endif
 
 void* memset(void* s, int c, size_t n)
 {
This page took 0.025296 seconds and 5 git commands to generate.