aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2015-11-04 11:10:47 -0800
committerLuis R. Rodriguez <mcgrof@kernel.org>2016-02-11 08:42:16 -0800
commit2868bd2dbbedaffaf1c4a8295e36471343d4daec (patch)
treec0d5387046f32650c298eda15a29a7521db37d1a
parent9d456ed2e700c496903636a4ea9729f05415a208 (diff)
downloadlinker-tables-2868bd2dbbedaffaf1c4a8295e36471343d4daec.tar.gz
xen: use startup_xen() for init
Mimic Linux code for xen init. This is the entry point used from handoff by the Xen Hypervisor. The way the hypervisor finds finds the entry point is by inspecting the Linux binary, lookng for the XEN_ELFNOTE_ENTRY elf note and using that. For bare metal and lguest the entry points are different, and we'll mimic that next. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
-rw-r--r--main.c2
-rw-r--r--xen.c2
-rw-r--r--xen.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 0e4888b..778b08c 100644
--- a/main.c
+++ b/main.c
@@ -23,7 +23,7 @@ int main(int arg, char *argc[])
int ret;
if (arg > 1)
- xen_start();
+ startup_xen();
else
bare_metal_start();
diff --git a/xen.c b/xen.c
index bcae856..96ce133 100644
--- a/xen.c
+++ b/xen.c
@@ -8,7 +8,7 @@ bool booting_xen(void)
return __booting_xen;
}
-int xen_start(void)
+int startup_xen(void)
{
__booting_xen = true;
diff --git a/xen.h b/xen.h
index 66e54e2..0be8d63 100644
--- a/xen.h
+++ b/xen.h
@@ -1,2 +1,2 @@
bool booting_xen(void);
-int xen_start(void);
+int startup_xen(void);