patch-2.4.0-test5 linux/arch/sh/boot/compressed/misc.c

Next file: linux/arch/sh/config.in
Previous file: linux/arch/sh/boot/compressed/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/arch/sh/boot/compressed/misc.c linux/arch/sh/boot/compressed/misc.c
@@ -7,10 +7,15 @@
  * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
  *
  * Adapted for SH by Stuart Menefy, Aug 1999
+ *
+ * Modified to use standard LinuxSH BIOS by Greg Banks 7Jul2000
  */
 
 #include <linux/config.h>
 #include <asm/uaccess.h>
+#ifdef CONFIG_SH_STANDARD_BIOS
+#include <asm/sh_bios.h>
+#endif
 
 /*
  * gzip declarations
@@ -128,12 +133,7 @@
 	free_mem_ptr = (long) *ptr;
 }
 
-#ifdef CONFIG_DEBUG_KERNEL_WITH_GDB_STUB
-#define IN_GDB 1
-#endif
-#include <asm/io.h>
-#include "../../../../drivers/char/sh-sci.h"
-
+#ifdef CONFIG_SH_STANDARD_BIOS
 static int strlen(const char *s)
 {
 	int i = 0;
@@ -145,8 +145,14 @@
 
 void puts(const char *s)
 {
-	put_string(s, strlen(s));
+	sh_bios_console_write(s, strlen(s));
+}
+#else
+void puts(const char *s)
+{
+  /* This should be updated to use the sh-sci routines */
 }
+#endif
 
 void* memset(void* s, int c, size_t n)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)