ia64/linux-2.6.18-xen.hg

view include/asm-v850/current.h @ 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 * include/asm-v850/current.h -- Current task
3 *
4 * Copyright (C) 2001,02 NEC Corporation
5 * Copyright (C) 2001,02 Miles Bader <miles@gnu.org>
6 *
7 * This file is subject to the terms and conditions of the GNU General
8 * Public License. See the file COPYING in the main directory of this
9 * archive for more details.
10 *
11 * Written by Miles Bader <miles@gnu.org>
12 */
14 #ifndef __V850_CURRENT_H__
15 #define __V850_CURRENT_H__
17 #ifndef __ASSEMBLY__ /* <linux/thread_info.h> is not asm-safe. */
18 #include <linux/thread_info.h>
19 #endif
21 #include <asm/macrology.h>
24 /* Register used to hold the current task pointer while in the kernel.
25 Any `call clobbered' register without a special meaning should be OK,
26 but check asm/v850/kernel/entry.S to be sure. */
27 #define CURRENT_TASK_REGNUM 16
28 #define CURRENT_TASK macrology_paste (r, CURRENT_TASK_REGNUM)
31 #ifdef __ASSEMBLY__
33 /* Put a pointer to the current task structure into REG. */
34 #define GET_CURRENT_TASK(reg) \
35 GET_CURRENT_THREAD(reg); \
36 ld.w TI_TASK[reg], reg
38 #else /* !__ASSEMBLY__ */
40 /* A pointer to the current task. */
41 register struct task_struct *current \
42 __asm__ (macrology_stringify (CURRENT_TASK));
44 #endif /* __ASSEMBLY__ */
47 #endif /* _V850_CURRENT_H */