diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-26 10:30:10 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-26 10:45:14 -0400 |
commit | a43acfbbc8653f70b8da4c64ec534fb45065a2ee (patch) | |
tree | 925a99f53136804e2ce8f112653bdd9ef5feab5f /arch | |
parent | 5846cc608fd42cd3645ff9f841888832c6ef9b6e (diff) |
microblaze_mmu_v2: Alocate TLB for early console
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/include/asm/setup.h | 10 | ||||
-rw-r--r-- | arch/microblaze/kernel/early_printk.c | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/setup.h b/arch/microblaze/include/asm/setup.h index 9b98e8e6abae..27f8dafd8c34 100644 --- a/arch/microblaze/include/asm/setup.h +++ b/arch/microblaze/include/asm/setup.h | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu> | 2 | * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> |
3 | * Copyright (C) 2007-2009 PetaLogix | ||
3 | * Copyright (C) 2006 Atmark Techno, Inc. | 4 | * Copyright (C) 2006 Atmark Techno, Inc. |
4 | * | 5 | * |
5 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
@@ -18,7 +19,6 @@ | |||
18 | extern unsigned int boot_cpuid; /* move to smp.h */ | 19 | extern unsigned int boot_cpuid; /* move to smp.h */ |
19 | 20 | ||
20 | extern char cmd_line[COMMAND_LINE_SIZE]; | 21 | extern char cmd_line[COMMAND_LINE_SIZE]; |
21 | # endif/* __KERNEL__ */ | ||
22 | 22 | ||
23 | void early_printk(const char *fmt, ...); | 23 | void early_printk(const char *fmt, ...); |
24 | 24 | ||
@@ -30,6 +30,11 @@ void setup_heartbeat(void); | |||
30 | 30 | ||
31 | unsigned long long sched_clock(void); | 31 | unsigned long long sched_clock(void); |
32 | 32 | ||
33 | # ifdef CONFIG_MMU | ||
34 | extern void mmu_reset(void); | ||
35 | extern void early_console_reg_tlb_alloc(unsigned int addr); | ||
36 | # endif /* CONFIG_MMU */ | ||
37 | |||
33 | void time_init(void); | 38 | void time_init(void); |
34 | void init_IRQ(void); | 39 | void init_IRQ(void); |
35 | void machine_early_init(const char *cmdline, unsigned int ram, | 40 | void machine_early_init(const char *cmdline, unsigned int ram, |
@@ -40,5 +45,6 @@ void machine_shutdown(void); | |||
40 | void machine_halt(void); | 45 | void machine_halt(void); |
41 | void machine_power_off(void); | 46 | void machine_power_off(void); |
42 | 47 | ||
48 | # endif/* __KERNEL__ */ | ||
43 | # endif /* __ASSEMBLY__ */ | 49 | # endif /* __ASSEMBLY__ */ |
44 | #endif /* _ASM_MICROBLAZE_SETUP_H */ | 50 | #endif /* _ASM_MICROBLAZE_SETUP_H */ |
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c index 4b0f0fdb9ca0..7de84923ba07 100644 --- a/arch/microblaze/kernel/early_printk.c +++ b/arch/microblaze/kernel/early_printk.c | |||
@@ -87,6 +87,9 @@ int __init setup_early_printk(char *opt) | |||
87 | base_addr = early_uartlite_console(); | 87 | base_addr = early_uartlite_console(); |
88 | if (base_addr) { | 88 | if (base_addr) { |
89 | early_console_initialized = 1; | 89 | early_console_initialized = 1; |
90 | #ifdef CONFIG_MMU | ||
91 | early_console_reg_tlb_alloc(base_addr); | ||
92 | #endif | ||
90 | early_printk("early_printk_console is enabled at 0x%08x\n", | 93 | early_printk("early_printk_console is enabled at 0x%08x\n", |
91 | base_addr); | 94 | base_addr); |
92 | 95 | ||