From owner-cvs-src@FreeBSD.ORG Sat May 21 20:17:01 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8021716A4CE; Sat, 21 May 2005 20:17:01 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C3743D5C; Sat, 21 May 2005 20:17:01 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4LKH150075617; Sat, 21 May 2005 20:17:01 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4LKH1cM075616; Sat, 21 May 2005 20:17:01 GMT (envelope-from marius) Message-Id: <200505212017.j4LKH1cM075616@repoman.freebsd.org> From: Marius Strobl Date: Sat, 21 May 2005 20:17:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sparc64/sparc64 ofw_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2005 20:17:01 -0000 marius 2005-05-21 20:17:01 UTC FreeBSD src repository Modified files: sys/sparc64/sparc64 ofw_machdep.c Log: - Make sure that the OFW address properties that are going to be decode consist of the expected number of address and size cells (we can't use dynamic arrays here because at the point in the boot process when this code is used malloc() doesn't work, yet). This fixes a Fast Data Access MMU Miss when uart(4) (erroneously) calls OF_decode_addr() to decode the address of PS/2 keyboards. PS/2 keyboards use a different and also undocumented scheme at the first parent node than mapping at 'ranges' properties. It's however not worth implementing that other scheme and actually also fits atkbdc(4) better to just start at the first parent node of PS/2 keyboards which is the 8042 controller (I have atkbdc(4) working that way). - Use FBSDID. MFC after: 1 month Revision Changes Path 1.14 +6 -5 src/sys/sparc64/sparc64/ofw_machdep.c