mirror of https://github.com/acidanthera/audk.git
Add macro EFI_SIZE_TO_PAGES/EFI_PAGES_TO_SIZE in UefiBaseType.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2689 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
935456bbeb
commit
833bd94e28
|
@ -160,5 +160,8 @@ typedef union {
|
|||
#define EFI_PAGE_MASK 0xFFF
|
||||
#define EFI_PAGE_SHIFT 12
|
||||
|
||||
#define EFI_SIZE_TO_PAGES(a) (((a) >> EFI_PAGE_SHIFT) + (((a) & EFI_PAGE_MASK) ? 1 : 0))
|
||||
|
||||
#define EFI_PAGES_TO_SIZE(a) ( (a) << EFI_PAGE_SHIFT)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue