diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2015-11-04 11:10:47 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@kernel.org> | 2016-02-11 08:42:16 -0800 |
commit | 2868bd2dbbedaffaf1c4a8295e36471343d4daec (patch) | |
tree | c0d5387046f32650c298eda15a29a7521db37d1a | |
parent | 9d456ed2e700c496903636a4ea9729f05415a208 (diff) | |
download | linker-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.c | 2 | ||||
-rw-r--r-- | xen.c | 2 | ||||
-rw-r--r-- | xen.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ int main(int arg, char *argc[]) int ret; if (arg > 1) - xen_start(); + startup_xen(); else bare_metal_start(); @@ -8,7 +8,7 @@ bool booting_xen(void) return __booting_xen; } -int xen_start(void) +int startup_xen(void) { __booting_xen = true; @@ -1,2 +1,2 @@ bool booting_xen(void); -int xen_start(void); +int startup_xen(void); |