I am trying to boot kernel bundled into super package, which will be stored on usb device. My plan is to open and read super package into memory using EFI_FILE_PROTOCOL. Once I completely read super package into memory, I am parsing the superpackage and finding the start location of my kernel and initramfs.
Should I use AllocatePool or AllocatePages API to allocate memory for kernel/initramfs? or it does not matter? What is the exact difference between AllocatePool and AllocatePages?