summaryrefslogtreecommitdiff
path: root/include/vxworks.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-04-12 08:02:22 +0300
committerBin Meng <bmeng.cn@gmail.com>2018-04-16 17:38:53 +0300
commit79c584e5595458d58dc1cf47172abcb3748574f4 (patch)
tree69eaf0c7013038cc6f2b47ba6d7f512623815351 /include/vxworks.h
parentced71a2f72e296d08d87ec377ea91e9c48b528d6 (diff)
downloadu-boot-79c584e5595458d58dc1cf47172abcb3748574f4.tar.xz
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 <bmeng.cn@gmail.com>
Diffstat (limited to 'include/vxworks.h')
-rw-r--r--include/vxworks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vxworks.h b/include/vxworks.h
index b1b5096b90..39f0a444a2 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
*