aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.26-sparse/arch/xen/kernel/head.S
diff options
context:
space:
mode:
Diffstat (limited to 'xenolinux-2.4.26-sparse/arch/xen/kernel/head.S')
-rw-r--r--xenolinux-2.4.26-sparse/arch/xen/kernel/head.S39
1 files changed, 39 insertions, 0 deletions
diff --git a/xenolinux-2.4.26-sparse/arch/xen/kernel/head.S b/xenolinux-2.4.26-sparse/arch/xen/kernel/head.S
new file mode 100644
index 0000000000..2d9379a15b
--- /dev/null
+++ b/xenolinux-2.4.26-sparse/arch/xen/kernel/head.S
@@ -0,0 +1,39 @@
+
+.section __xen_guest
+ .asciz "GUEST_OS=linux,GUEST_VER=2.4,XEN_VER=1.3"
+
+.text
+#include <linux/config.h>
+#include <linux/threads.h>
+#include <linux/linkage.h>
+#include <asm/segment.h>
+#include <asm/page.h>
+#include <asm/pgtable.h>
+#include <asm/desc.h>
+
+ENTRY(stext)
+ENTRY(_stext)
+ cld
+ lss stack_start,%esp
+ /* Copy the necessary stuff from start_info structure. */
+ mov $SYMBOL_NAME(start_info_union),%edi
+ mov $128,%ecx
+ rep movsl
+ jmp SYMBOL_NAME(start_kernel)
+
+ENTRY(stack_start)
+ .long SYMBOL_NAME(init_task_union)+8192, __KERNEL_DS
+
+.org 0x1000
+ENTRY(empty_zero_page)
+
+.org 0x2000
+ENTRY(default_ldt)
+
+.org 0x3000
+ENTRY(cpu0_pte_quicklist)
+
+.org 0x3400
+ENTRY(cpu0_pgd_quicklist)
+
+.org 0x3800