}\r
\r
// Check if the initrd is a uInitrd\r
- if (*(UINT32*)((UINTN)InitrdImage) == LINUX_UIMAGE_SIGNATURE) {\r
+ if (*(UINT32*)((UINTN)InitrdImageBase) == LINUX_UIMAGE_SIGNATURE) {\r
// Skip the 64-byte image header\r
InitrdImage = (EFI_PHYSICAL_ADDRESS)((UINTN)InitrdImageBase + 64);\r
InitrdImageSize = InitrdImageBaseSize - 64;\r