Append double-null for Type 19 data record.
Signed-off-by: lzeng14 Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12983 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
@ -77,8 +77,7 @@ LogMemorySmbiosRecord (
|
|||||||
//
|
//
|
||||||
// Generate Memory Array Mapped Address info
|
// Generate Memory Array Mapped Address info
|
||||||
//
|
//
|
||||||
Type19Record = AllocatePool(sizeof (SMBIOS_TABLE_TYPE19));
|
Type19Record = AllocateZeroPool(sizeof (SMBIOS_TABLE_TYPE19) + 2);
|
||||||
ZeroMem(Type19Record, sizeof(SMBIOS_TABLE_TYPE19));
|
|
||||||
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
||||||
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
||||||
Type19Record->Hdr.Handle = 0;
|
Type19Record->Hdr.Handle = 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**@file
|
/**@file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
@ -77,8 +77,7 @@ LogMemorySmbiosRecord (
|
|||||||
//
|
//
|
||||||
// Generate Memory Array Mapped Address info
|
// Generate Memory Array Mapped Address info
|
||||||
//
|
//
|
||||||
Type19Record = AllocatePool(sizeof (SMBIOS_TABLE_TYPE19));
|
Type19Record = AllocateZeroPool(sizeof (SMBIOS_TABLE_TYPE19) + 2);
|
||||||
ZeroMem(Type19Record, sizeof(SMBIOS_TABLE_TYPE19));
|
|
||||||
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
||||||
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
||||||
Type19Record->Hdr.Handle = 0;
|
Type19Record->Hdr.Handle = 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
@ -77,8 +77,7 @@ LogMemorySmbiosRecord (
|
|||||||
//
|
//
|
||||||
// Generate Memory Array Mapped Address info
|
// Generate Memory Array Mapped Address info
|
||||||
//
|
//
|
||||||
Type19Record = AllocatePool(sizeof (SMBIOS_TABLE_TYPE19));
|
Type19Record = AllocateZeroPool(sizeof (SMBIOS_TABLE_TYPE19) + 2);
|
||||||
ZeroMem(Type19Record, sizeof(SMBIOS_TABLE_TYPE19));
|
|
||||||
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
Type19Record->Hdr.Type = EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS;
|
||||||
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
Type19Record->Hdr.Length = sizeof(SMBIOS_TABLE_TYPE19);
|
||||||
Type19Record->Hdr.Handle = 0;
|
Type19Record->Hdr.Handle = 0;
|
||||||
|
Reference in New Issue
Block a user