Skip to content

Commit

Permalink
QcomModulePkg: Removing redundant function which copies the kernel image
Browse files Browse the repository at this point in the history
The function copies the kernel image to the kernel load address. The
same function is called twice after few lines in the same .c file.
Removing the redundant function to save 10 ms as part of abl
optimization.

Signed-off-by: Aravind Vijayakumar <[email protected]>
Change-Id: I4f5ec8050c96ba25fd7e35b560232b4f9210e76b
  • Loading branch information
Aravind Vijayakumar authored and Gerrit - the friendly Code Review server committed Feb 8, 2021
1 parent 3f8aa10 commit ce876d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions QcomModulePkg/Library/BootLib/BootLinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,6 @@ GZipPkgCheck (BootParamlist *BootParamlistPtr)
BootParamlistPtr->PatchedKernelHdrSize = PATCHED_KERNEL_HEADER_SIZE;
Kptr = (struct kernel64_hdr *)((VOID *)Kptr +
BootParamlistPtr->PatchedKernelHdrSize);
gBS->CopyMem ((VOID *)BootParamlistPtr->KernelLoadAddr, (VOID *)Kptr,
BootParamlistPtr->KernelSize);
}

if (Kptr->magic_64 != KERNEL64_HDR_MAGIC) {
Expand Down

0 comments on commit ce876d9

Please sign in to comment.