Statistics
| Branch: | Revision:

root / pc-bios / linux_boot.S @ 9d0869b6

History | View | Annotate | Download (521 Bytes)

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