From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 26 18:23:11 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8BA21065670; Mon, 26 Sep 2011 18:23:11 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 239658FC12; Mon, 26 Sep 2011 18:23:10 +0000 (UTC) Received: by wyj26 with SMTP id 26so4215017wyj.13 for ; Mon, 26 Sep 2011 11:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ugGeie2JiDg53K+luXvmqcc54oH+eG3OuPSmrdzfAlk=; b=OmTFVT+NXe7gdkfyz4GVZjrMQwPZBp2A0BUvIBOkYmdXS1SQ5u/MdxhLyE+o5vTQA7 oRpDZG3frlIjwWwNx4O1TZnO/GkURG/+FrU37bmczhn50ngxG+W2yBY1ZIWDSt/DTs/I zjPkAREY9pNtwnwiiGcGzjI4YxBBwztrPB/xo= MIME-Version: 1.0 Received: by 10.227.135.130 with SMTP id n2mr7437821wbt.51.1317061389620; Mon, 26 Sep 2011 11:23:09 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Mon, 26 Sep 2011 11:23:09 -0700 (PDT) In-Reply-To: <20110922212602.GS26743@acme.spoerlein.net> References: <4E712D11.7040202@FreeBSD.org> <4E75B67E.1000802@FreeBSD.org> <20110922190535.GR26743@acme.spoerlein.net> <20110922212602.GS26743@acme.spoerlein.net> Date: Mon, 26 Sep 2011 14:23:09 -0400 Message-ID: From: Arnaud Lacombe To: Arnaud Lacombe , hackers@freebsd.org, Fabien Thomas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Fwd: my git development snapshot(s) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 18:23:11 -0000 Hi, On Thu, Sep 22, 2011 at 5:26 PM, Ulrich Sp=F6rlein wrot= e: > On Thu, 2011-09-22 at 15:52:43 -0400, Arnaud Lacombe wrote: >> Hi, >> >> On Thu, Sep 22, 2011 at 3:05 PM, Ulrich Sp=F6rlein w= rote: >> > On Sun, 2011-09-18 at 12:14:38 +0300, Andriy Gapon wrote: >> >> >> >> Just decided to follow the global trends and trying to throw all of m= y >> >> local/private changes at you in hope that the "crowd-sourcing magic" = might >> >> somehow happen :-) =A0This seems definitely easier than carefully pro= ducing the >> >> patch files and keeping them up-to-date. >> >> >> >> So, my newly cloned gitorious repository: >> >> https://gitorious.org/~avg/freebsd/avgbsd >> >> >> >> And the first branch of interest: >> >> https://gitorious.org/~avg/freebsd/avgbsd/commits/devel-20110915 >> > >> > I'll throw mine in as well: >> > >> > https://github.com/uqs/freebsd-head/branches >> > >> is that the same as tree as Fabien's, or a new snapshot ? >> >> If not, couldn't we agree to have all the same tree in order to ease >> code sharing between all of them ? >> >> I see there is already a https://github.com/freebsd/freebsd tree, >> which seem different than Fabien's tree on github. It really look like >> The FreeBSD Project (https://github.com/freebsd/) is not able to >> provide consistency. > > The freebsd-head tree is the same that everybody in the world can get by > simply running git svn clone against the FreeBSD subversion server > (you'd need a lot of patience, though). > FWIW, how comes that there is not yet any `stable/9' branch on the github t= ree ? Thanks, - Arnaud > It's also available from git.freebsd.your.org and on code.google.com > (except that Google's git backend sucks ass). > > Fabien's tree is cut off at an arbitrary date and if you happen to > choose a different date, well you cannot merge any branches with that > repository. > > http://wiki.freebsd.org/GitWorkflow > > Uli > From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 09:31:22 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497771065679 for ; Tue, 27 Sep 2011 09:31:22 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id D9C388FC0C for ; Tue, 27 Sep 2011 09:31:21 +0000 (UTC) Received: by eyg7 with SMTP id 7so5972429eyg.13 for ; Tue, 27 Sep 2011 02:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:x-mailer; bh=KAygTAcbz3rKiTK/KweLUqBK9sc5wAg2B3wFMN2qVJI=; b=Ef17fZ8bUh6osMy1/yeFcNesvfRvejP1RVkqVeI5PoxU3zxzo9LtCfIuTo8dESvRn8 o670PBedghlkZIY0D8RGb6OjkUv127KCF16aIdF2QIvISr0+s+krWha/AkZvNFR6esRE KvSz5/3HY/QITnnS8sb2DjuyOBzQtVaWWZJV4= Received: by 10.213.14.17 with SMTP id e17mr1858483eba.61.1317115880785; Tue, 27 Sep 2011 02:31:20 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id q50sm68387245eef.9.2011.09.27.02.31.18 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 02:31:19 -0700 (PDT) Message-ID: <20110927.093117.140.1@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 27 Sep 2011 11:31:17 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 09:31:22 -0000 cd /usr/src=0D=0A=0D=0AThis works:=0D=0A--=0D=0A# echo = 'CPUTYPE?=3Dcore2=0D=0ACFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_CFLAGS=3Dyes=0D=0ACOPTFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_COPTFLAGS=3Dyes' = | /usr/bin/make __MAKE_CONF=3D/dev/null -f - -V = CPUTYPE=0D=0A--=0D=0A=0D=0AThis DOESN'T:=0D=0A--=0D=0A# echo = 'CPUTYPE?=3Dcore2=0D=0ACFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_CFLAGS=3Dyes=0D=0ACOPTFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_COPTFLAGS=3Dyes' = | /usr/bin/make __MAKE_CONF=3D/dev/null -f - -j4 = buildworld=0D=0A=0D=0Amake: don't know how to make buildworld. Stop=0D=0A = (Yes, in /usr/src)=0D=0A--=0D=0A=0D=0AWhen '-f -' is removed, build = will start?=0D=0AIs this a bug or I simply don't see, an obvious = thing?=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6 From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 10:34:05 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E13121065670 for ; Tue, 27 Sep 2011 10:34:05 +0000 (UTC) (envelope-from aakuusta@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 71E838FC1B for ; Tue, 27 Sep 2011 10:34:05 +0000 (UTC) Received: by eyg7 with SMTP id 7so6076231eyg.13 for ; Tue, 27 Sep 2011 03:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type; bh=A8nyf+hvC8MrzM32VaL+BOtcSnnyBIBmkJohLonzD1A=; b=pSZX8fVg1wBTCrkErPsWshe0kC+P9e4dBv8p+pUckLw6yx7ndlNBlYOvIufduWZVxu fZYxGnz9MS3WmqPSkKxQWt7iGBM+mU+1Pdti5Y7oS2rtge9a9tqbUmEflsVNjM1jRiwn PdwAhSlSoh+/QJ+c7Z9BKBY9VkZc4zIUsrl2M= Received: by 10.14.10.155 with SMTP id 27mr1647200eev.82.1317117804129; Tue, 27 Sep 2011 03:03:24 -0700 (PDT) Received: from nil ([184.107.230.50]) by mx.google.com with ESMTPS id z54sm68719435eef.2.2011.09.27.03.03.19 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 03:03:23 -0700 (PDT) From: h h To: rank1seeker@gmail.com In-Reply-To: <20110927.093117.140.1@DEV> (rank1seeker@gmail.com's message of "Tue, 27 Sep 2011 11:31:17 +0200") Date: Tue, 27 Sep 2011 10:03:08 +0000 Message-ID: <86mxdq2tgj.fsf@gmail.com> References: <20110927.093117.140.1@DEV> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: hackers@freebsd.org Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 10:34:06 -0000 rank1seeker@gmail.com writes: > cd /usr/src > > This works: > -- > # echo 'CPUTYPE?=core2 > CFLAGS+=-march=native > NO_CPU_CFLAGS=yes > COPTFLAGS+=-march=native > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V CPUTYPE > -- [...] No, it doesn't. Try using a variable not provided from stdin $ echo 'FOO=bar' | __MAKE_CONF= make -f - -V FOO -V TGTS bar $ echo 'FOO=bar' | __MAKE_CONF=/dev/stdin make -V FOO -V TGTS bar all all-man buildenv ... $ (echo 'FOO=bar'; echo '.include "Makefile"') | __MAKE_CONF= make -f -V FOO -V TGTS bar all all-man buildenv ... According to make(1) manpage, it reads BSDmakefile, makefile or Makefile unless -f is specified. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 11:23:48 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 555A41065673 for ; Tue, 27 Sep 2011 11:23:48 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id E4F418FC12 for ; Tue, 27 Sep 2011 11:23:47 +0000 (UTC) Received: by eyg7 with SMTP id 7so6179273eyg.13 for ; Tue, 27 Sep 2011 04:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; bh=wQSEhl2yqmpuAMXQwMiYsrA6Zm/K/dUj5NEbMD8E6IM=; b=N8CxKrm7ZcKuAy9FcCUzeU1w1UI8pGhwkUCJeNOreRCro3bKGPh6DXo3jmFMVl4U22 h6x7cS8V29oinwTM39QouuCbDAbthU1WJs5qv3w5dPtoIF1gjMrkOa6h7h4OTsF29ctk s98S2L0noJt5zsCiuJmaR1rGhQ9u7+WCHiPz0= Received: by 10.14.17.162 with SMTP id j34mr2692960eej.102.1317122626800; Tue, 27 Sep 2011 04:23:46 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id q50sm69344230eef.9.2011.09.27.04.23.31 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 04:23:45 -0700 (PDT) Message-ID: <20110927.112343.546.2@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org, "h h" Date: Tue, 27 Sep 2011 13:23:43 +0200 In-Reply-To: <86mxdq2tgj.fsf@gmail.com> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 11:23:48 -0000 ----- Original Message ----- From: h h To: rank1seeker@gmail.com Cc: hackers@freebsd.org Date: Tue, 27 Sep 2011 10:03:08 +0000 Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > rank1seeker@gmail.com writes: > > > cd /usr/src > > > > This works: > > -- > > # echo 'CPUTYPE?=core2 > > CFLAGS+=-march=native > > NO_CPU_CFLAGS=yes > > COPTFLAGS+=-march=native > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V CPUTYPE > > -- > [...] > > No, it doesn't. > > According to make(1) manpage, it reads BSDmakefile, makefile or Makefile > unless -f is specified. Well, via STDIN, I've attempted to feed it, with syntaks from a 'make.conf' file, so I wouldn't have to provide file, via __MAKE_CONF. Looking again in man pages, I see that -f flag relates to Makefile syntaks and NOT to the make.conf. Thanks. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 12:17:23 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C3381065674 for ; Tue, 27 Sep 2011 12:17:23 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id CCC458FC1F for ; Tue, 27 Sep 2011 12:17:22 +0000 (UTC) Received: by eyg7 with SMTP id 7so6266648eyg.13 for ; Tue, 27 Sep 2011 05:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:x-mailer; bh=bi6NAdrj7e3ZAW8NXytG68fOJOmlUW2pAg42eQMNQ0A=; b=waFVf781wbWLXkYpYsDYQZvFp/NvRX/IRvruVs8rvstSbaJUlG9twhiuK0pwwcPg91 3fHQ5Yg1576UHciNGNfh53N8hksNWDOE25SoqFAZR9eolnsfT4viaZREU/VzDM7t67cb C96GTGYSRPGvfa7Zl3K4dNhHGVu6ZrQJTUsiQ= Received: by 10.213.13.16 with SMTP id z16mr358440ebz.96.1317125841418; Tue, 27 Sep 2011 05:17:21 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id 11sm49354853eeu.4.2011.09.27.05.17.19 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 05:17:20 -0700 (PDT) Message-ID: <20110927.121718.234.3@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 27 Sep 2011 14:17:18 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Upon crosscompile, set optimizations for target arch, breaks compilation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 12:17:23 -0000 8.2 RELEASE=0D=0AOn 32bit (i386) machine(CPU: athlonxp) I crosssompile for = 64bit (amd64) machine(CPU: core2duo) and it works.=0D=0ABut when I set = optimization in = make.conf:=0D=0A--=0D=0ACPUTYPE?=3Dcore2=0D=0ACFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_CFLAGS=3Dyes=0D=0ACOPTFLAGS+=3D-march=3Dnative=0D=0ANO_CPU_COPTFLAGS=3Dyes = =0D=0A--=0D=0A=0D=0AResults in make's vars set:=0D=0ACPUTYPE: = prescott=0D=0AMACHINE_CPU: sse3 sse2 sse i686 mmx i586 i486 = i386=0D=0A=0D=0A=0D=0ABuild fails with = error:=0D=0A--=0D=0A/usr/src/gnu/lib/libgcc/../../../contrib/gcc/libgcc2.c:1: = error: CPU you selected does not support x86-64 instruction = set=0D=0A--=0D=0A=0D=0ABecause make vars TRANSLATION was incorectly done, = as it looks in running arch instead of TARGET arch!=0D=0A=0D=0Acore2 will = be translated into prescott or nacona, depending on arch:=0D=0A = prescott --> 32bit (i386)=0D=0A nocona --> 64bit = (amd64)=0D=0A=0D=0ACPUTYPE was supposed to be = nocona=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6 From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 16:06:17 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAFDE106564A for ; Tue, 27 Sep 2011 16:06:17 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B6C48FC17 for ; Tue, 27 Sep 2011 16:06:17 +0000 (UTC) Received: by gyf2 with SMTP id 2so6788540gyf.13 for ; Tue, 27 Sep 2011 09:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=zZJhjXbQplcCqySPkWYwPOqjLqwf6gf04p5zpMuwO7A=; b=a2JGmGUlQC0t0s+JNnjJ+vK62sDPKS4h9AEzrnBfbKH7punQwtbdNZaNSVz98ZvqS+ duvOBGQORMXwZ7lQSMAIROVDQDQDAOXkhg80oOr3OTKTN8afBYlhHFLSniGxFB7GhSdO pmhUzywe8IEtCKWLNhQxOI1mnxXiB1uUm55gM= Received: by 10.42.97.8 with SMTP id l8mr3363862icn.3.1317138207218; Tue, 27 Sep 2011 08:43:27 -0700 (PDT) Received: from starr-wireless.local (c-24-6-49-154.hsd1.ca.comcast.net. [24.6.49.154]) by mx.google.com with ESMTPS id fy35sm28500791ibb.4.2011.09.27.08.43.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Sep 2011 08:43:25 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <20110927.093117.140.1@DEV> Date: Tue, 27 Sep 2011 08:43:23 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <2F3ECD4D-5EEF-4790-9FEF-809A90C8693D@gmail.com> References: <20110927.093117.140.1@DEV> To: rank1seeker@gmail.com X-Mailer: Apple Mail (2.1084) Cc: hackers@freebsd.org Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 16:06:17 -0000 On Sep 27, 2011, at 2:31 AM, rank1seeker@gmail.com wrote: > cd /usr/src >=20 > This works: > -- > # echo 'CPUTYPE?=3Dcore2 > CFLAGS+=3D-march=3Dnative > NO_CPU_CFLAGS=3Dyes > COPTFLAGS+=3D-march=3Dnative > NO_CPU_COPTFLAGS=3Dyes' | /usr/bin/make __MAKE_CONF=3D/dev/null -f - = -V CPUTYPE > -- >=20 > This DOESN'T: > -- > # echo 'CPUTYPE?=3Dcore2 > CFLAGS+=3D-march=3Dnative > NO_CPU_CFLAGS=3Dyes > COPTFLAGS+=3D-march=3Dnative > NO_CPU_COPTFLAGS=3Dyes' | /usr/bin/make __MAKE_CONF=3D/dev/null -f - = -j4 buildworld >=20 > make: don't know how to make buildworld. Stop > (Yes, in /usr/src) > -- >=20 > When '-f -' is removed, build will start? > Is this a bug or I simply don't see, an obvious thing? How are you invoking the build exactly in each case? Thanks, -Garrett= From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 16:23:54 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D4FB106566B for ; Tue, 27 Sep 2011 16:23:54 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id C7F158FC0C for ; Tue, 27 Sep 2011 16:23:53 +0000 (UTC) Received: by eyg7 with SMTP id 7so6682227eyg.13 for ; Tue, 27 Sep 2011 09:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; bh=nByYrQf45o6uKarRg3zyfk22U0dsW3AcFfCCZ83qGmk=; b=FG/4+5HIgRHwaxjkeL9m6wqdJYZWubFJiFuF5U9yx1VJebbir8sW2EKxynShqRnXDD AWf11UprUNndM5B6Bms6uInaAZ8a6+3fJc9eit+XHDNUc7NeduGQVhpE63bCnYeByWoi IlszjsmZTRa/fePSnkDWyZFjV0w3iDykTT5kw= Received: by 10.213.2.206 with SMTP id 14mr582982ebk.77.1317140632660; Tue, 27 Sep 2011 09:23:52 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id z54sm71831757eef.2.2011.09.27.09.23.42 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 09:23:50 -0700 (PDT) Message-ID: <20110927.162348.046.5@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 27 Sep 2011 18:23:48 +0200 In-Reply-To: References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 16:23:54 -0000 ----- Original Message ----- From: Chris Rees To: rank1seeker@gmail.com Cc: h h , hackers@freebsd.org Date: Tue, 27 Sep 2011 17:16:57 +0100 Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > On 27 Sep 2011 12:24, wrote: > > > > ----- Original Message ----- > > From: h h > > To: rank1seeker@gmail.com > > Cc: hackers@freebsd.org > > Date: Tue, 27 Sep 2011 10:03:08 +0000 > > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > > > > > rank1seeker@gmail.com writes: > > > > > > > cd /usr/src > > > > > > > > This works: > > > > -- > > > > # echo 'CPUTYPE?=core2 > > > > CFLAGS+=-march=native > > > > NO_CPU_CFLAGS=yes > > > > COPTFLAGS+=-march=native > > > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V > > CPUTYPE > > > > -- > > > [...] > > > > > > No, it doesn't. > > > > > > According to make(1) manpage, it reads BSDmakefile, makefile or Makefile > > > unless -f is specified. > > > > Well, via STDIN, I've attempted to feed it, with syntaks from a > 'make.conf' > > file, so I wouldn't have to provide file, via __MAKE_CONF. > > Looking again in man pages, I see that -f flag relates to Makefile syntaks > > and NOT to the make.conf. > > > > Yes, it means that make reads the Makefile from stdin instead of from the > Makefile; if you use -f then the Makefile isn't read -- the make.conf has > nothing to do with -f. > > What have you misunderstood? As far as I can see, you're contradicting > yourself. > > Chris The point is, that I've gave answer to myself. I figured it out, a little bit later ..., so it is solved now. Thank you all. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 16:46:18 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1D29106566B for ; Tue, 27 Sep 2011 16:46:18 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7DB218FC0C for ; Tue, 27 Sep 2011 16:46:18 +0000 (UTC) Received: by iadk27 with SMTP id k27so9482069iad.13 for ; Tue, 27 Sep 2011 09:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CWqSz0cCWMGZnyV4MP/BYHS2quHZvbbtcxOjP9GkcqI=; b=U/Rj7wqNBwxXsIotuQlXcQb5pED/SIW3dvF8JhwvBNrV+W2q/c5010AGTt7eOnrMVm /n0acnJvQjAzafHdKZyDcIQu0nJnPtEy5AS2FZDCkjgvbgoSzvl6fQ/+PW0ZNVigP2/U yItk4LeDVPjhdv+rXRpZTUHtO6dtPVFwedwt4= MIME-Version: 1.0 Received: by 10.231.65.73 with SMTP id h9mr10961897ibi.21.1317140218052; Tue, 27 Sep 2011 09:16:58 -0700 (PDT) Received: by 10.231.35.194 with HTTP; Tue, 27 Sep 2011 09:16:57 -0700 (PDT) Received: by 10.231.35.194 with HTTP; Tue, 27 Sep 2011 09:16:57 -0700 (PDT) In-Reply-To: <20110927.112343.546.2@DEV> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> Date: Tue, 27 Sep 2011 17:16:57 +0100 Message-ID: From: Chris Rees To: rank1seeker@gmail.com X-Mailman-Approved-At: Tue, 27 Sep 2011 17:02:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: h h , hackers@freebsd.org Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 16:46:18 -0000 On 27 Sep 2011 12:24, wrote: > > ----- Original Message ----- > From: h h > To: rank1seeker@gmail.com > Cc: hackers@freebsd.org > Date: Tue, 27 Sep 2011 10:03:08 +0000 > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > > > rank1seeker@gmail.com writes: > > > > > cd /usr/src > > > > > > This works: > > > -- > > > # echo 'CPUTYPE?=core2 > > > CFLAGS+=-march=native > > > NO_CPU_CFLAGS=yes > > > COPTFLAGS+=-march=native > > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V > CPUTYPE > > > -- > > [...] > > > > No, it doesn't. > > > > According to make(1) manpage, it reads BSDmakefile, makefile or Makefile > > unless -f is specified. > > Well, via STDIN, I've attempted to feed it, with syntaks from a 'make.conf' > file, so I wouldn't have to provide file, via __MAKE_CONF. > Looking again in man pages, I see that -f flag relates to Makefile syntaks > and NOT to the make.conf. > Yes, it means that make reads the Makefile from stdin instead of from the Makefile; if you use -f then the Makefile isn't read -- the make.conf has nothing to do with -f. What have you misunderstood? As far as I can see, you're contradicting yourself. Chris From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 17:15:56 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43E6D106564A for ; Tue, 27 Sep 2011 17:15:56 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F5568FC0C for ; Tue, 27 Sep 2011 17:15:55 +0000 (UTC) Received: by iadk27 with SMTP id k27so9523347iad.13 for ; Tue, 27 Sep 2011 10:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=th7W3lgLrRCtA53RpsDi0AHXu7cTl3f5fxIjcoHNQN0=; b=xS2FCW158RyVpkkFAkylusjKHF3nC6jf+52Zk8DQvIOiC+aPTVBSeQUO7aNxk3HP8N TZmJ/kuvkuAk9vVjtFmsArrRl3GxUNICEWuwDAO7O1jGKSFrMDdf/FssNfkT9vawnSaI /714+M+L4iQ87ND4Bk9UaA8RsuZmlKWDGl200= Received: by 10.231.65.73 with SMTP id h9mr11053693ibi.21.1317143755147; Tue, 27 Sep 2011 10:15:55 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.35.194 with HTTP; Tue, 27 Sep 2011 10:15:25 -0700 (PDT) In-Reply-To: <20110927.162348.046.5@DEV> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> <20110927.162348.046.5@DEV> From: Chris Rees Date: Tue, 27 Sep 2011 18:15:25 +0100 X-Google-Sender-Auth: 63AyaeH96VaV85_ban_0TRTtg9k Message-ID: To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: hackers@freebsd.org Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:15:56 -0000 On 27 September 2011 17:23, wrote: > ----- Original Message ----- > From: Chris Rees > To: rank1seeker@gmail.com > Cc: h h , hackers@freebsd.org > Date: Tue, 27 Sep 2011 17:16:57 +0100 > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > >> On 27 Sep 2011 12:24, wrote: >> > >> > ----- Original Message ----- >> > From: h h >> > To: rank1seeker@gmail.com >> > Cc: hackers@freebsd.org >> > Date: Tue, 27 Sep 2011 10:03:08 +0000 >> > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is > used >> > >> > > rank1seeker@gmail.com writes: >> > > >> > > > cd /usr/src >> > > > >> > > > This works: >> > > > -- >> > > > # echo 'CPUTYPE?=core2 >> > > > CFLAGS+=-march=native >> > > > NO_CPU_CFLAGS=yes >> > > > COPTFLAGS+=-march=native >> > > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V >> > CPUTYPE >> > > > -- >> > > [...] >> > > >> > > No, it doesn't. >> > > >> > > According to make(1) manpage, it reads BSDmakefile, makefile or > Makefile >> > > unless -f is specified. >> > >> > Well, via STDIN, I've attempted to feed it, with syntaks from a >> 'make.conf' >> > file, so I wouldn't have to provide file, via __MAKE_CONF. >> > Looking again in man pages, I see that -f flag relates to Makefile > syntaks >> > and NOT to the make.conf. >> > >> >> Yes, it means that make reads the Makefile from stdin instead of from the >> Makefile; if you use -f then the Makefile isn't read -- the make.conf has >> nothing to do with -f. >> >> What have you misunderstood? As far as I can see, you're contradicting >> yourself. >> >> Chris > > > The point is, that I've gave answer to myself. > I figured it out, a little bit later ..., so it is solved now. > Thank you all. Great to hear it's solved, and thanks for letting us know. Makefiles can be confusing territory at times. Chris From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 04:23:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAC8B106566C for ; Wed, 28 Sep 2011 04:23:07 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 66F258FC13 for ; Wed, 28 Sep 2011 04:23:06 +0000 (UTC) Received: by wyj26 with SMTP id 26so6483350wyj.13 for ; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TJgv5o/wL3ODI3iUyW7ULnqQ+8U3aULgpDMeQ1ZcI6Q=; b=PsRRK0ZpK6KyRwqNaIHnu39i5AMa2q13bLSrzLUU6J9XaO0d3mYkCiFpZm3BmVUNoA PTkZGD/cEhlK4LTfF7fLtr4lAm44pEpePw4hXh7zHi75XhqxC7RT4aEwP5Q/TFtEytE7 KuGQhiYZZPA+stI4Oo3OhV5SFXpNSUrF1FM7U= MIME-Version: 1.0 Received: by 10.227.36.197 with SMTP id u5mr9644401wbd.36.1317183786259; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) Date: Wed, 28 Sep 2011 00:23:06 -0400 Message-ID: From: Arnaud Lacombe To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Hackers Subject: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 04:23:07 -0000 Hi, [Moving the discussion on -hackers@] On Tue, Sep 27, 2011 at 6:02 PM, Arnaud Lacombe wrote: > Hi, > > On Tue, Sep 27, 2011 at 5:01 PM, Peter Jeremy wrote= : >> On 2011-Sep-26 19:48:23 -0400, Benjamin Kaduk wrote: >>>On Mon, 26 Sep 2011, Arnaud Lacombe wrote: >>>> The problem with /boot on a dedicated partition is the the kernel, >>>> since at least 8.x, is installed by default with a vast majority of >>>> crap. That's all the .symbols, that 99% of FreeBSD users will never >>>> uses. >>> >>>My recollection is that this is because kensmith forgot to take >>>'makeoptions DEBUG=3D-g' out of GENERIC when branching stable/8, and no = one >> >> Not quite - 'DEBUG=3D-g' was a deliberate move to make it easier for >> developers to talk users through faultfinding kernel issues. >> >> The correct fix is to install the .symbols files somewhere other than >> /boot/kernel - unfortunately, no-one has developed the necessary >> changes to the kernel installation. >> > I did too, will put patches online soon. > available here: https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab95= 76c687fd This patch adds a KODIR_SYMBOLS variables which is to the kernel and modules .symbols files what the KODIR variable is to the kernel and modules files. By default ${KODIR_SYMBOLS} =3D ${KODIR}. =A0- Arnaud From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 04:29:48 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 387DC106564A; Wed, 28 Sep 2011 04:29:48 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 93A1A8FC0A; Wed, 28 Sep 2011 04:29:47 +0000 (UTC) Received: by wyj26 with SMTP id 26so6487789wyj.13 for ; Tue, 27 Sep 2011 21:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=poLM9rZtv7U+K1Dzyb/VrTApvtJi8/u9pZSWRNNt4fg=; b=sL8BVyhOPLxSjDYF44tiMct86TAwyqSZ6BV/kbRIvcWC006fiFhgtqliyI0fBeNN2I RQDwuZK9+5aX5U/h/wkWxr2wZwgW0NbCYEM5NCP6Fkz60X6lf97JoJHvaEXaix2j9KNI 6e2HN+WR/gM2OXJWgnjYckkn8Pk0PFf2rY+NE= MIME-Version: 1.0 Received: by 10.227.175.77 with SMTP id w13mr8259244wbz.36.1317184186349; Tue, 27 Sep 2011 21:29:46 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Tue, 27 Sep 2011 21:29:46 -0700 (PDT) In-Reply-To: <4E75B67E.1000802@FreeBSD.org> References: <4E712D11.7040202@FreeBSD.org> <4E75B67E.1000802@FreeBSD.org> Date: Wed, 28 Sep 2011 00:29:46 -0400 Message-ID: From: Arnaud Lacombe To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: my git development snapshot(s) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 04:29:48 -0000 Hi, On Sun, Sep 18, 2011 at 5:14 AM, Andriy Gapon wrote: > > Just decided to follow the global trends and trying to throw all of my > local/private changes at you in hope that the "crowd-sourcing magic" migh= t > somehow happen :-) =A0This seems definitely easier than carefully produci= ng the > patch files and keeping them up-to-date. > > So, my newly cloned gitorious repository: > https://gitorious.org/~avg/freebsd/avgbsd > and mine: https://github.com/lacombar/freebsd/branches not much stuff for now, but should fill up in the next few days. This a fork from the freebsd/freebsd.git tree on github, with only stable branches in it (ie. none of the >2k branches of the original clone), plus my stuff. - Arnaud > And the first branch of interest: > https://gitorious.org/~avg/freebsd/avgbsd/commits/devel-20110915 > > This is a snapshot of almost all of my local changes to the FreeBSD src t= ree. > Please note that the branch is not intended to be public in the git sense= . =A0That > is, there will be no linear history - I periodically rebase my changes on= top of > the svn head and also frequently reshuffle/merge/split commits. > The snapshot is not tidied up, there are quite a few commits that should = be > merged into other commits, some commit messages are not accurate/pretty, = etc. > The older the commits, the more mature they are supposed to be. > > Based on the above, no new commits are expected to this snapshot branch. > I will produce new snapshot branches from time to time. > > I am posting this information to this list initially, later I plan to sha= re the > code with the wider audience e.g. via hackers@. > > P.S. This code sharing is made easier for me by git, Gitorious and "git r= ebase > --onto" in particular. =A0Thanks to Fabien Thomas for the initial FreeBSD= clone > repository at Gitorious! > > -- > Andriy Gapon > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 04:55:59 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF4871065676 for ; Wed, 28 Sep 2011 04:55:59 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 548958FC13 for ; Wed, 28 Sep 2011 04:55:58 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.44]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p8S4ti76019572 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 28 Sep 2011 14:25:49 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-1 From: "Daniel O'Connor" In-Reply-To: Date: Wed, 28 Sep 2011 14:25:44 +0930 Content-Transfer-Encoding: quoted-printable Message-Id: <7DD72B7A-CEA9-4389-9C86-E64DAB98862B@gsoft.com.au> References: To: Arnaud Lacombe X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -4.391 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: FreeBSD Hackers Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 04:55:59 -0000 On 28/09/2011, at 13:53, Arnaud Lacombe wrote: > = https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab9= 576c687fd >=20 > This patch adds a KODIR_SYMBOLS variables which is to the kernel and > modules .symbols files what the KODIR variable is to the kernel and > modules files. By default ${KODIR_SYMBOLS} =3D ${KODIR}. Hooray, thanks :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 07:04:24 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE8AD106566B for ; Wed, 28 Sep 2011 07:04:24 +0000 (UTC) (envelope-from aakuusta@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9ACA98FC16 for ; Wed, 28 Sep 2011 07:04:24 +0000 (UTC) Received: by gyf2 with SMTP id 2so7551815gyf.13 for ; Wed, 28 Sep 2011 00:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:subject:in-reply-to:date:message-id:references:user-agent :x-from-line:cc:x-gnus-newsgroup:mime-version:content-type; bh=S6dTIkqRWVtff5qZx/jUHShC3rWafQLGOC7bE3kP734=; b=B5814UmVG6RhcC+OcSQanNhcAGGzCSCInCyWZWjNrIsn3OaLQ5Uy7BgO+p2EiWWZcH CJgMJU9cCgm8oSicVnULMX+msuwKapcqdKXqJsta256T0v0udPNCO8R+o5UViMKFrWBD 8WMw/nSLYKeSZwxN6aXXkQalFw8cUXt4X8ROQ= Received: by 10.150.69.26 with SMTP id r26mr5873961yba.322.1317191956357; Tue, 27 Sep 2011 23:39:16 -0700 (PDT) Received: from nil (torexit2.pointless-enterprises.com. [46.166.137.253]) by mx.google.com with ESMTPS id h10sm320586ybg.23.2011.09.27.23.39.12 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 23:39:15 -0700 (PDT) From: h h In-Reply-To: <20110927.112343.546.2@DEV> (rank1seeker@gmail.com's message of "Tue, 27 Sep 2011 13:23:43 +0200") Date: Wed, 28 Sep 2011 06:38:53 +0000 Message-ID: <86k48uyylg.fsf@gmail.com> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (berkeley-unix) X-From-Line: nobody Tue Sep 27 16:11:07 2011 CC: freebsd-hackers@freebsd.org X-Gnus-Newsgroup: sent:1785 Tue Sep 27 16:11:07 2011 MIME-Version: 1.0 Content-Type: text/plain Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 07:04:24 -0000 (examples are probably useful for the archive, too) rank1seeker@gmail.com writes: >> According to make(1) manpage, it reads BSDmakefile, makefile or Makefile >> unless -f is specified. > > Well, via STDIN, I've attempted to feed it, with syntaks from a 'make.conf' > file, so I wouldn't have to provide file, via __MAKE_CONF. So, did the example with __MAKE_CONF=/dev/stdin help? It allows you to omit specifying makefile via `-f' or `.include'. More examples # append CFLAGS by overriding make.conf $ echo 'CFLAGS += -DDEBUG_LOCKS' | __MAKE_CONF=/dev/stdin make buildworld # append make.conf even if __MAKE_CONF is defined but empty $ (cat ${__MAKE_CONF-/etc/make.conf} /dev/null; echo 'CFLAGS += -DDEBUG_LOCKS') \ | __MAKE_CONF=/dev/stdin make buildworld > Looking again in man pages, I see that -f flag relates to Makefile syntaks > and NOT to the make.conf. From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 12:29:43 2011 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B2AB106566B for ; Wed, 28 Sep 2011 12:29:43 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C78CE8FC13 for ; Wed, 28 Sep 2011 12:29:42 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA28590; Wed, 28 Sep 2011 15:29:37 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4E831330.6050000@FreeBSD.org> Date: Wed, 28 Sep 2011 15:29:36 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110907 Thunderbird/6.0.2 MIME-Version: 1.0 To: Arnaud Lacombe References: In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:29:43 -0000 on 28/09/2011 07:23 Arnaud Lacombe said the following: > available here: > > https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab9576c687fd > > This patch adds a KODIR_SYMBOLS variables which is to the kernel and > modules .symbols files what the KODIR variable is to the kernel and > modules files. By default ${KODIR_SYMBOLS} = ${KODIR}. I think that this patch doesn't cover the case of doing make install in a module directory (i.e. module built/installed independently from a kernel). KMODDIR_SYMBOLS should have a default value like KMODDIR does (in bsd.own.mk). -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 14:30:08 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03CC4106564A for ; Wed, 28 Sep 2011 14:30:07 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 86AC48FC0C for ; Wed, 28 Sep 2011 14:30:07 +0000 (UTC) Received: by wwe3 with SMTP id 3so8374829wwe.31 for ; Wed, 28 Sep 2011 07:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g2bDwwJO8yIuJ7Cnqgh0t/4U11J1zXZ6XiedIiREkF8=; b=K7Ltfz9rs0xkLNSlX27oArhl+t8N7wWu3nBJdrBelF8FAPIUbJXaEJUrS4ZMFXREGi vLcrt3tFSuAm8qumm/dAmwfr8FoNjZ9yW6G4glKhglP6tOJddgWK4lryUKFgq1bl4NRw grAvMFiIMNHRik3WkITndIkPjDkO6kSDl+KSo= MIME-Version: 1.0 Received: by 10.227.19.134 with SMTP id a6mr1390301wbb.105.1317220206404; Wed, 28 Sep 2011 07:30:06 -0700 (PDT) Received: by 10.180.96.104 with HTTP; Wed, 28 Sep 2011 07:30:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Sep 2011 10:30:06 -0400 Message-ID: From: Ryan Stone To: Arnaud Lacombe Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Hackers Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:30:08 -0000 You might be interested in this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=153157&cat= This does the same thing for userland .symbols files, and teaches gdb how to find them. From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 14:38:55 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 904FA106564A; Wed, 28 Sep 2011 14:38:55 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EEFFF8FC12; Wed, 28 Sep 2011 14:38:54 +0000 (UTC) Received: by wyj26 with SMTP id 26so78205wyj.13 for ; Wed, 28 Sep 2011 07:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EynBRZgyPog5he87UjFMerWnnULGgcrF3Zi7pNpF0+I=; b=lNwHJJP6B7nCSf309//kZr74RlbeoHLTjnWzTcttheAWJ+VEfPeiqHpE3uyvWnAAet C2Mrup4KJ77cq2drGRxXxb9cHRHkIT2fCraBrstVkf36xFslQPxPWxHsNj/4zC2SExwv YlneS3lggEtfQMfT8pse/o4z7x5RgOcq+U1ps= MIME-Version: 1.0 Received: by 10.227.7.27 with SMTP id b27mr8954644wbb.51.1317220733973; Wed, 28 Sep 2011 07:38:53 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Wed, 28 Sep 2011 07:38:53 -0700 (PDT) In-Reply-To: <4E831330.6050000@FreeBSD.org> References: <4E831330.6050000@FreeBSD.org> Date: Wed, 28 Sep 2011 10:38:53 -0400 Message-ID: From: Arnaud Lacombe To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Hackers Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:38:55 -0000 Hi, On Wed, Sep 28, 2011 at 8:29 AM, Andriy Gapon wrote: > on 28/09/2011 07:23 Arnaud Lacombe said the following: >> available here: >> >> https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab9576c687fd >> >> This patch adds a KODIR_SYMBOLS variables which is to the kernel and >> modules .symbols files what the KODIR variable is to the kernel and >> modules files. By default ${KODIR_SYMBOLS} = ${KODIR}. > > I think that this patch doesn't cover the case of doing make install in a module > directory (i.e. module built/installed independently from a kernel). > KMODDIR_SYMBOLS should have a default value like KMODDIR does (in bsd.own.mk). > that's trivial to fix. As I won't commit that anyway, and the patch will not be taken as-is, feel free to make the change. Still, I may end-up doing it by myself when I'll need it. - Arnaud > -- > Andriy Gapon > From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 14:48:09 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D68EE106566B for ; Wed, 28 Sep 2011 14:48:09 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 365028FC13 for ; Wed, 28 Sep 2011 14:48:08 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p8SElxGt043670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Sep 2011 17:47:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p8SElxnk048083; Wed, 28 Sep 2011 17:47:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p8SElxCv048082; Wed, 28 Sep 2011 17:47:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 28 Sep 2011 17:47:59 +0300 From: Kostik Belousov To: Ryan Stone Message-ID: <20110928144759.GC1511@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2UusUvefyJ2PB+/T" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: FreeBSD Hackers , Arnaud Lacombe , Mark Johnston Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:48:09 -0000 --2UusUvefyJ2PB+/T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 28, 2011 at 10:30:06AM -0400, Ryan Stone wrote: > You might be interested in this PR: >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D153157&cat=3D >=20 > This does the same thing for userland .symbols files, and teaches gdb > how to find them. The patch is not committable as is. In particular, the patch hardcodes the /usr/src as the source location. I think the right thing to do is to install the stripbin.sh into usr/bin, might be under the name like freebsd_stripbin. Also, I think the script should use the full pathes to the utilities, but I am not sure about this part, esp. in regard the cross-build. --2UusUvefyJ2PB+/T Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6DM58ACgkQC3+MBN1Mb4hqxACfe8kq+hckGrm/oKYfOuMsQQan h+oAoPPcJjfXrRE0VgQ0jNB8/yezT5Gd =61K6 -----END PGP SIGNATURE----- --2UusUvefyJ2PB+/T-- From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 17:05:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48A6C106566B for ; Wed, 28 Sep 2011 17:05:34 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0334E8FC0C for ; Wed, 28 Sep 2011 17:05:33 +0000 (UTC) Received: by ywp17 with SMTP id 17so8319814ywp.13 for ; Wed, 28 Sep 2011 10:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=RL2Wlz23NPoRoFmhAn5hM541rGvamBVbWb+dl2i4Ojc=; b=wLhde/4TNa6uZsoz/A5l4Cly5jxUJvkpEptUHXA//Rzvqsog0zJPvgfUmo3oyOxOeA hv6kKsjGVSk6RiBlm79HLX/sgQKm+b5OFtPinMrcSfgqsNwBTp7CDR5WOSA10X4KGJ4D g335D748TPAqTBQe6BBFwgfkEb/7sSn/yxMbs= Received: by 10.236.123.37 with SMTP id u25mr58777374yhh.50.1317228083201; Wed, 28 Sep 2011 09:41:23 -0700 (PDT) Received: from pikachu.uwaterloo.ca (129-97-197-61.uwaterloo.ca. [129.97.197.61]) by mx.google.com with ESMTPS id x12sm39013285yhi.10.2011.09.28.09.41.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 09:41:21 -0700 (PDT) Date: Wed, 28 Sep 2011 12:40:55 -0400 From: Mark Johnston To: Kostik Belousov Message-ID: <20110928164055.GA2624@pikachu.uwaterloo.ca> References: <20110928144759.GC1511@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110928144759.GC1511@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Hackers , Ryan Stone , Arnaud Lacombe Subject: Re: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 17:05:34 -0000 On Wed, Sep 28, 2011 at 05:47:59PM +0300, Kostik Belousov wrote: > On Wed, Sep 28, 2011 at 10:30:06AM -0400, Ryan Stone wrote: > > You might be interested in this PR: > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=153157&cat= > > > > This does the same thing for userland .symbols files, and teaches gdb > > how to find them. > > The patch is not committable as is. In particular, the patch hardcodes > the /usr/src as the source location. > > I think the right thing to do is to install the stripbin.sh into usr/bin, > might be under the name like freebsd_stripbin. Also, I think the script > should use the full pathes to the utilities, but I am not sure about > this part, esp. in regard the cross-build. Ok, I'll look at fixing this. At a quick glance, I don't see any way to replace the hardcoded /usr/src with a variable, since bsd.own.mk can be included from anywhere within the tree. So maybe installing stripbin.sh to /usr/bin is the only way to go. I'll also do some testing with cross-builds and send a revised patch to the PR. -Mark From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 20:36:27 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 633A0106566B for ; Wed, 28 Sep 2011 20:36:27 +0000 (UTC) (envelope-from axel@ucs.com) Received: from exchange.ranch.com (ranch.com [184.183.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id 44FEB8FC1C for ; Wed, 28 Sep 2011 20:36:27 +0000 (UTC) Received: from localhost (70.176.122.205) by exchange.ranch.com (10.1.1.64) with Microsoft SMTP Server id 8.1.436.0; Wed, 28 Sep 2011 13:26:16 -0700 Date: Wed, 28 Sep 2011 13:26:47 -0700 From: Colin Barnabas To: Message-ID: <20110928202647.GA8284@hs1.VERBENA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Wed, 28 Sep 2011 20:52:24 +0000 Subject: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 20:36:27 -0000 I found a hello world program written in assembly language which runs on my amd64 8.2 stable box. However, I can not seem to get it to print a new line. Any suggestions on how to print a line feed in assembly? Here is the code- section .data message: db 'hello, world!', 0x0a section .text global _start _start: mov rax, 4 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 1 xor rdi, rdi syscall From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 21:17:09 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id EC7B81065670 for ; Wed, 28 Sep 2011 21:17:09 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 66B5414FCB1; Wed, 28 Sep 2011 21:17:09 +0000 (UTC) Message-ID: <4E838ED4.5000006@FreeBSD.org> Date: Wed, 28 Sep 2011 14:17:08 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20110928 Thunderbird/7.0 MIME-Version: 1.0 To: Colin Barnabas References: <20110928202647.GA8284@hs1.VERBENA> In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:17:10 -0000 On 09/28/2011 13:26, Colin Barnabas wrote: > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? No, we will not help you do your compsci homework. :) -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 21:17:42 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6268A1065675 for ; Wed, 28 Sep 2011 21:17:42 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og122.obsmtp.com (exprod7og122.obsmtp.com [64.18.2.22]) by mx1.freebsd.org (Postfix) with ESMTP id 16ADD8FC23 for ; Wed, 28 Sep 2011 21:17:39 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob122.postini.com ([64.18.6.12]) with SMTP ID DSNKToOO81Rm44iLfcXWI5dgI0jM2z4Q2KNC@postini.com; Wed, 28 Sep 2011 14:17:41 PDT Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 28 Sep 2011 14:13:50 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::8002:d3e7:4146:af5f]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Wed, 28 Sep 2011 17:13:49 -0400 From: Andrew Duane To: Colin Barnabas , "freebsd-hackers@freebsd.org" Date: Wed, 28 Sep 2011 17:13:47 -0400 Thread-Topic: Hello World assembly language Thread-Index: Acx+IJAQRuaP8s+7T6aamqN2aC17lAAAugKg Message-ID: References: <20110928202647.GA8284@hs1.VERBENA> In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:17:42 -0000 Add a 0x0d to the end of the string (0xa =3D LF, 0xd =3D CR) =A0................................... Andrew Duane Juniper Networks o=A0=A0=A0+1 978 589 0551 m=A0 +1 603-770-7088 aduane@juniper.net =A0 > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Colin Barnabas > Sent: Wednesday, September 28, 2011 1:27 PM > To: freebsd-hackers@freebsd.org > Subject: Hello World assembly language >=20 > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? >=20 > Here is the code- >=20 > section .data >=20 > message: > db 'hello, world!', 0x0a >=20 > section .text >=20 > global _start > _start: > mov rax, 4 > mov rdi, 1 > mov rsi, message > mov rdx, 13 > syscall >=20 > mov rax, 1 > xor rdi, rdi > syscall >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 21:18:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EC910656DB for ; Wed, 28 Sep 2011 21:18:02 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7A4988FC19 for ; Wed, 28 Sep 2011 21:18:01 +0000 (UTC) Received: by wwn22 with SMTP id 22so2180418wwn.1 for ; Wed, 28 Sep 2011 14:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=bxSirE0NEZp8UDEZ3BlESacVQwjg5NjOhXC36Z1bhaw=; b=MaNTorOTehl7kDK63B0pl0agkJnE9tWfTKKUQNT4KylEvme3sINSp1m0uyY9ZBo3Uz QDipodXEfUUu4l6+TaoG3prgSQncXDIpBqHZrjjcQCDBHb8/r/CJtzwttfLrDWDnb/0x U8TlCLJuLt6S8KX8BvHXaWbVkcGjqzeZyQLb0= MIME-Version: 1.0 Received: by 10.227.19.134 with SMTP id a6mr1852170wbb.105.1317244680312; Wed, 28 Sep 2011 14:18:00 -0700 (PDT) Received: by 10.180.96.104 with HTTP; Wed, 28 Sep 2011 14:18:00 -0700 (PDT) In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA> Date: Wed, 28 Sep 2011 17:18:00 -0400 Message-ID: From: Ryan Stone To: Colin Barnabas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:18:02 -0000 On Wed, Sep 28, 2011 at 4:26 PM, Colin Barnabas wrote: > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? > > Here is the code- > > section .data > > message: > db =A0 =A0 =A0'hello, world!', 0x0a > > section .text > > global _start > _start: > mov =A0 =A0 rax, 4 > mov =A0 =A0 rdi, 1 > mov =A0 =A0 rsi, message > mov =A0 =A0 rdx, 13 > syscall > > mov =A0 =A0 rax, 1 > xor =A0 =A0 rdi, rdi > syscall Try printing 14 bytes. :) From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 21:38:06 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07629106566B for ; Wed, 28 Sep 2011 21:38:06 +0000 (UTC) (envelope-from duihi77@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C93128FC14 for ; Wed, 28 Sep 2011 21:38:05 +0000 (UTC) Received: by iadk27 with SMTP id k27so11669588iad.13 for ; Wed, 28 Sep 2011 14:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eP7XtFWz7XZzvXD7mD4AmJ65NtUKyHHhXM5PytZ6N9I=; b=KeQH0XiYM1il18Zc3x49bop18Hd+sIwLPyLVL3yFLyudqvEmwkI5p4LpFJRiv6/Ats lkZH5QUlLsdgspNHCEA/T6iRpa7lkpFqrrzDmRCZegSNcb2b7RQYDv4kJYU2OyY5jcZD eJ1XH8MLJKK7iCUlhidxOKOz4vDh03t4NyR1A= MIME-Version: 1.0 Received: by 10.231.25.229 with SMTP id a37mr13780424ibc.8.1317244215782; Wed, 28 Sep 2011 14:10:15 -0700 (PDT) Received: by 10.231.34.9 with HTTP; Wed, 28 Sep 2011 14:10:15 -0700 (PDT) In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA> Date: Wed, 28 Sep 2011 21:10:15 +0000 Message-ID: From: Duane Hill To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:38:06 -0000 On Wed, Sep 28, 2011 at 8:26 PM, Colin Barnabas wrote: > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? > > Here is the code- > > section .data > > message: > db 'hello, world!', 0x0a > > section .text > > global _start > _start: > mov rax, 4 > mov rdi, 1 > mov rsi, message > mov rdx, 13 > syscall > > mov rax, 1 > xor rdi, rdi > syscall > > Here's the site I used years ago: http://www.int80h.org/bsdasm/ It has a 'Helo, World' example. -- duihi77 From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 22:13:12 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03B7C106564A for ; Wed, 28 Sep 2011 22:13:12 +0000 (UTC) (envelope-from misconfiguration@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0288FC12 for ; Wed, 28 Sep 2011 22:13:11 +0000 (UTC) Received: by wwe3 with SMTP id 3so82674wwe.31 for ; Wed, 28 Sep 2011 15:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=l4rr587CtoJLyzPi7cwFaRJuDt/gVqZrLrfyBdZFWYg=; b=D/AUE01opWZoH9Oamin3O1xRFnsREPgNk64zWac63XEp+CCh2s3EYY8zVsy4V38Ihv OkOnERSIya0hghxUxJSVpc0FQhSiRUMDZe8gefljyhdG2U11V/U4+vef47Xr3eynX/Hm WbSJVPo1MzO6OW+LN+4o7N6OIdeHEYrbxdY2I= MIME-Version: 1.0 Received: by 10.227.38.66 with SMTP id a2mr9951917wbe.81.1317246194889; Wed, 28 Sep 2011 14:43:14 -0700 (PDT) Received: by 10.180.82.97 with HTTP; Wed, 28 Sep 2011 14:43:14 -0700 (PDT) In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA> Date: Wed, 28 Sep 2011 17:43:14 -0400 Message-ID: From: Nate Dobbs To: Colin Barnabas Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 22:13:12 -0000 Alter the stuff in red, the message will print irrespective of your `message' length. Change 13 to 14. section .data message: db 'hello, world!', 0x0a message_len equ $-message section .text global _start _start: mov rax, 4 mov rdi, 1 mov rsi, message mov rdx, *message_len* syscall mov rax, 1 xor rdi, rdi syscall On Wed, Sep 28, 2011 at 4:26 PM, Colin Barnabas wrote: > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? > > Here is the code- > > section .data > > message: > db 'hello, world!', 0x0a > > section .text > > global _start > _start: > mov rax, 4 > mov rdi, 1 > mov rsi, message > mov rdx, 13 > syscall > > mov rax, 1 > xor rdi, rdi > syscall > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Cheers, Nate Dobbs RHCE From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 23:03:49 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DF5F106564A for ; Wed, 28 Sep 2011 23:03:49 +0000 (UTC) (envelope-from lgj@usenix.org) Received: from lonestar.usenix.org (lonestar.usenix.org [131.106.3.102]) by mx1.freebsd.org (Postfix) with ESMTP id 0662A8FC15 for ; Wed, 28 Sep 2011 23:03:48 +0000 (UTC) Received: from negroni.usenix.org (negroni.usenix.org [131.106.3.145]) (authenticated bits=0) by lonestar.usenix.org (8.14.2/8.14.2) with ESMTP id p8SMqZxG021570 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 28 Sep 2011 15:53:20 -0700 (PDT) From: Lionel Garth Jones Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 28 Sep 2011 15:53:19 -0700 Message-Id: <8CFDB50F-142B-4138-9099-99167FCA0F28@usenix.org> To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-DCC-Usenix-Metrics: lonestar; whitelist X-Spam-Status: No, score=0.7 required=6.0 tests=ALL_TRUSTED, FH_DATE_PAST_20XX autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on lonestar X-Mailman-Approved-At: Wed, 28 Sep 2011 23:08:38 +0000 Subject: USENIX ATC '12 Call for Papers Now Available X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 23:03:49 -0000 On behalf of the 2012 USENIX Annual Technical Conference (USENIX ATC '12) program committee, we invite you to submit original and innovative papers to the Refereed Papers Track. We seek high-quality submissions that further the knowledge and understanding of modern computing systems, with an emphasis on implementations and experimental results. We encourage papers that break new ground or present insightful results based on practical experience with computer systems. USENIX ATC has a broad scope, and specific topics of interest include but are not limited to: * Architectural interaction * Cloud computing * Deployment experience * Distributed and parallel systems * Embedded systems * Energy/power management * File and storage systems * Mobile, wireless, and sensor systems * Networking and network services * Operating systems * Reliability, availability, and scalability * Security, privacy, and trust * System and network management and troubleshooting * Usage studies and workload characterization * Virtualization Paper titles and abstracts are due by 11:59 p.m. EST on Tuesday, January 10, 2012; complete paper submissions are due by 11:59 p.m. EST on Tuesday, January 17, 2012. These are hard deadlines; no extensions will be given. For more details on the submission process, please see the complete Call for Papers at http://www.usenix.org/atc12/cfpa/ We look forward to your submissions. Gernot Heiser, NICTA and University of New South Wales Wilson Hsieh, Google USENIX ATC '12 Program Co-Chairs atc12chairs@usenix.org --------------------------------------- Call for Papers 2012 USENIX Annual Technical Conference June 13-15, 2012, Boston, MA http://www.usenix.org/atc12/cfpa/ Paper titles and abstracts due: January 10, 2012, 11:59 p.m. EST Complete paper submissions due: January 17, 2012, 11:59 p.m. EST --------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 01:20:58 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 240C4106566C for ; Thu, 29 Sep 2011 01:20:58 +0000 (UTC) (envelope-from grog@lemis.com) Received: from w3.lemis.com (w3.lemis.com [208.86.224.149]) by mx1.freebsd.org (Postfix) with ESMTP id EA3258FC13 for ; Thu, 29 Sep 2011 01:20:57 +0000 (UTC) Received: from dereel.lemis.com (1032.x.rootbsd.net [208.86.224.149]) by w3.lemis.com (Postfix) with ESMTP id 412EE3BAB1; Thu, 29 Sep 2011 01:03:32 +0000 (UTC) Received: by dereel.lemis.com (Postfix, from userid 1004) id C8A9FDAE69; Thu, 29 Sep 2011 11:03:30 +1000 (EST) Date: Thu, 29 Sep 2011 11:03:30 +1000 From: Greg 'groggy' Lehey To: Andrew Duane Message-ID: <20110929010330.GD50397@dereel.lemis.com> References: <20110928202647.GA8284@hs1.VERBENA> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: The FreeBSD Project Phone: +61-3-5346-1370 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: FreeBSD Hackers Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 01:20:58 -0000 --DiL7RhKs8rK9YGuF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [sequence recovered] On Wednesday, 28 September 2011 at 17:13:47 -0400, Andrew Duane wrote: > On Wednesday, September 28, 2011 1:27 PM, Colin Barnabas wrote: >> >> I found a hello world program written in assembly language which >> runs on my amd64 8.2 stable box. However, I can not seem to get >> it to print a new line. Any suggestions on how to print a line >> feed in assembly? > > Add a 0x0d to the end of the string (0xa = LF, 0xd = CR) No, that is a Microsoftism. UNIX doesn't use \r to terminate a line. Others have pointed out that this was a length issue. Greg -- Sent from my desktop computer Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft MUA reports problems, please read http://tinyurl.com/broken-mua --DiL7RhKs8rK9YGuF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk6Dw+IACgkQIubykFB6QiPi8wCfWcGXRDZFTwWtktWZk+L2hcUo ESIAoIfCJLPIUzkKW6GIKjrCWq4lswg8 =CQf7 -----END PGP SIGNATURE----- --DiL7RhKs8rK9YGuF-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 04:23:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51D3D106564A for ; Thu, 29 Sep 2011 04:23:07 +0000 (UTC) (envelope-from graudeejs@gmail.com) Received: from mail-fx0-f68.google.com (mail-fx0-f68.google.com [209.85.161.68]) by mx1.freebsd.org (Postfix) with ESMTP id D0E348FC0A for ; Thu, 29 Sep 2011 04:23:06 +0000 (UTC) Received: by fxh13 with SMTP id 13so180245fxh.7 for ; Wed, 28 Sep 2011 21:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=kFUk43NywOY00e7VSQBRpU3Hx5oyhIWZp+aytOp8g6o=; b=wRZ9pU0qovRVTahfrPlmH7R6YVm6O/Fao/t3tk9iQe4+gpVlrIX9cVD8hvSV6dp1F9 a8FEOKDHQl8sQfLISmDzb7csTPQUk5DN3+hrRuPPbgO9WyOcXb4Y3ni4iI3hv4G3Pyny 50ZctioLCYy2qyISVsWMJ18aPrncy8AyOowaI= Received: by 10.223.20.22 with SMTP id d22mr1740556fab.149.1317269108479; Wed, 28 Sep 2011 21:05:08 -0700 (PDT) Received: from desktop.pc (mpe-11-155.mpe.lv. [83.241.11.155]) by mx.google.com with ESMTPS id l9sm451568faa.26.2011.09.28.21.05.07 (version=SSLv3 cipher=OTHER); Wed, 28 Sep 2011 21:05:08 -0700 (PDT) Date: Thu, 29 Sep 2011 07:04:53 +0300 From: Aldis Berjoza Cc: freebsd-hackers@freebsd.org Message-ID: <20110929070453.28a6679a@desktop.pc> In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/SqtNG7d0_17VK/J.DwH_Td+"; protocol="application/pgp-signature" Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 04:23:07 -0000 --Sig_/SqtNG7d0_17VK/J.DwH_Td+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 28 Sep 2011 13:26:47 -0700 Colin Barnabas wrote: > I found a hello world program written in assembly language which > runs on my amd64 8.2 stable box. However, I can not seem to get > it to print a new line. Any suggestions on how to print a line > feed in assembly? You need to write 0xA for newline https://github.com/graudeejs/asm4BSD/blob/master/examples/000-hello/hello.f= asm Check this out: https://github.com/graudeejs/asm4BSD For my university Assembler practical work, I picked FreeBSD There is hellow world, that will/should run on any BSD and in FreeBSD directory there are more examples All that is for i386, but there shouldn't be to much problem to convert it to amd64 Oh, and it's written in lang/fasm (http://flatassembler.net/) --=20 Aldis Berjoza http://www.bsdroot.lv/ --Sig_/SqtNG7d0_17VK/J.DwH_Td+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBAgAGBQJOg+5xAAoJECrA2xnMujn6BnEIAIXVNCs8zrac0TMKFVZJLq23 BL1qe/hulovkA8oUx9sf8JXTmkB1ucgmFcOO7b87wMomg58ZVhbrszFaIvNduUyy xQrG9gLjpNk0kF/1LJYaJtkO6W8TjIMdOO/lGDbkH3AjAE+48v314Qgoxx9KwWVt qOLNVaYEnApgZO/+7fr2Nx95DguSs3ioouRrEagVdBOGc75NUSvXs1gFElxB0a2p d96tL42urtqfvDOUPSR2tZkbNVVRW8S37gfS6sVM4MttUDh+MhGC99TVd2WFpOHf Nmhk/7UwrQdi7ZiCW4nRdd+WBldrlhVDoTeKr9TfcbgHenKXfkkl2gb6CESwTAk= =43bp -----END PGP SIGNATURE----- --Sig_/SqtNG7d0_17VK/J.DwH_Td+-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 08:40:17 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13F6F106566B for ; Thu, 29 Sep 2011 08:40:17 +0000 (UTC) (envelope-from ap@bnc.net) Received: from mailomat.net (mailomat.net [81.20.89.254]) by mx1.freebsd.org (Postfix) with ESMTP id 9F18E8FC15 for ; Thu, 29 Sep 2011 08:40:16 +0000 (UTC) X-Mailomat-SpamCatcher-Score: 2 [X] X-Mailomat-Cloudmark-Score: 0.000000 [] Received: from [194.39.192.125] (account bnc-mail HELO bnc.net) by mailomat.net (CommuniGate Pro SMTP 5.3.1) with ESMTPSA id 54823846 for hackers@freebsd.org; Thu, 29 Sep 2011 09:41:18 +0200 X-Junk-Score: 2 [X] X-SpamCatcher-Score: 2 [X] Received: from [192.168.200.189] (account ap@bnc.net HELO [192.168.200.189]) by bnc.net (CommuniGate Pro SMTP 5.4.1) with ESMTPSA id 4450820 for hackers@freebsd.org; Thu, 29 Sep 2011 09:40:13 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1244.3) From: Achim Patzner In-Reply-To: <20110929010330.GD50397@dereel.lemis.com> Date: Thu, 29 Sep 2011 09:40:11 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <45E4F0D2-2B27-477A-8B45-E9D86943ECF1@bnc.net> References: <20110928202647.GA8284@hs1.VERBENA> <20110929010330.GD50397@dereel.lemis.com> To: FreeBSD Hackers X-Mailer: Apple Mail (2.1244.3) Cc: Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 08:40:17 -0000 Am 29.09.2011 um 03:03 schrieb Greg 'groggy' Lehey: >> Add a 0x0d to the end of the string (0xa =3D LF, 0xd =3D CR) >=20 > No, that is a Microsoftism. UNIX doesn't use \r to terminate a line. No, actually that's a teletype thing and predates Microsoft. And not a = problem of line termination. Achim From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 04:12:53 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88C2D106566C for ; Thu, 29 Sep 2011 04:12:53 +0000 (UTC) (envelope-from axel@ucs.com) Received: from exchange.ranch.com (ranch.com [184.183.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id 62BA88FC0C for ; Thu, 29 Sep 2011 04:12:53 +0000 (UTC) Received: from localhost (70.176.122.205) by exchange.ranch.com (10.1.1.64) with Microsoft SMTP Server id 8.1.436.0; Wed, 28 Sep 2011 21:12:52 -0700 Date: Wed, 28 Sep 2011 21:13:23 -0700 From: Colin Barnabas To: FreeBSD Hackers Message-ID: <20110929041323.GA9245@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Thu, 29 Sep 2011 10:50:14 +0000 Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 04:12:53 -0000 Thank you to all who responded. I changed the 13 to 14 so as to include the new line and that sorted everything out. Oddly, however, while I was using bash, the shell still returned on the same line as the output even after the fix. It was not until after I switched shells that things worked out properly. Perhaps this is just an anomaly in the way I have things set up on my machine. Thanks again! From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 15:48:36 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2A2D1065675 for ; Fri, 30 Sep 2011 15:48:36 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 889418FC1F for ; Fri, 30 Sep 2011 15:48:36 +0000 (UTC) Received: by yxk36 with SMTP id 36so2155600yxk.13 for ; Fri, 30 Sep 2011 08:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=OUbbvwLNMGu8pS17RAXCdzPjn2mcYy3Yh/Ym5PWW/Do=; b=k+6nbI2CSjxgdsSJWpxjxnj9/15M8JuyHrLiahPoRM++s4UEOYM/V2cbXIKfItA5JK uH5Eyh3lCss0qqQgcdBcar8mamArxxQK/ko9o73lPADiMo8cLVaJOUljs1nOMcjC2y8X NhVWQe0FgMyDE3IyZ6IW3qmYJXHhbCHr4JaDw= MIME-Version: 1.0 Received: by 10.204.131.219 with SMTP id y27mr7774554bks.115.1317396301180; Fri, 30 Sep 2011 08:25:01 -0700 (PDT) Received: by 10.204.36.134 with HTTP; Fri, 30 Sep 2011 08:25:00 -0700 (PDT) Date: Fri, 30 Sep 2011 11:25:00 -0400 Message-ID: From: Zaphod Beeblebrox To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: IPSEC rekey vs. Cisco ASA ... broken. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 15:48:36 -0000 So... I've been diagnosing this problem with IPSEC on FreeBSD interoperating against both a Cisco ASA and a set of FreeS/WAN clients. The configuration is that dozens of FreeS/WAN clients connect to the FreeBSD IPSEC gateway --- FreeBSD uses Racoon to authenticate and exchange keys with them. This appears to work fine. The FreeBSD IPSEC stack is then also talking to a remove Cisco ASA with "unique" tunnels for 5 destination hosts. This is working poorly. The issue is: FreeBSD sees the rekey request as failing (so it continues to use the old tunnel) and the ASA "seems" to see it succeeding (it starts using a new tunnel after the rekey). I'm a little bit at wit's end because we've tried to ask the Cisco to not rekey (and just reset everything during a daily downtime), but the cisco seems to insist on rekeying the tunnels. Has anyone encountered anything like this? From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 17:51:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CBE5106566B for ; Fri, 30 Sep 2011 17:51:34 +0000 (UTC) (envelope-from axel@ucs.com) Received: from exchange.ranch.com (ranch.com [184.183.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id EE8DC8FC13 for ; Fri, 30 Sep 2011 17:51:33 +0000 (UTC) Received: from localhost (70.176.122.205) by exchange.ranch.com (10.1.1.64) with Microsoft SMTP Server id 8.1.436.0; Fri, 30 Sep 2011 10:51:33 -0700 Date: Fri, 30 Sep 2011 10:52:08 -0700 From: Colin Barnabas To: FreeBSD Hackers Message-ID: <20110930175208.GB13794@hs1.VERBENA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: NASM in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 17:51:34 -0000 Is there a particular reason that nasm comes standard with FreeBSD and not fasm? From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 18:02:37 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AA011065673 for ; Fri, 30 Sep 2011 18:02:37 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 614828FC0A for ; Fri, 30 Sep 2011 18:02:37 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 014FD745C; Fri, 30 Sep 2011 11:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1317405757; bh=QNATwRtSNFgYkommfas3IlRc7v43qvILFF+6tMReylc=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=axzi75/56QW7m53F8Ec8xfxc+7mhRBGBrTuZKeqAdcqld3hkUH6HlxniRMpoCDudy Z5CIakhFwhsXtZIFwQNH5DTZyHys+xXphxRZ/ztOk02WGEhNeoUGVzyUI/26ViZ/IH LN5CIhbx/ujxR+Xck3shdXf/dcN3mD3d4iTNU9Nw= Message-ID: <4E86043B.1030506@delphij.net> Date: Fri, 30 Sep 2011 11:02:35 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: Colin Barnabas References: <20110930175208.GB13794@hs1.VERBENA> In-Reply-To: <20110930175208.GB13794@hs1.VERBENA> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: NASM in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 18:02:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 09/30/11 10:52, Colin Barnabas wrote: > Is there a particular reason that nasm comes standard with FreeBSD > and not fasm? I think FreeBSD doesn't come standard with nasm either (the base system uses GNU as). If you're looking for fasm port it's located at lang/fasm (not in devel/) and I believe that package is also available for supported platforms... Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOhgQ6AAoJEATO+BI/yjfBy3oIAJNcCFWOiDlActQHza62q7bC xdug+sx2JvfJronP4jTm7LQ7jp6NeLvoH9qynWFMPpUiac00ZWqNNBhjWCtH7eop UwSn35EfiZ7dorU81h+3MO1IHPJtlRM6nsNp719kt5ok5JTVKzQrKAtG0dZv/p/U PDCTbylOPIVJ4tu1/0pnplMiyltAeqeZJeFQaIIqcCol722HRyUg3KCSoASJw5cd dY3vRlDNZOp/6DRMAGiQyK6mMPCTZQxykDvlTQi0YZu/SbWY0IjK3vApkGXE1HpX AV6Yu76nvC5EftX+yPV2FzZ60c/cS2Qu6Ji6IrMg8/DmZa8V1E41qESfpIFVN84= =k6N0 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 19:41:42 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9961106564A for ; Fri, 30 Sep 2011 19:41:42 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6EBC88FC13 for ; Fri, 30 Sep 2011 19:41:42 +0000 (UTC) Received: by wwn22 with SMTP id 22so1166137wwn.1 for ; Fri, 30 Sep 2011 12:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GSUIT52zd1ai5C2HIagWOa4uhnuNiOTam94l63ksfs0=; b=b5G3SHRVoAAueDmzQZKohAOktG1DS07BlnPz/WSsUlrpDTta4J/nxwDP4ZWaAQIkfx F26sZt6L4RKrr6dbgMQYqOmHCplOlA8EYXJddDRWpwttO2GJbx1msrh8pOK+m/1rAoA5 od8d0XtuQpdLW4VfiaxKNa9cDIP3cmkARz4C0= MIME-Version: 1.0 Received: by 10.227.175.77 with SMTP id w13mr12345207wbz.36.1317411701301; Fri, 30 Sep 2011 12:41:41 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Fri, 30 Sep 2011 12:41:41 -0700 (PDT) In-Reply-To: References: <4E712D11.7040202@FreeBSD.org> <4E75B67E.1000802@FreeBSD.org> <20110922190535.GR26743@acme.spoerlein.net> <20110922212602.GS26743@acme.spoerlein.net> Date: Fri, 30 Sep 2011 15:41:41 -0400 Message-ID: From: Arnaud Lacombe To: =?ISO-8859-1?Q?Ulrich_Sp=F6rlein?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Fwd: my git development snapshot(s) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 19:41:42 -0000 Hi, On Mon, Sep 26, 2011 at 2:23 PM, Arnaud Lacombe wrote: > Hi, > > On Thu, Sep 22, 2011 at 5:26 PM, Ulrich Sp=F6rlein wr= ote: >> On Thu, 2011-09-22 at 15:52:43 -0400, Arnaud Lacombe wrote: >>> Hi, >>> >>> On Thu, Sep 22, 2011 at 3:05 PM, Ulrich Sp=F6rlein = wrote: >>> > On Sun, 2011-09-18 at 12:14:38 +0300, Andriy Gapon wrote: >>> >> >>> >> Just decided to follow the global trends and trying to throw all of = my >>> >> local/private changes at you in hope that the "crowd-sourcing magic"= might >>> >> somehow happen :-) =A0This seems definitely easier than carefully pr= oducing the >>> >> patch files and keeping them up-to-date. >>> >> >>> >> So, my newly cloned gitorious repository: >>> >> https://gitorious.org/~avg/freebsd/avgbsd >>> >> >>> >> And the first branch of interest: >>> >> https://gitorious.org/~avg/freebsd/avgbsd/commits/devel-20110915 >>> > >>> > I'll throw mine in as well: >>> > >>> > https://github.com/uqs/freebsd-head/branches >>> > >>> is that the same as tree as Fabien's, or a new snapshot ? >>> >>> If not, couldn't we agree to have all the same tree in order to ease >>> code sharing between all of them ? >>> >>> I see there is already a https://github.com/freebsd/freebsd tree, >>> which seem different than Fabien's tree on github. It really look like >>> The FreeBSD Project (https://github.com/freebsd/) is not able to >>> provide consistency. >> >> The freebsd-head tree is the same that everybody in the world can get by >> simply running git svn clone against the FreeBSD subversion server >> (you'd need a lot of patience, though). >> > FWIW, how comes that there is not yet any `stable/9' branch on the github= tree ? > Ulrich, ping ? - Arnaud From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 20:30:44 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E09991065670 for ; Fri, 30 Sep 2011 20:30:44 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id A93E28FC0A for ; Fri, 30 Sep 2011 20:30:44 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:906c:6af3:5301:18c6]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id CB4A44AC1C for ; Sat, 1 Oct 2011 00:30:42 +0400 (MSD) Date: Sat, 1 Oct 2011 00:30:37 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <362958423.20111001003037@serebryakov.spb.ru> To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:30:45 -0000 Hello, Hackers. I was surprised, when I discover that size_t are 32-bit wide on 32-bit (i386) system. Which "semantic" type should I use, for example, for storing GEOM size in bytes in system-independent way? I could use "uint64_t", of course, but I don't like this solution, as it very low-level (ok, not so low-level as "unsigned long long", to be honest). --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 20:51:34 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1038E106564A; Fri, 30 Sep 2011 20:51:34 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6000F8FC08; Fri, 30 Sep 2011 20:51:32 +0000 (UTC) Received: by fxg9 with SMTP id 9so4418025fxg.13 for ; Fri, 30 Sep 2011 13:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=hO0wrvfYpLKN0IhZQ9Bp8rAJm2cUFlBTDuKjN3myENc=; b=jGFmZ7uAYdtSVh4lYTRaeNBotfXYSWsocCk2J6rSpf0KfZK9JSSKAN/tSx8SGdA0Pp nBBtOn667XdA+6ATCkqaBfgNa9GgS4VOe68oSQwCEhv8aIMUW6f4RXDtFmdQy3klvFo7 /Isk/RHdK0tBy8Z7ovCYzOssTcxAfDYxEwyQI= Received: by 10.223.10.25 with SMTP id n25mr8270625fan.72.1317415892095; Fri, 30 Sep 2011 13:51:32 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id l8sm8266998fai.16.2011.09.30.13.51.30 (version=SSLv3 cipher=OTHER); Fri, 30 Sep 2011 13:51:31 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E862BB4.9000402@FreeBSD.org> Date: Fri, 30 Sep 2011 23:51:00 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110910 Thunderbird/6.0.2 MIME-Version: 1.0 To: Lev Serebryakov References: In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:51:34 -0000 On 30.09.2011 23:30, Lev Serebryakov wrote: > I was surprised, when I discover that size_t are 32-bit wide on > 32-bit (i386) system. Which "semantic" type should I use, for > example, for storing GEOM size in bytes in system-independent way? I > could use "uint64_t", of course, but I don't like this solution, as > it very low-level (ok, not so low-level as "unsigned long long", to > be honest). GEOM uses 64bit off_t for media size and many other things. -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 20:53:07 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11D37106566B; Fri, 30 Sep 2011 20:53:07 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id CC6488FC08; Fri, 30 Sep 2011 20:53:06 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:906c:6af3:5301:18c6]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 0D2904AC1C; Sat, 1 Oct 2011 00:53:05 +0400 (MSD) Date: Sat, 1 Oct 2011 00:53:01 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <64774029.20111001005301@serebryakov.spb.ru> To: Alexander Motin In-Reply-To: <4E862BB4.9000402@FreeBSD.org> References: <4E862BB4.9000402@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:53:07 -0000 Hello, Alexander. You wrote 1 =EE=EA=F2=FF=E1=F0=FF 2011 =E3., 0:51:00: > GEOM uses 64bit off_t for media size and many other things. off_t is signed! It is ``not accurate enough'' (if you know this Russian joke) :))) --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 21:02:29 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50B10106566C; Fri, 30 Sep 2011 21:02:29 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A647E8FC15; Fri, 30 Sep 2011 21:02:28 +0000 (UTC) Received: by fxg9 with SMTP id 9so4428015fxg.13 for ; Fri, 30 Sep 2011 14:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=kP7yz0gPj8gNrqLMuVWnpHjIzBHCOKl4M41P3n9J9T4=; b=ussswbA3usG0bqfLBY5GF8qt6ON2lAM9x2QcNR6eQL02NuE3fHtWxwGTijbQBTfZ3L AIUQlfvZzWU0YDR2wg1HQs5BQQRePK1ALSnOsAqmDgdDtkh8pwKvx5BHP/6IZ7/116D3 HJMAxrqytkviMz8/7XiSUPW2Ej45kwYmFq2oQ= Received: by 10.223.44.90 with SMTP id z26mr4646527fae.28.1317416547699; Fri, 30 Sep 2011 14:02:27 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id x4sm487378fad.1.2011.09.30.14.02.25 (version=SSLv3 cipher=OTHER); Fri, 30 Sep 2011 14:02:26 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E862E42.8070001@FreeBSD.org> Date: Sat, 01 Oct 2011 00:01:54 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110910 Thunderbird/6.0.2 MIME-Version: 1.0 To: lev@FreeBSD.org References: <4E862BB4.9000402@FreeBSD.org> <64774029.20111001005301@serebryakov.spb.ru> In-Reply-To: <64774029.20111001005301@serebryakov.spb.ru> X-Enigmail-Version: undefined Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 21:02:29 -0000 On 30.09.2011 23:53, Lev Serebryakov wrote: > Hello, Alexander. > You wrote 1 2011 ., 0:51:00: > >> GEOM uses 64bit off_t for media size and many other things. > off_t is signed! It is ``not accurate enough'' (if you know this > Russian joke) :))) Let's say negative values reserved for 2^63 error codes. :) -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 21:02:45 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1735106570B; Fri, 30 Sep 2011 21:02:45 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2D98FC14; Fri, 30 Sep 2011 21:02:44 +0000 (UTC) Received: by yia13 with SMTP id 13so2342105yia.13 for ; Fri, 30 Sep 2011 14:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PHa32iJh4DCnR4EpPxZXet6f/pRnHGHkMhaCp9dL7aE=; b=fyVWOSHnFWK/i2apca8EKdkQYOWuJlgxiz4NK2tSw0fA4XU+CPRwafoLFKrTGe9Spx /YOo5vuhs1PiAuP2oEdRxckoavn7gytH8notA1ejsXVHv9G8oG3y8eNINWEWF24USfEB JwaiTefSj1jezD4Eo0YAvS4kOS591xXKISLMA= MIME-Version: 1.0 Received: by 10.150.238.18 with SMTP id l18mr3684796ybh.335.1317414798868; Fri, 30 Sep 2011 13:33:18 -0700 (PDT) Received: by 10.151.145.18 with HTTP; Fri, 30 Sep 2011 13:33:18 -0700 (PDT) In-Reply-To: <362958423.20111001003037@serebryakov.spb.ru> References: <362958423.20111001003037@serebryakov.spb.ru> Date: Fri, 30 Sep 2011 13:33:18 -0700 Message-ID: From: Xin LI To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 21:02:45 -0000 2011/9/30 Lev Serebryakov : > Hello, Hackers. > > =C2=A0I was surprised, when I discover that size_t are 32-bit wide on > =C2=A032-bit (i386) system. Which "semantic" type should I use, for > =C2=A0example, for storing GEOM size in bytes in system-independent way? = I > =C2=A0could use "uint64_t", of course, but I don't like this solution, as > =C2=A0it very low-level (ok, not so low-level as "unsigned long long", to > =C2=A0be honest). off_t? Cheers, --=20 Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 21:32:35 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86D2D1065673; Fri, 30 Sep 2011 21:32:35 +0000 (UTC) (envelope-from benlaurie@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC3F8FC0A; Fri, 30 Sep 2011 21:32:34 +0000 (UTC) Received: by vws11 with SMTP id 11so2366641vws.13 for ; Fri, 30 Sep 2011 14:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tsdAr7SluSZkAdrHXjqbYgYVXkxTKh0S/X//pz2eF2E=; b=FcY1yZUS05FGVRAh3Ugd7WNVDs6M3PbOUSLI6mjtlnXAICrcVPK4ZN4FqNYyJ/FDtz 7pSRs564qmTAVgdd/Uc+FlZ0kS5i8vs+1giGPfcNG43l+7ilCUU0PVG+Y3VEiSst1hKu HCUSUoJcIyhNhUa3sYvGBg0o3+n1tg9If9F18= MIME-Version: 1.0 Received: by 10.52.67.237 with SMTP id q13mr1478681vdt.5.1317416544379; Fri, 30 Sep 2011 14:02:24 -0700 (PDT) Sender: benlaurie@gmail.com Received: by 10.52.112.106 with HTTP; Fri, 30 Sep 2011 14:02:24 -0700 (PDT) In-Reply-To: <64774029.20111001005301@serebryakov.spb.ru> References: <4E862BB4.9000402@FreeBSD.org> <64774029.20111001005301@serebryakov.spb.ru> Date: Fri, 30 Sep 2011 22:02:24 +0100 X-Google-Sender-Auth: XZMxeDV4ERBSqcp50R3vJwpLA3w Message-ID: From: Ben Laurie To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Alexander Motin , hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 21:32:35 -0000 2011/9/30 Lev Serebryakov : > Hello, Alexander. > You wrote 1 =D0=BE=D0=BA=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3., 0:51= :00: > >> GEOM uses 64bit off_t for media size and many other things. > =C2=A0off_t is signed! It is ``not accurate enough'' (if you know this > Russian joke) :))) No, but I now want to know the Russian joke. From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 00:14:41 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 214E9106564A; Sat, 1 Oct 2011 00:14:41 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 00D678FC13; Sat, 1 Oct 2011 00:14:40 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p910Eeal033448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 30 Sep 2011 17:14:40 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p910Ee2a033447; Fri, 30 Sep 2011 17:14:40 -0700 (PDT) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA02183; Fri, 30 Sep 11 17:04:39 PDT Date: Sat, 01 Oct 2011 00:03:54 -0700 From: perryh@pluto.rain.com To: lev@freebsd.org Message-Id: <4e86bb5a.KW8hF3XoJOjCQVPS%perryh@pluto.rain.com> References: <4E862BB4.9000402@FreeBSD.org> <64774029.20111001005301@serebryakov.spb.ru> In-Reply-To: <64774029.20111001005301@serebryakov.spb.ru> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mav@freebsd.org, hackers@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 00:14:41 -0000 Lev Serebryakov wrote: > > GEOM uses 64bit off_t for media size and many other things. > off_t is signed! It is ``not accurate enough'' (if you know > this Russian joke) :))) g_cache and g_nop use uintmax_t (and no, I don't know the joke). From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 05:44:57 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADA631065672; Sat, 1 Oct 2011 05:44:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 624AA8FC12; Sat, 1 Oct 2011 05:44:57 +0000 (UTC) Received: by ywp17 with SMTP id 17so2642413ywp.13 for ; Fri, 30 Sep 2011 22:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=9Qkj46R+gRfyL8JdoziE0Qhn1WCDiOuonesSG6j3XPk=; b=aaHmneZXEUljiVnlBxMYWFVSpMg9nE3l7FRN9/UP2bEMpq1Zmg1xBh25PX23ckpfZF 4Yxfhh0mh4iovvtk+Jfr21PfpjHo90RWcJOyclmUzCyAYwQd9L4nR5DPeuvt2InzZrcr ryVnHckNfcglY244RRUR423tI4p60ylUqP5DQ= MIME-Version: 1.0 Received: by 10.236.75.227 with SMTP id z63mr2325801yhd.55.1317447896633; Fri, 30 Sep 2011 22:44:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Fri, 30 Sep 2011 22:44:56 -0700 (PDT) Date: Sat, 1 Oct 2011 13:44:56 +0800 X-Google-Sender-Auth: 0_sfXq5PVWgun3-F4e28C8numro Message-ID: From: Adrian Chadd To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 05:44:57 -0000 Hi, What happens if this occurs: * cpu_idle() is entered * you enter critical_enter() and call cpu_idleclock() * an interrupt occurs, scheduling an immediate callout * .. but you've already set the clock register, so it won't be serviced until the wait returns. Perhaps interrupts have to be disabled before critical_enter() and cpu_idletick() to ensure an interrupt-driven callout doesn't get delayed? Adrian From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 09:38:20 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C989C106566C; Sat, 1 Oct 2011 09:38:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 78DD28FC0C; Sat, 1 Oct 2011 09:38:20 +0000 (UTC) Received: by vws11 with SMTP id 11so2655503vws.13 for ; Sat, 01 Oct 2011 02:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=B3FuaIbNyfrKUCwOO7W+zRt3O2U+0yj0uFCKhIJ3AkQ=; b=mSq9Ub73lrGJMwyDjmDf2nIg66E9iZPJIRFOQvVrZ6Lof7K84+AjOH1X3AB60l7D0b UFrrQDLE8w1HKmvlLHRWTVFOPaX1yObsinun5+xdyzzyCSq0Y3Ag9AC7MPxj+ZExw9+a qZM5QNHcI9LdqMQO1JgrY43Jv+z7X6CCjk9Z8= MIME-Version: 1.0 Received: by 10.52.72.16 with SMTP id z16mr12123623vdu.395.1317461899780; Sat, 01 Oct 2011 02:38:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.161.138 with HTTP; Sat, 1 Oct 2011 02:38:19 -0700 (PDT) In-Reply-To: <4E86DC86.3040204@FreeBSD.org> References: <4E86DC86.3040204@FreeBSD.org> Date: Sat, 1 Oct 2011 17:38:19 +0800 X-Google-Sender-Auth: ZAXmR4USGW_-e4tZ9IT33wGirJk Message-ID: From: Adrian Chadd To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:38:20 -0000 On 1 October 2011 17:25, Alexander Motin wrote: > Use of critical section in cpu_idle() from the beginning was based on > number of assumptions about filter interrupt handler's limitations. [snip] > So, if you really need to use callout() in interrupt filter, we could > disable interrupts before calling cpu_idleclock(), as you have told. But > that is only a partial solution and you should be ready for the second > half of the problems. Depending on your needs I am not sure it will > satisfy you. I'm not using callouts from a swi in ath(4), at least not yet. I haven't yet gone over all the drivers in sys/dev/ to see if any of them are actually doing this. I was just making an observation. I may have to go digging into how Linux manages to do this without having the occasional interrupt latency issue that FreeBSD/MIPS is. For all I know, Linux has the same issue on the mips32 platforms that I'm currently testing on. Adrian From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 09:49:15 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D62E3106566B; Sat, 1 Oct 2011 09:49:15 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 441FD8FC13; Sat, 1 Oct 2011 09:49:14 +0000 (UTC) Received: by eyg7 with SMTP id 7so2199940eyg.13 for ; Sat, 01 Oct 2011 02:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=BXXCJDBwdpO2hQNiqN61+OL+cFUE/ueS4uD4+N7u7zk=; b=xy/PjiexyvBHJjf1MUCZgX1yfmH8hvZriTIFGF0pWictTJmaEBuxgI4q4ffaKAIOJQ hkrzw/wgirEE0yv0BrJCeXE/0p/ZFRVuNienW26jFTarWNxg4nGM2Nuk7YHe7iaeg2dz fhpXbxHpg5gxgfFvi5o6BA0jrCYtp0oHoPLAw= Received: by 10.223.43.211 with SMTP id x19mr10840593fae.142.1317462554165; Sat, 01 Oct 2011 02:49:14 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id f25sm10765759faf.7.2011.10.01.02.49.12 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 02:49:13 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86E20B.7000703@FreeBSD.org> Date: Sat, 01 Oct 2011 12:48:59 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: <4E86DC86.3040204@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:49:15 -0000 Adrian Chadd wrote: > On 1 October 2011 17:25, Alexander Motin wrote: > >> Use of critical section in cpu_idle() from the beginning was based on >> number of assumptions about filter interrupt handler's limitations. > > [snip] > >> So, if you really need to use callout() in interrupt filter, we could >> disable interrupts before calling cpu_idleclock(), as you have told. But >> that is only a partial solution and you should be ready for the second >> half of the problems. Depending on your needs I am not sure it will >> satisfy you. > > I'm not using callouts from a swi in ath(4), at least not yet. I > haven't yet gone over all the drivers in sys/dev/ to see if any of > them are actually doing this. > I was just making an observation. All I've told above related only to filter interrupt handlers. Swi has no any problems from this point. Swi is alike to regular threaded interrupt handler, it has no this kind of limitations. If interrupt fires after cpu_idleclock() and schedules swi, sched_runnable() will return non-zero and sleep will be canceled. After that, when it is finally called, swi have updated time and allowed to use callouts as it wants to. -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 09:52:14 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9A4F1065677 for ; Sat, 1 Oct 2011 09:52:14 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3B07A8FC1C for ; Sat, 1 Oct 2011 09:52:13 +0000 (UTC) Received: by eyg7 with SMTP id 7so2201440eyg.13 for ; Sat, 01 Oct 2011 02:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=NUpJaoxHRenew1Bs/f4/xDgWwTSmlGeycqXefNpKGKQ=; b=lh1OBRIplx4d3zk01O5u9Fb/FsfuW5qwxCTdCIoVmmbIuvb9ucVa83ac5h2V9sPBKt VmYKYjI3tHdeSuQPtcdN7M8x85q88tquDaGw0crRaZuKupIAh3od2Db3zQ1An/v30b16 1orW4i+JrSdm5cmlR//OoFXfLiQyzGKi17Fds= Received: by 10.223.58.198 with SMTP id i6mr16221405fah.91.1317461141412; Sat, 01 Oct 2011 02:25:41 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id w14sm10670282fae.13.2011.10.01.02.25.39 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 02:25:40 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86DC86.3040204@FreeBSD.org> Date: Sat, 01 Oct 2011 12:25:26 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:52:14 -0000 Hi. Adrian Chadd wrote: > What happens if this occurs: > > * cpu_idle() is entered > * you enter critical_enter() and call cpu_idleclock() > * an interrupt occurs, scheduling an immediate callout > * .. but you've already set the clock register, so it won't be > serviced until the wait returns. > > Perhaps interrupts have to be disabled before critical_enter() and > cpu_idletick() to ensure an interrupt-driven callout doesn't get > delayed? Use of critical section in cpu_idle() from the beginning was based on number of assumptions about filter interrupt handler's limitations. These handlers are not guarantied to get updated system time/ticks and they are discouraged to use callouts. If callout scheduled from interrupt filter during system wake up, system has no ticks counter updated yet and you may get callout scheduled into the past (it will be run immediately) or at least much earlier (up to 250ms) then requested. In your case callout indeed may get delayed (up to the same 250ms). All that is not a problem for regular interrupt threaded interrupts -- interrupt thread execution will be delayed until all stuff get updated. On some platforms and CPUs it is possible to enter/exit sleep with interrupts disabled. That would allow to cover all kinds of problems, but that support is very selective, so it is not used for this purpose now. We may want to get cpu_idle() rewritten again at some time to handle that and possibly make code choosing sleep state and measuring sleep time more MI, like Linux does it, but that is another project. So, if you really need to use callout() in interrupt filter, we could disable interrupts before calling cpu_idleclock(), as you have told. But that is only a partial solution and you should be ready for the second half of the problems. Depending on your needs I am not sure it will satisfy you. -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 10:00:23 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B93B8106564A; Sat, 1 Oct 2011 10:00:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A86708FC08; Sat, 1 Oct 2011 10:00:19 +0000 (UTC) Received: by vws11 with SMTP id 11so2663399vws.13 for ; Sat, 01 Oct 2011 03:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hUQY13k9yeyUBgrR2cegkNoNQfO0v1KThN2istHVYXc=; b=tHFAjUwP94u4MvI18cDJcIVKUnIvqj9cu4JW9TivhdjnMcPyT6P6RvSEeN9kNMKQO+ xCI1a7M3a5W2iRYt4/E9OlkvlYsjhODlEvPN8tzuGW25wu8CH4T2XQUYUSIYrMw4qu9C VDRrW24acNQafCJmm4y63Eki39sWeQfQ5weEM= MIME-Version: 1.0 Received: by 10.52.72.9 with SMTP id z9mr7844043vdu.60.1317463218655; Sat, 01 Oct 2011 03:00:18 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.161.138 with HTTP; Sat, 1 Oct 2011 03:00:18 -0700 (PDT) In-Reply-To: <4E86E20B.7000703@FreeBSD.org> References: <4E86DC86.3040204@FreeBSD.org> <4E86E20B.7000703@FreeBSD.org> Date: Sat, 1 Oct 2011 18:00:18 +0800 X-Google-Sender-Auth: M_xHvYdIu90s2bQVscraV06phVI Message-ID: From: Adrian Chadd To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:00:23 -0000 Right. Hm, what about for i386/amd64 cases we call intr_disable() before the critical_enter and idleclock, then re-enable either just before the wait/halt call (like it is now) or just after the sched_running check (just like it is now.) That way a filter handler which schedules a callout gets called correctly? Adrian From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 10:31:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD17106564A; Sat, 1 Oct 2011 10:31:02 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 692B58FC0C; Sat, 1 Oct 2011 10:31:01 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so3314857bkb.13 for ; Sat, 01 Oct 2011 03:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=5xBAlWh4h/uxYigaMm1b0UeQcGOZEI9fMWKl6yZKXHo=; b=RDMS4ucCJXZHXA65CYU6W4oI3xb/y4ecV43vgf8yORLcDXvXpelpoAt0zkAVx9Z04E jJSrk1m3eJB2ryik7pgHPFt7y28ZJuHxQRkSLD/wn3VMvy6s2pzzeHWNf22aXWDI2XBq KEaoN1XJ51e/JwdaH7CX8FIR/jFD4OFUgJAVU= Received: by 10.204.147.141 with SMTP id l13mr124199bkv.73.1317465060222; Sat, 01 Oct 2011 03:31:00 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id t13sm1793162fae.0.2011.10.01.03.30.58 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 03:30:59 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86EBD5.9070705@FreeBSD.org> Date: Sat, 01 Oct 2011 13:30:45 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: <4E86DC86.3040204@FreeBSD.org> <4E86E20B.7000703@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: how are callouts handled in cpu_idle() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:31:02 -0000 Adrian Chadd wrote: > Right. Hm, what about for i386/amd64 cases we call intr_disable() > before the critical_enter and idleclock, then re-enable either just > before the wait/halt call (like it is now) or just after the > sched_running check (just like it is now.) > > That way a filter handler which schedules a callout gets called correctly? As I have described, that can fix only part of the problems (only delayed shots, but not too early shots). It still won't allow to reliably use callouts from the interrupt filter handlers. Also I've just recalled one possible issue from that. cpu_idleclock() calls binuptime() to get present system time to properly reprogram timer hardware. In most cases binuptime() is quite undemanding call to be called anywhere, but at least on some kinds of sparc64 hardware it uses IPI to read time counter from another CPU, because of assumption that CPUs may not be synchronized. I hate that, but that's fact. Attempt to wait for IPI with interrupt disabled may cause dead lock between several CPUs. Respecting that, in event timers subsystem I was trying to avoid calling binuptime() with disabled interrupts. To be honest, sparc64 doesn't have cpu_idle() function now to all, but if we speaking about general (perfect) case, we should either continue avoid this, or deny things like what sparc64 does. -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 11:57:29 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF7DC106564A; Sat, 1 Oct 2011 11:57:29 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 541878FC08; Sat, 1 Oct 2011 11:57:29 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so3398204bkb.13 for ; Sat, 01 Oct 2011 04:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=hYejRtb+wF1E3WLfC52ELlwpudr3oUUkvge+pP1aA+0=; b=ZeYjRkozpu7EfwSVT1BStUNPtJgD63fOnH7jHlTYy7N890KfSIWf++6CrsWun/SUzY Lu53uG2Bd5kzrI69MlhDbN4l3kTabj+MY1kLOkp7iBd9JzWE4A4SvfoAgTeiiqyKSu7+ XUUnkBcuwQ7mH8fYkB3aRgBSlPFqbVWeMaOys= Received: by 10.223.55.16 with SMTP id s16mr8419858fag.95.1317470247831; Sat, 01 Oct 2011 04:57:27 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id t19sm11207683faj.23.2011.10.01.04.57.26 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 04:57:27 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E870018.8050806@FreeBSD.org> Date: Sat, 01 Oct 2011 14:57:12 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Ben Laurie References: <4E862BB4.9000402@FreeBSD.org> <64774029.20111001005301@serebryakov.spb.ru> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: hackers@freebsd.org, lev@freebsd.org Subject: Re: sizeof(size_t) and other "semantic" types on 32 bit systems? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 11:57:30 -0000 Ben Laurie wrote: > 2011/9/30 Lev Serebryakov : >> Hello, Alexander. >> You wrote 1 октября 2011 г., 0:51:00: >> >>> GEOM uses 64bit off_t for media size and many other things. >> off_t is signed! It is ``not accurate enough'' (if you know this >> Russian joke) :))) > > No, but I now want to know the Russian joke. I think it is about this one, sorry for my rough translation: Man getting to a doctor: M: Doctor, I have a problem THERE. D: Undress please. M: Can I accurately put shoes there? D: Please. Man carefully puts shoes aside to each other perpendicularly to the wall. M: Can I accurately put my pants on a chair back? D: Sure. Man carefully puts pants on a chair. M: Can I accurately put my underwear here? D: OK. Man carefully puts underwear on a couch, removing any pleats. D: So what's the problem? M: Can't you see? My testicles are on different height! D: Don't worry, it is normal. You are not sick. M: But that's not accurately enough! ("ne akkuratnenko kak-to" in original transliteration) http://blog.i.ua/user/2864472/779569/ -- Alexander Motin From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 23:16:55 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A71A1065670 for ; Sat, 1 Oct 2011 23:16:55 +0000 (UTC) (envelope-from jfrostx80@yahoo.com) Received: from nm10-vm0.bullet.mail.sp2.yahoo.com (nm10-vm0.bullet.mail.sp2.yahoo.com [98.139.91.198]) by mx1.freebsd.org (Postfix) with SMTP id 15BDF8FC13 for ; Sat, 1 Oct 2011 23:16:54 +0000 (UTC) Received: from [98.139.91.67] by nm10.bullet.mail.sp2.yahoo.com with NNFMP; 01 Oct 2011 23:03:20 -0000 Received: from [98.139.91.8] by tm7.bullet.mail.sp2.yahoo.com with NNFMP; 01 Oct 2011 23:03:20 -0000 Received: from [127.0.0.1] by omp1008.mail.sp2.yahoo.com with NNFMP; 01 Oct 2011 23:03:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 119061.92588.bm@omp1008.mail.sp2.yahoo.com Received: (qmail 37048 invoked by uid 60001); 1 Oct 2011 23:03:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1317510199; bh=5FdgwK9Zp4ZuzWtgxlAaLCQSXE/tvqzjNsmItXWtxAM=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=Qhmz3qeZQcZr1HSreUhE+iXYYoaDcbyJpa2V0U922YCLT0q6brxiHOXtbfK08KW+npHHxmP8KEp9GiQavPsw3hkl94qHd/CXEetl7FoR+/3TcUHndQqgV27yAdQKW4kahDzmBIFEvhjaxFfI7z+PbgbyCY7Lf02OtJKfqZ+qNfk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=i+ypf3BT69jhm6GIy5A2UD1LMZeZZBDv4w+dSUevj8xI/Y3eyO8Oi+MYMTd/LZkLX1SRdXthYCn06LuyOz6YTCW7yKiPJdG5ahOe9BtwzZ4GLnja7yievuvqOoYMb385wH32K1NR9AgO898DMw25ZOdzf91wffUOmShz/3uz7NI=; X-YMail-OSG: Izcngx0VM1m3qUAVYkOA2ri.M95O4OWQ_E4XUBvLZGsPc_V UJDP6s9zFA9aneoi1j677ZBIpGZ_PO3ZUPWp1ZQftrQk8q0lTHiN2rWWhFHN kh1TvkDgQZ7_8YiLYdHgapy4oh69RF6kFIRJNDT4yJ08mzoAk6fRPAHyYIaI m9ARud51JJAe4NnpL9416jAYUw81OZ4SJ3DmAZG2CdWE3GRyCva0abdURkZI zxMQBAmt8p7QHqYOhsV_zpWXXudU_7LZbxNrHHuFIM8awfSj_MFjoGct_yg9 pHTqEQDWAiaTJ3dZbB2LMDdeatlNzUQjOUY8kLgBUarBi23oULKiPmRS00Pi xPsGHskIzjGn9MZR8REzW2tM3DPpG6dqFlZdEA6SBrg-- Received: from [208.74.109.254] by web114206.mail.gq1.yahoo.com via HTTP; Sat, 01 Oct 2011 16:03:19 PDT X-Mailer: YahooMailClassic/14.0.7 YahooMailWebService/0.8.114.317681 Message-ID: <1317510199.34235.YahooMailClassic@web114206.mail.gq1.yahoo.com> Date: Sat, 1 Oct 2011 16:03:19 -0700 (PDT) From: Jack Frost To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 01 Oct 2011 23:38:07 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Weird memory error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 23:16:55 -0000 Someone told me to post my experiences here.I haven't used bsd in the past but anyhow i decided to try the live cd but had it result in systematic termination.apparently my bios was telling it or it was reading my memory as only having 600k of 3 gigs free(i have 4 gigs) so what i did to resolve this was to type set hw.physmem=2G and then it loaded perfectly. I hope this can help resolve this issue in the future kdb_enter() at kdb_enter+0x3b panic() at panic +0x180 pmap_growkernel() at Pmap_growkernel+0x1d8 vm_map_insert() at vm_map_insert +0x47f vm_map_find() at vm_map_find+0xa7 link_elf_load_file() at link_elf_load_file+0x862 linker_load_module() at linker_load_module+0x8ex kern_kldload() at kern_kldload+0xac kldload() at kldload+0x84 syscallenter() at syscallenter +0x1aa syscall() at syscall+04c Xfast_syscall() at xfast_syscall+0xdd --- syscall ( 304,freebsd elf64,kldload) rip=0x8008a253c, rsp+07fffffffd7 e8,rbp = 0x7fffffffdd60 --- From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 1 23:47:22 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2806106564A for ; Sat, 1 Oct 2011 23:47:22 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B408F8FC08 for ; Sat, 1 Oct 2011 23:47:22 +0000 (UTC) Received: by qadz30 with SMTP id z30so1256133qad.13 for ; Sat, 01 Oct 2011 16:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=xPONVTPKi3xSkRMCPCWF6x1uWRQLArYp8PxpgynAZ3U=; b=YyG/I2QGyPg+Fn1a0wPuWNJtJvpLQFK4c15YW/Vo125Q/5pRrymhrZZ+rt/SVORvMi RMUPNa+jQ+SCHNxHLcLiL2wsd5keJ2SjBKKZdJh/HTI4efuDaGopaDvU9XEP6XpNeJGk 2jPVhVkPiCpS5cugzCHVr4a2fYjTEJcrNv9Ww= MIME-Version: 1.0 Received: by 10.224.182.10 with SMTP id ca10mr2253060qab.274.1317512842052; Sat, 01 Oct 2011 16:47:22 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Sat, 1 Oct 2011 16:47:22 -0700 (PDT) In-Reply-To: <1317510199.34235.YahooMailClassic@web114206.mail.gq1.yahoo.com> References: <1317510199.34235.YahooMailClassic@web114206.mail.gq1.yahoo.com> Date: Sat, 1 Oct 2011 16:47:22 -0700 Message-ID: From: Garrett Cooper To: Jack Frost Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Weird memory error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 23:47:23 -0000 On Sat, Oct 1, 2011 at 4:03 PM, Jack Frost wrote: > Someone told me to post my experiences here.I haven't used bsd in the pas= t but anyhow i decided to try the live cd but had it result in systematic t= ermination.apparently my bios was telling it or it was reading my memory as= only having 600k of 3 gigs free(i have 4 gigs) so what i did to resolve th= is was to type set hw.physmem=3D2G and then it loaded perfectly. Make sure that your BIOS isn't currently setup to only advertise 3GB. Some ASUS MBs I've dealt with (P5B, P5K) did this for instance; it can confuse the stuff out of the OS if the BIOS lies. -Garrett