From owner-cvs-all@FreeBSD.ORG Sat Jan 1 19:05:46 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBDD716A4CE; Sat, 1 Jan 2005 19:05:46 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9D2043D2F; Sat, 1 Jan 2005 19:05:46 +0000 (GMT) (envelope-from se@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 j01J5kMB039602; Sat, 1 Jan 2005 19:05:46 GMT (envelope-from se@repoman.freebsd.org) Received: (from se@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j01J5ktv039601; Sat, 1 Jan 2005 19:05:46 GMT (envelope-from se) Message-Id: <200501011905.j01J5ktv039601@repoman.freebsd.org> From: Stefan Esser Date: Sat, 1 Jan 2005 19:05:46 +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/dev/sym sym_hipd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 19:05:46 -0000 se 2005-01-01 19:05:46 UTC FreeBSD src repository Modified files: sys/dev/sym sym_hipd.c Log: Attempt to fix Symbios driver on amd64. The private memory allocation function provided by the driver limits allocations to the page size, i.e. 4KB on i385 and 8KB on typical 64 bit processors. Since amd64 has 64 bit pointers, but only 4KB pages, an array of pointers that just fits into one page on all the other processors, does require 2 pages on amd64. In order to make this driver useful on amd64, the allocation unit has been increased to 2 pages on amd64 and contigmalloc() is used instead of malloc(). All other processor types are unaffected by this change. This modification has only been compile-tested on amd64, yet, but should just work (FLW). Revision Changes Path 1.51 +10 -0 src/sys/dev/sym/sym_hipd.c