From owner-svn-src-all@FreeBSD.ORG Tue Jul 15 15:40:33 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0C6C2CC; Tue, 15 Jul 2014 15:40:33 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B565B2322; Tue, 15 Jul 2014 15:40:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6FFeXvL036661; Tue, 15 Jul 2014 15:40:33 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6FFeXgZ036659; Tue, 15 Jul 2014 15:40:33 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201407151540.s6FFeXgZ036659@svn.freebsd.org> From: John Baldwin Date: Tue, 15 Jul 2014 15:40:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268672 - head/sys/x86/xen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 15:40:34 -0000 Author: jhb Date: Tue Jul 15 15:40:33 2014 New Revision: 268672 URL: http://svnweb.freebsd.org/changeset/base/268672 Log: Fix build with SMP disabled. CR: https://phabric.freebsd.org/D407 Reviewed by: royger Modified: head/sys/x86/xen/pv.c head/sys/x86/xen/xen_apic.c Modified: head/sys/x86/xen/pv.c ============================================================================== --- head/sys/x86/xen/pv.c Tue Jul 15 15:29:43 2014 (r268671) +++ head/sys/x86/xen/pv.c Tue Jul 15 15:40:33 2014 (r268672) @@ -51,6 +51,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include #include #include #include Modified: head/sys/x86/xen/xen_apic.c ============================================================================== --- head/sys/x86/xen/xen_apic.c Tue Jul 15 15:29:43 2014 (r268671) +++ head/sys/x86/xen/xen_apic.c Tue Jul 15 15:40:33 2014 (r268672) @@ -40,9 +40,11 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include +#include #include #include @@ -256,6 +258,7 @@ xen_pv_lapic_enable_cmc(void) } +#ifdef SMP static void xen_pv_lapic_ipi_raw(register_t icrlo, u_int dest) { @@ -308,6 +311,7 @@ xen_pv_lapic_ipi_wait(int delay) XEN_APIC_UNSUPPORTED; return (0); } +#endif static int xen_pv_lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked) @@ -363,9 +367,11 @@ struct apic_ops xen_apic_ops = { .disable_pmc = xen_pv_lapic_disable_pmc, .reenable_pmc = xen_pv_lapic_reenable_pmc, .enable_cmc = xen_pv_lapic_enable_cmc, +#ifdef SMP .ipi_raw = xen_pv_lapic_ipi_raw, .ipi_vectored = xen_pv_lapic_ipi_vectored, .ipi_wait = xen_pv_lapic_ipi_wait, +#endif .set_lvt_mask = xen_pv_lapic_set_lvt_mask, .set_lvt_mode = xen_pv_lapic_set_lvt_mode, .set_lvt_polarity = xen_pv_lapic_set_lvt_polarity,