From owner-svn-src-all@FreeBSD.ORG Mon Jun 16 08:41:58 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 470FFC93; Mon, 16 Jun 2014 08:41:58 +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 19CF62722; Mon, 16 Jun 2014 08:41:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5G8fvdt073693; Mon, 16 Jun 2014 08:41:57 GMT (envelope-from royger@svn.freebsd.org) Received: (from royger@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5G8fv7G073692; Mon, 16 Jun 2014 08:41:57 GMT (envelope-from royger@svn.freebsd.org) Message-Id: <201406160841.s5G8fv7G073692@svn.freebsd.org> From: Roger Pau Monné Date: Mon, 16 Jun 2014 08:41:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267525 - 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: Mon, 16 Jun 2014 08:41:58 -0000 Author: royger Date: Mon Jun 16 08:41:57 2014 New Revision: 267525 URL: http://svnweb.freebsd.org/changeset/base/267525 Log: xen: fix style in pv.c Fix the lenght of some comments, and also add proper indentation to xen_init_ops Sponsored by: Citrix Systems R&D Approved by: gibbs Modified: head/sys/x86/xen/pv.c Modified: head/sys/x86/xen/pv.c ============================================================================== --- head/sys/x86/xen/pv.c Mon Jun 16 04:32:27 2014 (r267524) +++ head/sys/x86/xen/pv.c Mon Jun 16 08:41:57 2014 (r267525) @@ -93,12 +93,12 @@ extern char *bootSTK; /*-------------------------------- Global Data -------------------------------*/ /* Xen init_ops implementation. */ struct init_ops xen_init_ops = { - .parse_preload_data = xen_pv_parse_preload_data, - .early_clock_source_init = xen_clock_init, - .early_delay = xen_delay, - .parse_memmap = xen_pv_parse_memmap, + .parse_preload_data = xen_pv_parse_preload_data, + .early_clock_source_init = xen_clock_init, + .early_delay = xen_delay, + .parse_memmap = xen_pv_parse_memmap, #ifdef SMP - .start_all_aps = xen_pv_start_all_aps, + .start_all_aps = xen_pv_start_all_aps, #endif }; @@ -155,15 +155,24 @@ hammer_time_xen(start_info_t *si, uint64 * by the boot trampoline). */ for (i = 0; i < (PAGE_SIZE / sizeof(uint64_t)); i++) { - /* Each slot of the level 4 pages points to the same level 3 page */ + /* + * Each slot of the level 4 pages points + * to the same level 3 page + */ PT4[i] = ((uint64_t)&PT3[0]) - KERNBASE; PT4[i] |= PG_V | PG_RW | PG_U; - /* Each slot of the level 3 pages points to the same level 2 page */ + /* + * Each slot of the level 3 pages points + * to the same level 2 page + */ PT3[i] = ((uint64_t)&PT2[0]) - KERNBASE; PT3[i] |= PG_V | PG_RW | PG_U; - /* The level 2 page slots are mapped with 2MB pages for 1GB. */ + /* + * The level 2 page slots are mapped with + * 2MB pages for 1GB. + */ PT2[i] = i * (2 * 1024 * 1024); PT2[i] |= PG_V | PG_RW | PG_PS | PG_U; }