summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86/multiboot.c
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-04-30 05:12:21 +0000
committerSubrata Banik <subratabanik@google.com>2024-05-04 16:51:44 +0000
commitbb937c8775cc3cd98767bb7e465459101b163124 (patch)
tree2f93f35b3ddb878d831dd6dff20277af17d2b5b2 /payloads/libpayload/arch/x86/multiboot.c
parente3eeba6aaeccc57a5d554e3ce727ae1b1d99d505 (diff)
libpayload: Save EAX and EBX only for multiboot payloads
When CONFIG_LP_MULTIBOOT is enabled, save the values of EAX and EBX passed from the bootloader. This information can be useful for multiboot payloads feature alone. Change-Id: I98c2cd00206ee48eb0fc67edd9533032bcf3e5eb Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82040 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Reviewed-by: Dinesh Gehlot <digehlot@google.com>
Diffstat (limited to 'payloads/libpayload/arch/x86/multiboot.c')
-rw-r--r--payloads/libpayload/arch/x86/multiboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/arch/x86/multiboot.c b/payloads/libpayload/arch/x86/multiboot.c
index 26dc4f8cd0..ed7886238e 100644
--- a/payloads/libpayload/arch/x86/multiboot.c
+++ b/payloads/libpayload/arch/x86/multiboot.c
@@ -30,8 +30,8 @@
#include <libpayload.h>
#include <multiboot_tables.h>
-extern unsigned long loader_eax;
-extern unsigned long loader_ebx;
+unsigned long loader_eax; /* The value of EAX passed from the loader */
+unsigned long loader_ebx; /* The value of EBX passed from the loader */
static int mb_add_memrange(struct sysinfo_t *info, unsigned long long base,
unsigned long long size, unsigned int type)