ia64/linux-2.6.18-xen.hg

view arch/mips/cobalt/console.c @ 452:c7ed6fe5dca0

kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:55:18 2008 +0000 (2008-02-28)
parents 831230e53067
children
line source
1 /*
2 * (C) P. Horton 2006
3 */
5 #include <linux/init.h>
6 #include <linux/kernel.h>
7 #include <linux/console.h>
8 #include <linux/serial_reg.h>
9 #include <asm/addrspace.h>
10 #include <asm/mach-cobalt/cobalt.h>
12 static void putchar(int c)
13 {
14 if(c == '\n')
15 putchar('\r');
17 while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE))
18 ;
20 COBALT_UART[UART_TX] = c;
21 }
23 static void cons_write(struct console *c, const char *s, unsigned n)
24 {
25 while(n-- && *s)
26 putchar(*s++);
27 }
29 static struct console cons_info =
30 {
31 .name = "uart",
32 .write = cons_write,
33 .flags = CON_PRINTBUFFER | CON_BOOT,
34 .index = -1,
35 };
37 void __init cobalt_early_console(void)
38 {
39 register_console(&cons_info);
41 printk("Cobalt: early console registered\n");
42 }
44 void __init disable_early_printk(void)
45 {
46 unregister_console(&cons_info);
47 }