Uglyhack for earlydebug printascii
diff --git a/init/main.c b/init/main.c
index 0ee0ee7..900f55c 100644
--- a/init/main.c
+++ b/init/main.c
@@ -904,6 +904,13 @@ void start_kernel(void)
debug_objects_early_init();
init_vmlinux_build_id();
+#if defined(CONFIG_ARM) && defined(CONFIG_DEBUG_LL)
+ {
+ extern void printascii(char *);
+ printascii("start_kernel\n");
+ }
+#endif
+
cgroup_init_early();
local_irq_disable();
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 0efbcdd..9830f8a 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2344,6 +2344,19 @@ int vprintk_store(int facility, int level,
r.info->caller_id = caller_id;
if (dev_info)
memcpy(&r.info->dev_info, dev_info, sizeof(r.info->dev_info));
+#if defined(CONFIG_ARM) && defined(CONFIG_DEBUG_LL)
+ {
+ static char foo[1024];
+ extern void printascii(char *);
+ int len;
+
+ len = text_len + trunc_msg_len;
+ memcpy(foo, &r.text_buf[0], len);
+ foo[len] = '\n';
+ foo[len+1] = '\0';
+ printascii(foo);
+ }
+#endif
/* A message without a trailing newline can be continued. */
if (!(flags & LOG_NEWLINE))