From owner-svn-src-all@freebsd.org Wed Jul 20 05:08:56 2016 Return-Path: Delivered-To: svn-src-all@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 38EE2B9F4F7 for ; Wed, 20 Jul 2016 05:08:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (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 E669519D6 for ; Wed, 20 Jul 2016 05:08:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x230.google.com with SMTP id u186so108342561ita.0 for ; Tue, 19 Jul 2016 22:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=78063zK/ujFVtirHf7zN4D0t3SeDx1kAuMrFiReU7XI=; b=eqxozsPbyV1sakLNq7GmUjP8OckWlRtlRnqcDnztWp9ccxJCzhuv08PxKBAYhJsDIA tlnf4gsyrgpl4A1tSupqPBOwognikBCYC1ySCCbj540OQgJsksAbz9+6IeRkokajIdJg ezUqiFGaenYzWS6tYVivNR11YrPEfv54lhxq7WPUpQpqJ9qK4a4m5mCh92M3MYRz/nRV 4tWNChMtQjmTP5hglm4EvOlSkA9kDSsQoSLCol8RSrS7vdrrS4F6vkz9cQSmO579T0+v LdOk0SlA9oeP3RUaO+piqeLM6XAxkahTvh233sJKo5alTPa1QKSBt4dLq0VV/MZ+Vp9d V03A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=78063zK/ujFVtirHf7zN4D0t3SeDx1kAuMrFiReU7XI=; b=Agkj6liBsrsSeQelD4gTIU8OcZW49c/xkaq7TpnP6teeVdJdPpX5fKwrzbpvR2s+7j BGYN+wWvlOC6cNJd+dZJ4hApbRrdP06fN+ALziCfMcnUMONi5qFwzUhdZsBQ6lvt3/qz xfJwOm6RkizOhS7JIrd9MPSkCrYrHxxSSj+xsoncyMfk6t0XoyfsZ3vfy/C0+Tsv/r4H U5efgrZS94yMGvj3Pliv6L8mnrK4GMrtC95+C17Muz4+FGv8L53nvDSY3NIqB5cI6hkE Ar6WW55+cvACTvkDQJv0/eAkzPy4PP+41WgKRHFLGT4MfcacT1STQEVospR451y391z7 0ing== X-Gm-Message-State: ALyK8tJudS7SlUdo4k39u3fpJUR1i3/Rj5iDH43TIx4ZLSUz8LZ7BRabcgCWEbM9oeTA9tJgpbWZ+lLr94h0Yw== X-Received: by 10.36.108.194 with SMTP id w185mr7685620itb.72.1468991335103; Tue, 19 Jul 2016 22:08:55 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.137.131 with HTTP; Tue, 19 Jul 2016 22:08:54 -0700 (PDT) X-Originating-IP: [69.53.245.200] In-Reply-To: References: <201607191746.u6JHk9ov092270@repo.freebsd.org> From: Warner Losh Date: Tue, 19 Jul 2016 23:08:54 -0600 X-Google-Sender-Auth: lWvuVhxctcnFpf1escJvIECscwo Message-ID: Subject: Re: svn commit: r303033 - head/share/man/man7 To: Jan Beich Cc: Ed Maste , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 20 Jul 2016 05:08:56 -0000 On Tue, Jul 19, 2016 at 9:01 PM, Jan Beich wrote: > Ed Maste writes: > >> +.It Sy Architecture Ta Sy Page Sizes >> +.It amd64 Ta 4K, 2M, 1G > > Does FreeBSD support 1G pages nowadays? > > $ sysctl hw.pagesizes > hw.pagesizes: 4096 2097152 0 > > $ dmesg | fgrep -i 1gb > AMD Features=0x2c100800 > >> +.Ss Predefined Macros >> +The compiler provides a number of predefined macros. >> +Some of these provide architecture-specific details and are explained below. >> +Other macros, including those required by the language standard, are not >> +included here. > [...] >> +cc -x c -Dm -E /dev/null > > Typo: -Dm vs. -dM > >> +.It Dv BYTE_ORDER Ta Either Dv BIG_ENDIAN or Dv LITTLE_ENDIAN . > > Are these really compiler macros? I think, defines them. sys/endian.h defines them (and it implements that by including machine/endian.h in part). > $ clang38 -x c -dM -E /dev/null | fgrep ENDIAN > #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ > #define __LITTLE_ENDIAN__ 1 > #define __ORDER_BIG_ENDIAN__ 4321 > #define __ORDER_LITTLE_ENDIAN__ 1234 > #define __ORDER_PDP_ENDIAN__ 3412 > > $ gcc5 -x c -dM -E /dev/null | fgrep ENDIAN > #define __ORDER_LITTLE_ENDIAN__ 1234 > #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ > #define __ORDER_PDP_ENDIAN__ 3412 > #define __ORDER_BIG_ENDIAN__ 4321 > #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ This is why they are defined in machine/endian.h. Compilers have been somewhat inconsistent in the past. Warner