From owner-freebsd-sparc64@FreeBSD.ORG Wed Oct 23 20:36:02 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5F630749 for ; Wed, 23 Oct 2013 20:36:02 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 345E42EC0 for ; Wed, 23 Oct 2013 20:36:01 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 2566A5838A for ; Wed, 23 Oct 2013 15:35:55 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id VWH3H79Y6rvJ for ; Wed, 23 Oct 2013 15:35:55 -0500 (CDT) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 501B558388 for ; Wed, 23 Oct 2013 15:35:54 -0500 (CDT) Message-ID: <5268332A.6080107@freebsd.org> Date: Wed, 23 Oct 2013 15:35:54 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org Subject: Nexus improvements Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Oct 2013 20:36:02 -0000 I've been trying for the last few days to clean up some of our OF/FDT code, in particular related to reducing code duplication. There is a 12-year-old comment in sparc64/sparc64/nexus.c that "this code should get into dev/ofw to some extent". Most of the code has been moved now and the PowerPC nexus device has been replaced by the pieces of the sparc64 one that now do live in dev/ofw. The following (almost entirely negative) patch moves sparc64 to use it as well. Since it is just a copy of the sparc64 code, this should involve no functional changes, and I will commit it in a few days unless someone raises an objection. The patch is only compile tested for the time being, so hardware tests would be appreciated. Patch at: http://people.freebsd.org/~nwhitehorn/sparc64-nexus-unify.diff -Nathan