From owner-freebsd-arm@freebsd.org Thu Dec 17 08:07:43 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8D3EA48004 for ; Thu, 17 Dec 2015 08:07:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BC491773 for ; Thu, 17 Dec 2015 08:07:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x234.google.com with SMTP id e126so47056821ioa.1 for ; Thu, 17 Dec 2015 00:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=PGZThj0KeIyN3CrHevjjKe7BMMckJ27xhN+muu91/bk=; b=wxlyMLzNz+PjuNfjj6mi5EGiz+GqBCsA1ja6ofuV/xzfuV1evz8H1T2iwE1mpptMPU nLmNRn9BD2Y1dCVZrB/rhYNsIMmtet8clYEo+PDDUuWepML60KbjPZJiz3NyPOaEKlx0 tVCfPduZfKVqCcGy1Z2aC5Gx/JVKWTimiWc7QzZGc99BVHr9a/SbMSKIg5WXbnafyDlA WKkcJrdIlvh4z+H16VZj/5bdQ1aFkOT3w5/hWUiOR/mD6hfvqwTU5TMB4yk6/Yk0FjpO Nsw1rxXUabZ5F3+Yx7E60G85gFndKXLK/ONg+oWNVVxUwPkUhHdSYOrl21SbXLKJoPf2 ssXA== MIME-Version: 1.0 X-Received: by 10.107.162.21 with SMTP id l21mr42844065ioe.123.1450339663081; Thu, 17 Dec 2015 00:07:43 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.121.202 with HTTP; Thu, 17 Dec 2015 00:07:42 -0800 (PST) Date: Thu, 17 Dec 2015 00:07:42 -0800 X-Google-Sender-Auth: V_mhLrTDJFnhbHR3k_otlb6laWo Message-ID: Subject: RFC: migrate arm/arm/intrng.c -> kern/subr_intr.c in prep for MIPS using it From: Adrian Chadd To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 08:07:43 -0000 Hi, kan@ has been working on bringing in support for the CI20 board - where he used the arm intrng code in his mips port. So, I figured it is a good time to migrate the arm code into a generic spot to be reused. Here's my initial port: http://people.freebsd.org/~adrian/arm/20151216-arm-intrng-generic-1.diff It: * moves the machdep bits into a separate file (arm/arm/machdep_intr.c); * move intrng.c into sys/kern/subr_intr.c; * rename the ARM_ -> INTR_, and arm_ -> intr_ symbols; * fix up a variety of consumers of said code. It's a WIP - I plan on doing the minimum needed to put it there so we can use the code for other ports, and not try to solve the "how do we integrate this cleanly into the existing interrupt code" problem. This intr sharing code should make kan's job a lot easier. :) Thanks! -a