ia64/linux-2.6.18-xen.hg

view arch/mips/arc/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 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
7 * Compability with board caches, Ulf Carlsson
8 */
9 #include <linux/kernel.h>
10 #include <asm/sgialib.h>
11 #include <asm/bcache.h>
13 /*
14 * IP22 boardcache is not compatible with board caches. Thus we disable it
15 * during romvec action. Since r4xx0.c is always compiled and linked with your
16 * kernel, this shouldn't cause any harm regardless what MIPS processor you
17 * have.
18 *
19 * The ARC write and read functions seem to interfere with the serial lines
20 * in some way. You should be careful with them.
21 */
23 void prom_putchar(char c)
24 {
25 ULONG cnt;
26 CHAR it = c;
28 bc_disable();
29 ArcWrite(1, &it, 1, &cnt);
30 bc_enable();
31 }
33 char prom_getchar(void)
34 {
35 ULONG cnt;
36 CHAR c;
38 bc_disable();
39 ArcRead(0, &c, 1, &cnt);
40 bc_enable();
42 return c;
43 }
45 void prom_printf(char *fmt, ...)
46 {
47 va_list args;
48 char ppbuf[1024];
49 char *bptr;
51 va_start(args, fmt);
52 vsprintf(ppbuf, fmt, args);
54 bptr = ppbuf;
56 while (*bptr != 0) {
57 if (*bptr == '\n')
58 prom_putchar('\r');
60 prom_putchar(*bptr++);
61 }
62 va_end(args);
63 }