From owner-cvs-all Sat May 29 12:48: 9 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D3C0114DD2; Sat, 29 May 1999 12:47:53 -0700 (PDT) (envelope-from gallatin@FreeBSD.org) Received: (from gallatin@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA28575; Sat, 29 May 1999 12:47:53 -0700 (PDT) (envelope-from gallatin@FreeBSD.org) Message-Id: <199905291947.MAA28575@freefall.freebsd.org> From: Andrew Gallatin Date: Sat, 29 May 1999 12:47:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha mem.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk gallatin 1999/05/29 12:47:53 PDT Modified files: sys/alpha/alpha mem.c Log: When memory mapping a PCI device (like XFree86 does) on an XP1000, we must use ALPHA_PHYS_TO_K0SEG(offset) rather than just plain offet. I've verified that this does not break other platforms (I've tested an AlphaStation 200 and a Personal Workstation 500au with this patch). As to why this works, well.. Its black magic as far as I know. I obtained this hack from Myricom, who in turn, obtained it from Compaq engineers. Without this hack, XFree86 cannot talk to a PCI graphics card. Reviewed by: Doug Rabson Obtained from: feldy@myri.com (Bob Felderman) Revision Changes Path 1.8 +2 -2 src/sys/alpha/alpha/mem.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message