2 * First stage boot loader for virtio devices. The compiled output goes
3 * into the pc-bios directory of qemu.
5 * Copyright (c) 2013 Alexander Graf <agraf@suse.de>
6 * Copyright 2013 IBM Corp.
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
16 larl %r15, stack + 0x8000 /* Set up stack */
18 stg %r7, 0(%r6) /* save the boot_value before any function calls */
19 j main /* And call C */
22 * void disabled_wait(void)
24 * stops the current guest cpu.
28 larl %r1,disabled_wait_psw
33 * void consume_sclp_int(void)
35 * eats one sclp interrupt
37 .globl consume_sclp_int
39 /* enable service interrupts in cr0 */
43 /* prepare external call handler */
44 larl %r1, external_new_code
46 larl %r1, external_new_mask
48 /* load enabled wait PSW */
49 larl %r1, enabled_wait_psw
53 /* disable service interrupts in cr0 */
61 .quad 0x0002000180000000,0x0000000000000000
63 .quad 0x0302000180000000,0x0000000000000000
65 .quad 0x0000000180000000