summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kvm/user/test/x86/cstart.S')
-rw-r--r--kvm/user/test/x86/cstart.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/kvm/user/test/x86/cstart.S b/kvm/user/test/x86/cstart.S
new file mode 100644
index 000000000..0471b92e7
--- /dev/null
+++ b/kvm/user/test/x86/cstart.S
@@ -0,0 +1,19 @@
+
+
+.bss
+
+.section .init
+
+mb_magic = 0x1BADB002
+mb_flags = 0x0
+
+ # multiboot header
+ .long mb_magic, mb_flags, 0 - (mb_magic + mb_flags)
+
+.globl start
+start:
+ call main
+ push %eax
+ call exit
+
+