From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 4 03:14:54 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3327106564A for ; Fri, 4 Apr 2008 03:14:54 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id A079F8FC1D for ; Fri, 4 Apr 2008 03:14:54 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYS00C006CUMU00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:14:54 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYS00AWF6CTPY00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:14:53 -0500 (CDT) Date: Thu, 03 Apr 2008 22:19:11 -0500 From: Nathan Whitehorn To: freebsd-ppc@freebsd.org Message-id: <47F59E2F.6060009@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.3.200034, SenderIP=76.201.152.232 User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: ADB support - round 2 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 03:14:54 -0000 I've fixed up the ADB support I emailed about a while ago a little bit. On CUDA machines, it works well, aside from keyboard autorepeat being slow, and arrow keys not working in X. The code also isn't style(9) compliant at all, and is missing copyright headers, etc. This version now also has experimental PMU support, so the built-in keyboard and mouse in Apple laptops can work, if your machine doesn't kernel panic instantly, which is what happens frequently on my test G4 iBook. It is also hard-coded to use IRQ 47 instead of finding it from the extint-gpio1 like it should. The last is easy to change -- the first I cannot figure out at all. I'm hoping someone with better debugging skills than I can figure out what it going on there. It seems to be crashing in the interrupt handler, but somehow after pmu_intr() has exited, and my access to the machine in question is limited. Anyway, the code: http://banshee.uchicago.edu/~nwhitehorn/adb.tgz -Nathan