diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-05-05 20:21:47 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-05-13 17:34:13 +0200 |
commit | 0b4db1399462dc8febb6d5c798b68c257f9055b1 (patch) | |
tree | f6c303ce9f8017c9f6e4dca3a7c11011332c3955 /src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c | |
parent | 1eaf58be2c2cc16f2fec7cfd0a58da4402647f70 (diff) |
vendorcode/intel/fsp1_0: Don't break GCC strict aliasing
Change-Id: I6b345670db7df652b8b712b721dfe2905373e0d5
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14630
Tested-by: build bot (Jenkins)
Reviewed-by: Leroy P Leahy <leroy.p.leahy@intel.com>
Reviewed-by: York Yang <york.yang@intel.com>
Diffstat (limited to 'src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c')
-rw-r--r-- | src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c b/src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c index 9f15b3e8db..68e6fa0e85 100644 --- a/src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c +++ b/src/vendorcode/intel/fsp1_0/rangeley/srx/fsp_support.c @@ -56,7 +56,7 @@ GetUsableLowMemTop ( * Collect memory ranges */ MemLen = 0x100000; - while (!END_OF_HOB_LIST (Hob)) { + while (!END_OF_HOB_LIST(Hob.Raw)) { if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) { if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { /* @@ -68,7 +68,7 @@ GetUsableLowMemTop ( } } } - Hob.Raw = GET_NEXT_HOB (Hob); + Hob.Raw = GET_NEXT_HOB(Hob.Raw); } return MemLen; @@ -98,7 +98,7 @@ GetUsableHighMemTop ( * Collect memory ranges */ MemTop = 0x100000000; - while (!END_OF_HOB_LIST (Hob)) { + while (!END_OF_HOB_LIST(Hob.Raw)) { if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) { if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { /* @@ -109,7 +109,7 @@ GetUsableHighMemTop ( } } } - Hob.Raw = GET_NEXT_HOB (Hob); + Hob.Raw = GET_NEXT_HOB(Hob.Raw); } return MemTop; @@ -143,7 +143,7 @@ GetFspReservedMemoryFromGuid ( /* * Collect memory ranges */ - while (!END_OF_HOB_LIST (Hob)) { + while (!END_OF_HOB_LIST(Hob.Raw)) { if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) { if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED) { if (CompareGuid(&Hob.ResourceDescriptor->Owner, OwnerGuid)) { @@ -153,7 +153,7 @@ GetFspReservedMemoryFromGuid ( } } } - Hob.Raw = GET_NEXT_HOB (Hob); + Hob.Raw = GET_NEXT_HOB(Hob.Raw); } } |