Deleted Added
full compact
bhyverun.c (268953) bhyverun.c (268972)
1/*-
2 * Copyright (c) 2011 NetApp, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2011 NetApp, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/10/usr.sbin/bhyve/bhyverun.c 268953 2014-07-21 19:08:02Z jhb $
26 * $FreeBSD: stable/10/usr.sbin/bhyve/bhyverun.c 268972 2014-07-22 03:14:37Z jhb $
27 */
28
29#include <sys/cdefs.h>
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/bhyverun.c 268953 2014-07-21 19:08:02Z jhb $");
30__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/bhyverun.c 268972 2014-07-22 03:14:37Z jhb $");
31
32#include <sys/types.h>
33#include <sys/mman.h>
34#include <sys/time.h>
35
36#include <machine/atomic.h>
37#include <machine/segments.h>
38

--- 16 unchanged lines hidden (view full) ---

55#include "acpi.h"
56#include "inout.h"
57#include "dbgport.h"
58#include "ioapic.h"
59#include "mem.h"
60#include "mevent.h"
61#include "mptbl.h"
62#include "pci_emul.h"
31
32#include <sys/types.h>
33#include <sys/mman.h>
34#include <sys/time.h>
35
36#include <machine/atomic.h>
37#include <machine/segments.h>
38

--- 16 unchanged lines hidden (view full) ---

55#include "acpi.h"
56#include "inout.h"
57#include "dbgport.h"
58#include "ioapic.h"
59#include "mem.h"
60#include "mevent.h"
61#include "mptbl.h"
62#include "pci_emul.h"
63#include "pci_irq.h"
63#include "pci_lpc.h"
64#include "smbiostbl.h"
65#include "xmsr.h"
66#include "spinup_ap.h"
67#include "rtc.h"
68
69#define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */
70

--- 694 unchanged lines hidden (view full) ---

765 err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL);
766 if (err) {
767 fprintf(stderr, "Unable to setup memory (%d)\n", err);
768 exit(1);
769 }
770
771 init_mem();
772 init_inout();
64#include "pci_lpc.h"
65#include "smbiostbl.h"
66#include "xmsr.h"
67#include "spinup_ap.h"
68#include "rtc.h"
69
70#define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */
71

--- 694 unchanged lines hidden (view full) ---

766 err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL);
767 if (err) {
768 fprintf(stderr, "Unable to setup memory (%d)\n", err);
769 exit(1);
770 }
771
772 init_mem();
773 init_inout();
774 pci_irq_init(ctx);
773 ioapic_init(ctx);
774
775 rtc_init(ctx);
775 ioapic_init(ctx);
776
777 rtc_init(ctx);
778 sci_init(ctx);
776
777 /*
778 * Exit if a device emulation finds an error in it's initilization
779 */
780 if (init_pci(ctx) != 0)
781 exit(1);
782
783 if (gdb_port != 0)

--- 42 unchanged lines hidden ---
779
780 /*
781 * Exit if a device emulation finds an error in it's initilization
782 */
783 if (init_pci(ctx) != 0)
784 exit(1);
785
786 if (gdb_port != 0)

--- 42 unchanged lines hidden ---