[PATCH 1/5] efi_loader: use an enum for the memory allocation types