From 79c584e5595458d58dc1cf47172abcb3748574f4 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Wed, 11 Apr 2018 22:02:22 -0700 Subject: bootvx: x86: Assign bootaddr based on kernel memory base On VxWorks x86 its bootline address is at a pre-defined offset @ 0x1200. If 'bootaddr' is not passed via environment variable, we assign its value based on the kernel memory base address. Signed-off-by: Bin Meng --- include/vxworks.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/vxworks.h b/include/vxworks.h index b1b5096b906..39f0a444a22 100644 --- a/include/vxworks.h +++ b/include/vxworks.h @@ -16,6 +16,9 @@ */ #define VXWORKS_PHYS_MEM_BASE 0x100000 +/* x86 bootline offset relative to LOCAL_MEM_LOCAL_ADRS in VxWorks */ +#define X86_BOOT_LINE_OFFSET 0x1200 + /* * VxWorks x86 E820 related stuff * -- cgit v1.3.1