From owner-cvs-src@FreeBSD.ORG Mon Oct 31 03:09:38 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 C246A16A420; Mon, 31 Oct 2005 03:09:38 +0000 (GMT) (envelope-from grehan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF9B43D46; Mon, 31 Oct 2005 03:09:38 +0000 (GMT) (envelope-from grehan@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 j9V39cXM098000; Mon, 31 Oct 2005 03:09:38 GMT (envelope-from grehan@repoman.freebsd.org) Received: (from grehan@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9V39c2N097999; Mon, 31 Oct 2005 03:09:38 GMT (envelope-from grehan) Message-Id: <200510310309.j9V39c2N097999@repoman.freebsd.org> From: Peter Grehan Date: Mon, 31 Oct 2005 03:09:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/ofw ofw_disk.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 31 Oct 2005 03:09:39 -0000 grehan 2005-10-31 03:09:38 UTC FreeBSD src repository Modified files: sys/dev/ofw ofw_disk.c Log: The mediasize shouldn't be multipled by the sector size when it was in bytes to start off with. This caused the GPT geom sniffer to attempt a seek just back from the end of the 'disk', which resulted in a > 4G seek, causing gdb psim to exit since it only supports 32-bit seeks. The size of the disk should really be specified in the psim device tree, but for now do the minimal amount of work to get psim to run again. Revision Changes Path 1.18 +2 -1 src/sys/dev/ofw/ofw_disk.c