x86: Support jumping to a UPL image

Add a function to allow x86 boards to jump to a UPL images. Currently
only 32-bit entry is supported.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-01-22 17:08:23 -06:00
committed by Tom Rini
parent 44e39ff6ac
commit 9d5072bb1d
+11
View File
@@ -259,3 +259,14 @@ int do_bootm_linux(int flag, struct bootm_info *bmi)
return boot_jump_linux(images);
}
int arch_upl_jump(ulong entry, const struct abuf *buf)
{
typedef EFIAPI void (*h_func)(void *hoff);
h_func func;
func = (h_func)(ulong)entry;
func(buf->data);
return -EFAULT;
}