mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
a735aa3139
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@652 c046a42c-6fe2-441c-8c8c-71466251a162
30 lines
521 B
ArmAsm
30 lines
521 B
ArmAsm
/*
|
|
* QEMU Boot sector to launch a preloaded Linux kernel
|
|
* Copyright (c) 2004 Fabrice Bellard
|
|
*/
|
|
|
|
#define LOAD_SEG 0x9000
|
|
|
|
.code16
|
|
.text
|
|
.globl _start
|
|
|
|
_start:
|
|
cli
|
|
cld
|
|
mov $LOAD_SEG, %ax
|
|
mov %ax, %ds
|
|
mov %ax, %es
|
|
mov %ax, %fs
|
|
mov %ax, %gs
|
|
mov %ax, %ss
|
|
mov $0x8ffe, %sp
|
|
ljmp $LOAD_SEG + 0x20, $0
|
|
|
|
1:
|
|
.fill 510 - (1b - _start), 1, 0
|
|
|
|
/* boot sector signature */
|
|
.byte 0x55
|
|
.byte 0xaa
|