summaryrefslogtreecommitdiffstats
path: root/target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-14 20:42:33 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-14 20:42:33 +0000
commit2d581e604771771dd63946cbed17d6b7ec79bd9d (patch)
tree74597f2d6eef2e7a6d6338c978b8910f9f947151 /target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch
parent8378beaa85ae5e6951d9a7a6c7d1928f5d150653 (diff)
add the 'goldfish' target, useful for experimenting with virtual phone hardware (includes the emulator)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch')
-rw-r--r--target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch b/target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch
new file mode 100644
index 000000000..6a74a3bf6
--- /dev/null
+++ b/target/linux/goldfish/patches-2.6.30/0042-ARM-Make-low-level-printk-work.patch
@@ -0,0 +1,36 @@
+From 0c61b75f9da1a0889959a0f9bd0b8b63f936ddf3 Mon Sep 17 00:00:00 2001
+From: Tony Lindgren <tony@atomide.com>
+Date: Mon, 9 May 2005 14:10:26 -0700
+Subject: [PATCH 042/134] ARM: Make low-level printk work
+
+Makes low-level printk work.
+
+Signed-off-by: Tony Lindgren <tony@atomide.com>
+---
+ kernel/printk.c | 8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+--- a/kernel/printk.c
++++ b/kernel/printk.c
+@@ -45,6 +45,10 @@ void asmlinkage __attribute__((weak)) ea
+
+ #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
+
++#ifdef CONFIG_DEBUG_LL
++extern void printascii(char *);
++#endif
++
+ /* printk's without a loglevel use this.. */
+ #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
+
+@@ -687,6 +691,10 @@ asmlinkage int vprintk(const char *fmt,
+ sizeof(printk_buf) - printed_len, fmt, args);
+
+
++#ifdef CONFIG_DEBUG_LL
++ printascii(printk_buf);
++#endif
++
+ /*
+ * Copy the output into log_buf. If the caller didn't provide
+ * appropriate log level tags, we insert them here