mirror of https://github.com/acidanthera/audk.git
Fix the issue that GCC treat enum type as unsigned int which incompatible with UEFI spec's INT32.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10347 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
712389b848
commit
c5d00b30c1
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
UEFI Memory pool management functions.
|
UEFI Memory pool management functions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2006 - 2010, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -128,7 +128,7 @@ LookupPoolHead (
|
||||||
// MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI
|
// MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI
|
||||||
// OS loaders that are provided by operating system vendors
|
// OS loaders that are provided by operating system vendors
|
||||||
//
|
//
|
||||||
if (MemoryType < 0) {
|
if (MemoryType >= (INT32)0x80000000 && MemoryType <= (INT32)0xffffffff) {
|
||||||
|
|
||||||
for (Link = mPoolHeadList.ForwardLink; Link != &mPoolHeadList; Link = Link->ForwardLink) {
|
for (Link = mPoolHeadList.ForwardLink; Link != &mPoolHeadList; Link = Link->ForwardLink) {
|
||||||
Pool = CR(Link, POOL, Link, POOL_SIGNATURE);
|
Pool = CR(Link, POOL, Link, POOL_SIGNATURE);
|
||||||
|
|
Loading…
Reference in New Issue