Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab93e3c4 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by H. Peter Anvin
Browse files

x86, fixmap: define FIXADDR_BOOT_* and redefine FIX_ADDR_SIZE



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: default avatarGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Acked-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent d09375a9
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -69,8 +69,11 @@ enum fixed_addresses {
};
};


#define FIXADDR_TOP	(VSYSCALL_END-PAGE_SIZE)
#define FIXADDR_TOP	(VSYSCALL_END-PAGE_SIZE)
#define FIXADDR_SIZE	(__end_of_fixed_addresses << PAGE_SHIFT)

#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_START		(FIXADDR_TOP - FIXADDR_SIZE)
#define FIXADDR_BOOT_START	(FIXADDR_TOP - FIXADDR_BOOT_SIZE)


/* Only covers 32bit vsyscalls currently. Need another set for 64bit. */
/* Only covers 32bit vsyscalls currently. Need another set for 64bit. */
#define FIXADDR_USER_START	((unsigned long)VSYSCALL32_VSYSCALL)
#define FIXADDR_USER_START	((unsigned long)VSYSCALL32_VSYSCALL)