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 */
17 j main /* And call C */
20 * void disabled_wait(void)
22 * stops the current guest cpu.
26 larl %r1,disabled_wait_psw
31 * void consume_sclp_int(void)
33 * eats one sclp interrupt
35 .globl consume_sclp_int
37 /* enable service interrupts in cr0 */
41 /* prepare external call handler */
42 larl %r1, external_new_code
44 larl %r1, external_new_mask
46 /* load enabled wait PSW */
47 larl %r1, enabled_wait_psw
51 /* disable service interrupts in cr0 */
59 .quad 0x0002000180000000,0x0000000000000000
61 .quad 0x0302000180000000,0x0000000000000000
63 .quad 0x0000000180000000