]> git.proxmox.com Git - qemu.git/blob - pc-bios/s390-ccw/start.S
s390-ccw.img: Enhance drain_irqs().
[qemu.git] / pc-bios / s390-ccw / start.S
1 /*
2 * First stage boot loader for virtio devices. The compiled output goes
3 * into the pc-bios directory of qemu.
4 *
5 * Copyright (c) 2013 Alexander Graf <agraf@suse.de>
6 * Copyright 2013 IBM Corp.
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2 or (at
9 * your option) any later version. See the COPYING file in the top-level
10 * directory.
11 */
12
13 .globl _start
14 _start:
15
16 larl %r15, stack + 0x8000 /* Set up stack */
17 j main /* And call C */
18
19 /*
20 * void disabled_wait(void)
21 *
22 * stops the current guest cpu.
23 */
24 .globl disabled_wait
25 disabled_wait:
26 larl %r1,disabled_wait_psw
27 lpswe 0(%r1)
28
29 .align 8
30 disabled_wait_psw:
31 .quad 0x0002000180000000,0x0000000000000000