Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Feb 2016 20:06:30 -0800
From:      Devin Teske <dteske@FreeBSD.org>
To:        Benjamin Kaduk <bjkfbsd@gmail.com>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r295169 - head/usr.sbin/sysrc
Message-ID:  <1454472390.31394.1.camel@FreeBSD.org>
In-Reply-To: <CAJ5_RoB7E86xD10tLiSVPs4YYU3NTpKfiWz=ZcvG3Y1Gbzmewg@mail.gmail.com>
References:  <201602022158.u12LwHtr068296@repo.freebsd.org> <CAJ5_RoAu=4bpkobehiL0Ug6d0r_hpgdy3UTay628MkxxkEJB4w@mail.gmail.com> <1454457045.37056.69.camel@FreeBSD.org> <CAJ5_RoB7E86xD10tLiSVPs4YYU3NTpKfiWz=ZcvG3Y1Gbzmewg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2016-02-02 at 21:40 -0600, Benjamin Kaduk wrote:
> On Tue, Feb 2, 2016 at 5:50 PM, Devin Teske <dteske@freebsd.org>
> wrote:
> > On Tue, 2016-02-02 at 16:03 -0600, Benjamin Kaduk wrote:
> > > On Tue, Feb 2, 2016 at 3:58 PM, Devin Teske <dteske@freebsd.org>
> > > wrote:
> > > > Author: dteske
> > > > Date: Tue Feb  2 21:58:17 2016
> > > > New Revision: 295169
> > > > URL: https://svnweb.freebsd.org/changeset/base/295169
> > > > 
> > > > Log:
> > > >   Replace (Qo \  Qc) with (Qo (space) Qc)
> > > > 
> > > >   When using col(1) piped to vim(1) as pager for man(1), the
> > > > former sequence
> > > >   of (Qo \  Qc) renders as "" without the space. Replace with
> > > > (Qo (space) Qc)
> > > >   which renders properly in more (all?) pagers.
> > > mdoc(7) also suggests using double-quotes (" ") to escape literal
> > > spaces; did you try that?
> > Did not try -- tried just now and it works. Will update with a
> > commit.
> > 
> > However... /me opens "man mdoc"
> > (20 minutes later; confused as to where)
> > 
> > I've read mdoc(7) several times and have never seen such a
> > clarification.
> > (which I might add; would be mighty useful if you can find it)
> > 
> > 
> The shame is on me; I had opened the system mdoc(7) on OS X, which is
> actually groff_mdoc(7).  There is a subsection therein "Passing Space
> Characters in an Argument" which has the text in question.  I guess I
> need to spend more time with the mdocml mdoc(7) to get used to what
> it contains (and does not contain).
> 
> Sorry for sending you down the wrong rabbit hole...
Funny thing was, your suggestion absolutely worked. Learned something
our mdoc(7) doesn't document but supports.
-- 
Devin
From owner-svn-src-head@freebsd.org  Wed Feb  3 08:02:15 2016
Return-Path: <owner-svn-src-head@freebsd.org>
Delivered-To: svn-src-head@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id C758EA9A0C6
 for <svn-src-head@mailman.ysv.freebsd.org>;
 Wed,  3 Feb 2016 08:02:15 +0000 (UTC)
 (envelope-from wma@semihalf.com)
Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com
 [IPv6:2607:f8b0:4001:c05::234])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 9942B1BC6
 for <svn-src-head@freebsd.org>; Wed,  3 Feb 2016 08:02:15 +0000 (UTC)
 (envelope-from wma@semihalf.com)
Received: by mail-ig0-x234.google.com with SMTP id z14so80170807igp.0
 for <svn-src-head@freebsd.org>; Wed, 03 Feb 2016 00:02:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=semihalf-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-type;
 bh=xJTorXB1e/azs4NIDgWR0IGDDJTlToRDjqwOiMMlck0=;
 b=BK7zGxw1Opo0J8utQ2Ski7VMlx43DvLfV1/R9A2hWxzDsuxV/QR+L5zcW5RIxd+Kgh
 NedI1pdf0CTJdMn76+oRyFb2r6xvN4k97/5vKETjD0Tj7Jr3HSzOg4m3q1Z/To65sf7b
 ch/XxFQdK/20CXPMQSt2QXsYiqzi5+QhHnO4gxcAAuyCUgXHE6KP/mSrsmTWYMtwuH2m
 IlI/mwPBhUGq6Ut3OEPtDLQtjvXsK8XgrDiXK6IFoKRydnqZiabCik+fH6cssODbLRrg
 LoFsqEwiLuFyLCpG+SN237AkXAer68CQVv9DejCIsTe5qXCX/vSiqlSbdQi0lAYXh3Mm
 YLRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc:content-type;
 bh=xJTorXB1e/azs4NIDgWR0IGDDJTlToRDjqwOiMMlck0=;
 b=jb236vq1N4BrkRxYXlZsDBKARk/Qxy3F5rrCUfzLGnCO5Ivyco664bZaA0q3Jo9hl7
 ldjIRoLsgDIBBu26k9iJKsa6itQ39HD9IY1xIlvL0aGYLXwYFuq3euy8zKm2/Ui5GlZC
 9qkzNCJ6URrZhDIjQUs/KSdaqC/z8vyNfVQiL+7hKJ8OC9RzgMPmFLZSVEw3SUIxRVKT
 hLM/1zm1hUcLPgFacF0nH/bTM9Ea4eOwcNSz5bISbHdZxVthkAmJmUI07rQhoLakD5oj
 16Gl1PPbJlmta8XIwnCAwqEkotL2F1HeQWogSiAA4sa9eoT61t8mrNvB+bbAuSDcU+Xp
 QgZQ==
X-Gm-Message-State: AG10YOS/5amXRcZ/jM/kA5rGCYHpN1LLjoP6+4ODGYp3H+nefgSTH9szPB3aXg6V4rAk2jyTqcBMnlC7gd/OZw==
X-Received: by 10.50.43.228 with SMTP id z4mr2113058igl.33.1454486534982; Wed,
 03 Feb 2016 00:02:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.154.19 with HTTP; Wed, 3 Feb 2016 00:01:55 -0800 (PST)
In-Reply-To: <201602022117.u12LHP7M056632@repo.freebsd.org>
References: <201602022117.u12LHP7M056632@repo.freebsd.org>
From: Wojciech Macek <wma@semihalf.com>
Date: Wed, 3 Feb 2016 09:01:55 +0100
Message-ID: <CANsEV8fPdqRUih+jduhBiMNsSjRbzhnh6wYhs8Lx_B0jE7qw3A@mail.gmail.com>
Subject: Re: svn commit: r295168 - in head/sys/arm: arm include
To: Svatopluk Kraus <skra@freebsd.org>
Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, 
 svn-src-head@freebsd.org
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: svn-src-head@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: SVN commit messages for the src tree for head/-current
 <svn-src-head.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-head/>;
List-Post: <mailto:svn-src-head@freebsd.org>
List-Help: <mailto:svn-src-head-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2016 08:02:16 -0000

Is it necessary to add acle-compat.h to the includes? If so, I suggest
putting it under ifndef __aarch64__ , to fix the ARM64 build.

Regards,
Wojtek

2016-02-02 22:17 GMT+01:00 Svatopluk Kraus <skra@freebsd.org>:

> Author: skra
> Date: Tue Feb  2 21:17:25 2016
> New Revision: 295168
> URL: https://svnweb.freebsd.org/changeset/base/295168
>
> Log:
>   Use pmap_preboot_map_attr() directly in arm_devmap_bootstrap()
>   instead of hiding behind pmap_map_chunk(). It's not longer needed
>   after old pmap-v6 code was removed.
>
>   For compatibility with __ARM_ARCH < 6, define PTE_DEVICE in devmap.c
>   file. Certainly, it would be nice if VM_MEMATTR_DEVICE could be used
>   even for __ARM_ARCH < 6.
>
> Modified:
>   head/sys/arm/arm/devmap.c
>   head/sys/arm/include/pmap-v6.h
>
> Modified: head/sys/arm/arm/devmap.c
>
> ==============================================================================
> --- head/sys/arm/arm/devmap.c   Tue Feb  2 21:11:23 2016        (r295167)
> +++ head/sys/arm/arm/devmap.c   Tue Feb  2 21:17:25 2016        (r295168)
> @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
>  #include <vm/vm.h>
>  #include <vm/vm_extern.h>
>  #include <vm/pmap.h>
> +#include <machine/acle-compat.h>
>  #include <machine/armreg.h>
>  #include <machine/devmap.h>
>  #include <machine/vmparam.h>
> @@ -52,6 +53,9 @@ static boolean_t devmap_bootstrap_done =
>  #define        PTE_DEVICE      VM_MEMATTR_DEVICE
>  #elif defined(__arm__)
>  #define        MAX_VADDR       ARM_VECTORS_HIGH
> +#if __ARM_ARCH >= 6
> +#define        PTE_DEVICE      VM_MEMATTR_DEVICE
> +#endif
>  #endif
>
>  /*
> @@ -204,8 +208,13 @@ arm_devmap_bootstrap(vm_offset_t l1pt, c
>
>         for (pd = devmap_table; pd->pd_size != 0; ++pd) {
>  #if defined(__arm__)
> +#if __ARM_ARCH >= 6
> +               pmap_preboot_map_attr(pd->pd_pa, pd->pd_va, pd->pd_size,
> +                   pd->pd_prot, pd->pd_cache);
> +#else
>                 pmap_map_chunk(l1pt, pd->pd_va, pd->pd_pa, pd->pd_size,
> -                   pd->pd_prot,pd->pd_cache);
> +                   pd->pd_prot, pd->pd_cache);
> +#endif
>  #elif defined(__aarch64__)
>                 pmap_kenter_device(pd->pd_va, pd->pd_size, pd->pd_pa);
>  #endif
>
> Modified: head/sys/arm/include/pmap-v6.h
>
> ==============================================================================
> --- head/sys/arm/include/pmap-v6.h      Tue Feb  2 21:11:23 2016
> (r295167)
> +++ head/sys/arm/include/pmap-v6.h      Tue Feb  2 21:17:25 2016
> (r295168)
> @@ -218,12 +218,6 @@ vm_offset_t pmap_preboot_reserve_pages(u
>  vm_offset_t pmap_preboot_get_vpages(u_int );
>  void pmap_preboot_map_attr(vm_paddr_t, vm_offset_t, vm_size_t, vm_prot_t,
>      vm_memattr_t);
> -static __inline void
> -pmap_map_chunk(vm_offset_t l1pt, vm_offset_t va, vm_offset_t pa,
> -    vm_size_t size, int prot, int cache)
> -{
> -       pmap_preboot_map_attr(pa, va, size, prot, cache);
> -}
>
>  #endif /* _KERNEL */
>
> @@ -256,29 +250,6 @@ pmap_map_chunk(vm_offset_t l1pt, vm_offs
>   */
>  void vector_page_setprot(int);
>
> -/*
> - * sys/arm/arm/bus_space_generic.c (just comment)
> - * sys/arm/arm/devmap.c
> - * sys/arm/arm/pmap.c (just comment)
> - * sys/arm/at91/at91_machdep.c
> - * sys/arm/cavium/cns11xx/econa_machdep.c
> - * sys/arm/freescale/imx/imx6_machdep.c (just comment)
> - * sys/arm/mv/orion/db88f5xxx.c
> - * sys/arm/mv/mv_localbus.c
> - * sys/arm/mv/mv_machdep.c
> - * sys/arm/mv/mv_pci.c
> - * sys/arm/s3c2xx0/s3c24x0_machdep.c
> - * sys/arm/versatile/versatile_machdep.c
> - * sys/arm/xscale/ixp425/avila_machdep.c
> - * sys/arm/xscale/i8134x/crb_machdep.c
> - * sys/arm/xscale/i80321/ep80219_machdep.c
> - * sys/arm/xscale/i80321/iq31244_machdep.c
> - * sys/arm/xscale/pxa/pxa_machdep.c
> - */
> -#define PTE_DEVICE     PTE2_ATTR_DEVICE
> -
> -
> -
>  #endif /* _KERNEL */
>  //
> -----------------------------------------------------------------------------
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1454472390.31394.1.camel>