source:
trunk/packages/xen-3.1/xen-3.1/tools/ioemu/pc-bios/linux_boot.S
@
34
Last change on this file since 34 was 34, checked in by hartmans, 18 years ago | |
---|---|
File size: 521 bytes |
Line | |
---|---|
1 | /* |
2 | * QEMU Boot sector to launch a preloaded Linux kernel |
3 | * Copyright (c) 2004 Fabrice Bellard |
4 | */ |
5 | |
6 | #define LOAD_SEG 0x9000 |
7 | |
8 | .code16 |
9 | .text |
10 | .globl _start |
11 | |
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 |
23 | |
24 | 1: |
25 | .fill 510 - (1b - _start), 1, 0 |
26 | |
27 | /* boot sector signature */ |
28 | .byte 0x55 |
29 | .byte 0xaa |
Note: See TracBrowser
for help on using the repository browser.