From owner-freebsd-hackers Thu Mar 7 3:34:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.icluk.com (mx.icluk.com [194.84.142.41]) by hub.freebsd.org (Postfix) with SMTP id 1BCA137B41B for ; Thu, 7 Mar 2002 03:34:06 -0800 (PST) Received: (qmail 16517 invoked from network); 4 Mar 2002 08:28:32 -0000 Received: from unknown (HELO khromovv) (192.168.12.200) by 194.84.142.41 with SMTP; 4 Mar 2002 08:28:32 -0000 Message-ID: <009c01c1c356$93e13be0$c80ca8c0@khromovv> From: "Valery N. Khromov" To: Subject: Converting physical into virtual address Date: Mon, 4 Mar 2002 11:28:35 +0300 Organization: IC "Lukoil" MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd like to develop a kernel module for FreeBSD, able to read & write directly to VGA text-mode screen buffer. I know that this buffer is located at 0xB8000 in physical address space. But in kernel I must address it using kernel virtual address space. Thus, the question is: how can I _correctly_ convert physical address into kernel virtual address? Now I use the following trick: 0xC0000000 + 0xB8000, but I want to use more correct method. :) thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message