Re: [edk2] [Patch v2 1/3] MdeModulePkg/Bds: Allocate reserved memory for RAM Disk boot media

2016-03-30 Thread Fu, Siyuan
Hi, Ray In below code the FileBuffer should be freed according to its allocation method (page or pool). Other part is good with me. > + Status = LoadFile->LoadFile (LoadFile, FilePath, TRUE, &BufferSize, > FileBuffer); > + if (EFI_ERROR (Status)) { > +FreePool (FileBuffer); > +return

[edk2] [Patch v2 1/3] MdeModulePkg/Bds: Allocate reserved memory for RAM Disk boot media

2016-03-29 Thread Ruiyu Ni
Use reserved memory to hold the buffer for the RAM disk to follow the ACPI spec requirement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Siyuan Fu --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 145 +++-- .../Library/UefiBootMana