ARM syscall fix (Paul Brook)
[qemu/qemu_0_9_1_stable.git] / pc-bios / linux_boot.S
blob22fcd4be808a5386dee395549717c4e75c55fe54
1 /*
2  * QEMU Boot sector to launch a preloaded Linux kernel
3  * Copyright (c) 2004 Fabrice Bellard
4  */
6 #define LOAD_SEG 0x9000
7         
8 .code16 
9 .text
10         .globl  _start
12 _start:
13         cli
14         cld
15         mov $LOAD_SEG, %ax
16         mov %ax, %ds
17         mov %ax, %es
18         mov %ax, %fs
19         mov %ax, %gs
20         mov %ax, %ss
21         mov $0x8ffe, %sp
22         ljmp $LOAD_SEG + 0x20, $0
24 1:              
25         .fill 510 - (1b - _start), 1, 0
27         /* boot sector signature */
28         .byte 0x55
29         .byte 0xaa