From owner-freebsd-arm@freebsd.org Fri Feb 23 09:07:55 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E7ACF0AE28; Fri, 23 Feb 2018 09:07:55 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2CB9748A1; Fri, 23 Feb 2018 09:07:54 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3znlXG63k1zZrQ; Fri, 23 Feb 2018 09:59:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=mail; t=1519376355; x=1521190756; bh=tp7U4X+TbZjVU7 bct9cU9CenUWkhdp8jpnUo5s02XlE=; b=sU/2cq9jYaRZHesOpYyrlhgrR6yjqq ZcLLXyhRgdHpkicJCSZIU8auSfb0PQj+5Jdx5b5uB4x1M0tEIL/ME3Sl1dT9D+9i uG5nWg4iGQDpQgYApyvXT+OPcyPXtRv0IZkPDHWVOf1yp+r1QfbY/uWpDUVlx/ps h+bnLz2CuslAU= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id 0fO2cC9MW-s0; Fri, 23 Feb 2018 09:59:15 +0100 (CET) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.madpilot.net (Postfix) with ESMTPSA; Fri, 23 Feb 2018 09:59:15 +0100 (CET) Subject: Re: INTRNG To: Jon Brawn , freebsd-arm@freebsd.org, FreeBSD current References: <401A33BD-F3AE-4139-9D47-6F85C8333022@brawn.org> From: Guido Falsi Message-ID: <177301ca-b1aa-da15-4554-32a4bed9b226@madpilot.net> Date: Fri, 23 Feb 2018 09:59:14 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <401A33BD-F3AE-4139-9D47-6F85C8333022@brawn.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 09:07:55 -0000 On 02/23/18 07:25, Jon Brawn wrote: > Wotcha Gang! > > In my travels through the arm64 GENERIC config file I came across the option ‘INTRNG’, and wondered what it was: > > INTeRrupt Next Generation? > INTeger Random Number Generator? > IN TRaiNinG? > INTerrupt Random Number Generator? > INdependent TRaiNinG? > > So, please put me out of my misery, what does INTRNG stand for, and what are its implications when selected vs not selected? > A quick grep in src/sys gave me this: MALLOC_DEFINE(M_INTRNG, "intr", "intr interrupt handling"); Also: arm/arm/machdep.c:#if __ARM_ARCH >= 6 && !defined(INTRNG) arm/arm/machdep.c:#error armv6 requires INTRNG So it's about interrupts and mandatory for arm processors, I suspect it's and arm (and mips too, since I found grep hits there too) specific interrupts handling method. this looks like the original RFC for this code: https://lists.freebsd.org/pipermail/freebsd-arm/2014-April/007915.html -- Guido Falsi