ia64/xen-unstable

view linux-2.6-xen-sparse/include/xen/foreign_page.h @ 13341:3040ba0f2d3d

When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 09 13:24:45 2007 +0000 (2007-01-09)
parents 48c0f5489d44
children
line source
1 /******************************************************************************
2 * foreign_page.h
3 *
4 * Provide a "foreign" page type, that is owned by a foreign allocator and
5 * not the normal buddy allocator in page_alloc.c
6 *
7 * Copyright (c) 2004, K A Fraser
8 */
10 #ifndef __ASM_XEN_FOREIGN_PAGE_H__
11 #define __ASM_XEN_FOREIGN_PAGE_H__
13 #define PG_foreign PG_arch_1
15 #define PageForeign(page) test_bit(PG_foreign, &(page)->flags)
17 #define SetPageForeign(page, dtor) do { \
18 set_bit(PG_foreign, &(page)->flags); \
19 (page)->mapping = (void *)dtor; \
20 } while (0)
22 #define ClearPageForeign(page) do { \
23 clear_bit(PG_foreign, &(page)->flags); \
24 (page)->mapping = NULL; \
25 } while (0)
27 #define PageForeignDestructor(page) \
28 ( (void (*) (struct page *)) (page)->mapping )
30 #endif /* __ASM_XEN_FOREIGN_PAGE_H__ */