]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86, fixmap: define FIXADDR_BOOT_* and redefine FIX_ADDR_SIZE
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Mon, 16 Feb 2009 00:48:53 +0000 (21:48 -0300)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 28 Feb 2009 04:57:47 +0000 (20:57 -0800)
Impact: new interface, not yet used

Now, with these macros, x86_64 code can know where start the
permanent and non-permanent fixed mapped address.
This patch make these macros equal fixmap_32.h for future
x86 integration.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Acked-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/fixmap_64.h

index 298d9ba3faebc1eb4d3bcf814ccc53ff7a9867c4..d905de0867539ed2076078afb4b0bf6c4f378b77 100644 (file)
@@ -69,8 +69,11 @@ enum fixed_addresses {
 };
 
 #define FIXADDR_TOP    (VSYSCALL_END-PAGE_SIZE)
-#define FIXADDR_SIZE   (__end_of_fixed_addresses << PAGE_SHIFT)
-#define FIXADDR_START  (FIXADDR_TOP - FIXADDR_SIZE)
+
+#define FIXADDR_SIZE   (__end_of_permanent_fixed_addresses << PAGE_SHIFT)
+#define FIXADDR_BOOT_SIZE      (__end_of_fixed_addresses << PAGE_SHIFT)
+#define FIXADDR_START          (FIXADDR_TOP - FIXADDR_SIZE)
+#define FIXADDR_BOOT_START     (FIXADDR_TOP - FIXADDR_BOOT_SIZE)
 
 /* Only covers 32bit vsyscalls currently. Need another set for 64bit. */
 #define FIXADDR_USER_START     ((unsigned long)VSYSCALL32_VSYSCALL)