efi: mm: make MAX_USABLE_ADDRESS platform-specific

This commit is contained in:
Leif Lindholm 2013-12-10 12:24:57 +00:00
parent 3f1423e789
commit 16c8f78513
7 changed files with 42 additions and 12 deletions

View file

@ -1 +1,6 @@
#ifndef GRUB_MEMORY_CPU_HEADER
#include <grub/efi/memory.h>
#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
#endif /* ! GRUB_MEMORY_CPU_HEADER */

View file

@ -1 +1,6 @@
#ifndef GRUB_MEMORY_CPU_HEADER
#include <grub/efi/memory.h>
#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL
#endif /* ! GRUB_MEMORY_CPU_HEADER */

View file

@ -1 +1,6 @@
#ifndef GRUB_MEMORY_CPU_HEADER
#include <grub/efi/memory.h>
#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
#endif /* ! GRUB_MEMORY_CPU_HEADER */

View file

@ -1 +1,6 @@
#ifndef GRUB_MEMORY_CPU_HEADER
#include <grub/efi/memory.h>
#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
#endif /* ! GRUB_MEMORY_CPU_HEADER */

View file

@ -1 +1,10 @@
#ifndef GRUB_MEMORY_CPU_HEADER
#include <grub/efi/memory.h>
#if defined (__code_model_large__)
#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
#else
#define GRUB_EFI_MAX_USABLE_ADDRESS 0x7fffffff
#endif
#endif /* ! GRUB_MEMORY_CPU_HEADER */