]>
git.proxmox.com Git - qemu.git/blob - pc-bios/s390-ccw/main.c
2 * S390 virtio-ccw loading program
4 * Copyright (c) 2013 Alexander Graf <agraf@suse.de>
6 * This work is licensed under the terms of the GNU GPL, version 2 or (at
7 * your option) any later version. See the COPYING file in the top-level
13 struct subchannel_id blk_schid
;
14 char stack
[PAGE_SIZE
* 8] __attribute__((__aligned__(PAGE_SIZE
)));
16 void virtio_panic(const char *string
)
23 static void virtio_setup(void)
32 for (i
= 0; i
< 0x10000; i
++) {
34 r
= stsch_err(blk_schid
, &schib
);
39 if (virtio_is_blk(blk_schid
)) {
47 virtio_panic("No virtio-blk device found!\n");
50 virtio_setup_block(blk_schid
);
58 sclp_print("Failed to load OS from hard disk\n");