diff --git a/ChangeLog b/ChangeLog index f190019e9..da5a10f88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2006-06-07 Jeroen Dekkers + + * include/grub/types.h (grub_host_addr_t): Rename to + grub_target_addr_t. + (grub_host_off_t): Rename to grub_target_off_t. + (grub_host_size_t): Rename to grub_target_size_t. + (grub_host_ssize_t): Rename to grub_target_ssize_t. + Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables. + + * include/grub/kernel.h (struct grub_module_header): Change type + of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t. + (grub_module_info): Likewise. + 2006-06-05 Yoshinori K. Okuji * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional diff --git a/include/grub/kernel.h b/include/grub/kernel.h index f283498b2..ddfad92db 100644 --- a/include/grub/kernel.h +++ b/include/grub/kernel.h @@ -26,9 +26,9 @@ struct grub_module_header { /* The offset of object code. */ - grub_host_off_t offset; + grub_target_off_t offset; /* The size of object code plus this header. */ - grub_host_size_t size; + grub_target_size_t size; }; /* "gmim" (GRUB Module Info Magic). */ @@ -39,9 +39,9 @@ struct grub_module_info /* Magic number so we know we have modules present. */ grub_uint32_t magic; /* The offset of the modules. */ - grub_host_off_t offset; + grub_target_off_t offset; /* The size of all modules plus this header. */ - grub_host_size_t size; + grub_target_size_t size; }; extern grub_addr_t grub_arch_modules_addr (void); diff --git a/include/grub/types.h b/include/grub/types.h index 40d9b7d69..29de70fb1 100644 --- a/include/grub/types.h +++ b/include/grub/types.h @@ -69,16 +69,16 @@ typedef unsigned long long grub_uint64_t; #endif /* Misc types. */ -#if SIZEOF_VOID_P == 8 -typedef grub_uint64_t grub_host_addr_t; -typedef grub_uint64_t grub_host_off_t; -typedef grub_uint64_t grub_host_size_t; -typedef grub_int64_t grub_host_ssize_t; +#if GRUB_TARGET_SIZEOF_VOID_P == 8 +typedef grub_uint64_t grub_target_addr_t; +typedef grub_uint64_t grub_target_off_t; +typedef grub_uint64_t grub_target_size_t; +typedef grub_int64_t grub_target_ssize_t; #else -typedef grub_uint32_t grub_host_addr_t; -typedef grub_uint32_t grub_host_off_t; -typedef grub_uint32_t grub_host_size_t; -typedef grub_int32_t grub_host_ssize_t; +typedef grub_uint32_t grub_target_addr_t; +typedef grub_uint32_t grub_target_off_t; +typedef grub_uint32_t grub_target_size_t; +typedef grub_int32_t grub_target_ssize_t; #endif #if GRUB_CPU_SIZEOF_VOID_P == 8