fixmap.h (7eef4091a653c243a87e5375c54504cc03bec4d8) | fixmap.h (e7300d04bd0809eb7ea10a2ed8c729459f816e36) |
---|---|
1/* 2 * fixmap.h: compile-time virtual memory allocation 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1998 Ingo Molnar --- 53 unchanged lines hidden (view full) --- 62 63/* 64 * used by vmalloc.c. 65 * 66 * Leave one empty page between vmalloc'ed areas and 67 * the start of the fixmap, and leave one page empty 68 * at the top of mem.. 69 */ | 1/* 2 * fixmap.h: compile-time virtual memory allocation 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1998 Ingo Molnar --- 53 unchanged lines hidden (view full) --- 62 63/* 64 * used by vmalloc.c. 65 * 66 * Leave one empty page between vmalloc'ed areas and 67 * the start of the fixmap, and leave one page empty 68 * at the top of mem.. 69 */ |
70#ifdef CONFIG_BCM63XX 71#define FIXADDR_TOP ((unsigned long)(long)(int)0xff000000) 72#else |
|
70#if defined(CONFIG_CPU_TX39XX) || defined(CONFIG_CPU_TX49XX) 71#define FIXADDR_TOP ((unsigned long)(long)(int)(0xff000000 - 0x20000)) 72#else 73#define FIXADDR_TOP ((unsigned long)(long)(int)0xfffe0000) 74#endif | 73#if defined(CONFIG_CPU_TX39XX) || defined(CONFIG_CPU_TX49XX) 74#define FIXADDR_TOP ((unsigned long)(long)(int)(0xff000000 - 0x20000)) 75#else 76#define FIXADDR_TOP ((unsigned long)(long)(int)0xfffe0000) 77#endif |
78#endif |
|
75#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 76#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) 77 78#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) 79#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT) 80 81extern void __this_fixmap_does_not_exist(void); 82 --- 39 unchanged lines hidden --- | 79#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 80#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) 81 82#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) 83#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT) 84 85extern void __this_fixmap_does_not_exist(void); 86 --- 39 unchanged lines hidden --- |