2009-06-26 Pavel Roskin <proski@gnu.org>

* include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
	* include/grub/elf.h: Define symbols without "32" or "64" based
	on GRUB_TARGET_WORDSIZE.
	* include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
	* efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
	ELF definitions.
	* efiemu/loadcore64.c: Likewise.
	* loader/i386/bsd32.c: Likewise.
	* loader/i386/bsd64.c: Likewise.
	* kern/dl.c: Remove own ELF definitions.
	* util/i386/efi/grub-mkimage.c: Likewise.
This commit is contained in:
proski 2009-06-27 03:01:42 +00:00
parent 9bbdfd4d3b
commit c402ab1734
10 changed files with 71 additions and 81 deletions

View file

@ -50,6 +50,14 @@
# error "This architecture is not supported because sizeof(void *) != 4 and sizeof(void *) != 8"
#endif
#ifndef GRUB_TARGET_WORDSIZE
# if GRUB_TARGET_SIZEOF_VOID_P == 4
# define GRUB_TARGET_WORDSIZE 32
# elif GRUB_TARGET_SIZEOF_VOID_P == 8
# define GRUB_TARGET_WORDSIZE 64
# endif
#endif
/* Define various wide integers. */
typedef signed char grub_int8_t;
typedef short grub_int16_t;