aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boot
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-28 04:26:37 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-28 04:26:37 -0500
commitabec86a80247ab3a40d2afc9c8e8c26efcab2391 (patch)
treeb37964ff8898234a0250a6f13c42a9cea1fb045b /arch/sh/boot
parentd627a2ebd1a303aa4ac1962c553d1e8738735d01 (diff)
sh: Kill off superfluous sh_bios references from compressed loader.
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>
Diffstat (limited to 'arch/sh/boot')
-rw-r--r--arch/sh/boot/compressed/Makefile4
-rw-r--r--arch/sh/boot/compressed/misc.c19
2 files changed, 0 insertions, 23 deletions
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile
index 6b95a2a48267..5d660b90943b 100644
--- a/arch/sh/boot/compressed/Makefile
+++ b/arch/sh/boot/compressed/Makefile
@@ -11,10 +11,6 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz \
11 11
12OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o 12OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o
13 13
14ifdef CONFIG_SH_STANDARD_BIOS
15OBJECTS += $(obj)/../../kernel/sh_bios.o
16endif
17
18# 14#
19# IMAGE_OFFSET is the load offset of the compression loader 15# IMAGE_OFFSET is the load offset of the compression loader
20# 16#
diff --git a/arch/sh/boot/compressed/misc.c b/arch/sh/boot/compressed/misc.c
index 4b319e9e4f88..d509a5050623 100644
--- a/arch/sh/boot/compressed/misc.c
+++ b/arch/sh/boot/compressed/misc.c
@@ -14,7 +14,6 @@
14#include <asm/uaccess.h> 14#include <asm/uaccess.h>
15#include <asm/addrspace.h> 15#include <asm/addrspace.h>
16#include <asm/page.h> 16#include <asm/page.h>
17#include <asm/sh_bios.h>
18 17
19/* 18/*
20 * gzip declarations 19 * gzip declarations
@@ -66,29 +65,11 @@ static unsigned long free_mem_end_ptr;
66#include "../../../../lib/decompress_unlzo.c" 65#include "../../../../lib/decompress_unlzo.c"
67#endif 66#endif
68 67
69#ifdef CONFIG_SH_STANDARD_BIOS
70size_t strlen(const char *s)
71{
72 int i = 0;
73
74 while (*s++)
75 i++;
76 return i;
77}
78
79int puts(const char *s)
80{
81 int len = strlen(s);
82 sh_bios_console_write(s, len);
83 return len;
84}
85#else
86int puts(const char *s) 68int puts(const char *s)
87{ 69{
88 /* This should be updated to use the sh-sci routines */ 70 /* This should be updated to use the sh-sci routines */
89 return 0; 71 return 0;
90} 72}
91#endif
92 73
93void* memset(void* s, int c, size_t n) 74void* memset(void* s, int c, size_t n)
94{ 75{