]> git.proxmox.com Git - qemu.git/blame - pc-bios/s390-ccw/start.S
Merge remote-tracking branch 'quintela/migration.next' into staging
[qemu.git] / pc-bios / s390-ccw / start.S
CommitLineData
80fea6e8
AG
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>
7f61cbc1 6 * Copyright 2013 IBM Corp.
80fea6e8
AG
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
16larl %r15, stack + 0x8000 /* Set up stack */
ff151f4e
DD
17larl %r6, boot_value
18stg %r7, 0(%r6) /* save the boot_value before any function calls */
80fea6e8 19j main /* And call C */
7f61cbc1
CB
20
21/*
22 * void disabled_wait(void)
23 *
24 * stops the current guest cpu.
25 */
26 .globl disabled_wait
27disabled_wait:
28 larl %r1,disabled_wait_psw
29 lpswe 0(%r1)
30
31 .align 8
32disabled_wait_psw:
33 .quad 0x0002000180000000,0x0000000000000000