ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-xen/foreign_page.h @ 8534:da7873110bbb

Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 09 19:46:46 2006 +0100 (2006-01-09)
parents 61b3b357d827
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__ */
32 /*
33 * Local variables:
34 * c-file-style: "linux"
35 * indent-tabs-mode: t
36 * c-indent-level: 8
37 * c-basic-offset: 8
38 * tab-width: 8
39 * End:
40 */