Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22995
b: refs/heads/master
c: 99b7de3
h: refs/heads/master
i:
  22993: d25b343
  22991: 551430d
v: v3
  • Loading branch information
Stas Sergeev authored and Linus Torvalds committed Mar 23, 2006
1 parent 26fe450 commit a6263a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bed51cd17464433a0c77afc8a5150e51d3da37d
refs/heads/master: 99b7de33477882b86d54ce8ecbf90147f9d106d7
23 changes: 10 additions & 13 deletions trunk/arch/i386/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,16 @@ void __init setup_arch(char **cmdline_p)

parse_cmdline_early(cmdline_p);

#ifdef CONFIG_EARLY_PRINTK
{
char *s = strstr(*cmdline_p, "earlyprintk=");
if (s) {
setup_early_printk(strchr(s, '=') + 1);
printk("early console enabled\n");
}
}
#endif

max_low_pfn = setup_memory();

/*
Expand All @@ -1483,19 +1493,6 @@ void __init setup_arch(char **cmdline_p)
* NOTE: at this point the bootmem allocator is fully available.
*/

#ifdef CONFIG_EARLY_PRINTK
{
char *s = strstr(*cmdline_p, "earlyprintk=");
if (s) {
extern void setup_early_printk(char *);

setup_early_printk(strchr(s, '=') + 1);
printk("early console enabled\n");
}
}
#endif


dmi_scan_machine();

#ifdef CONFIG_X86_GENERICARCH
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86_64/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define MAX_XPOS max_xpos

static int max_ypos = 25, max_xpos = 80;
static int current_ypos = 1, current_xpos = 0;
static int current_ypos = 25, current_xpos = 0;

static void early_vga_write(struct console *con, const char *str, unsigned n)
{
Expand Down Expand Up @@ -244,6 +244,7 @@ int __init setup_early_printk(char *opt)
&& SCREEN_INFO.orig_video_isVGA == 1) {
max_xpos = SCREEN_INFO.orig_video_cols;
max_ypos = SCREEN_INFO.orig_video_lines;
current_ypos = max_ypos;
early_console = &early_vga_console;
} else if (!strncmp(buf, "simnow", 6)) {
simnow_init(buf + 6);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-i386/arch_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ extern void trap_init_hook(void);
extern void time_init_hook(void);
extern void mca_nmi_hook(void);

extern int setup_early_printk(char *);
extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));

#endif

0 comments on commit a6263a0

Please sign in to comment.