-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 250950 b: refs/heads/master c: d634f19 h: refs/heads/master v: v3
- Loading branch information
Richard Weinberger
authored and
Linus Torvalds
committed
May 25, 2011
1 parent
b1c0d73
commit 6ad017b
Showing
6 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2525e70d492f8c7bbe1292db8fcd973607a56ac6 | ||
refs/heads/master: d634f194d4e2e58d57927c812aca097e67a2287d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (C) 2011 Richard Weinberger <richrd@nod.at> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/console.h> | ||
#include <linux/init.h> | ||
#include "os.h" | ||
|
||
static void early_console_write(struct console *con, const char *s, unsigned int n) | ||
{ | ||
um_early_printk(s, n); | ||
} | ||
|
||
static struct console early_console = { | ||
.name = "earlycon", | ||
.write = early_console_write, | ||
.flags = CON_BOOT, | ||
.index = -1, | ||
}; | ||
|
||
static int __init setup_early_printk(char *buf) | ||
{ | ||
register_console(&early_console); | ||
|
||
return 0; | ||
} | ||
|
||
early_param("earlyprintk", setup_early_printk); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters