Date: Mon, 4 Mar 2002 11:28:35 +0300 From: "Valery N. Khromov" <valery.khromov@icluk.com> To: <freebsd-hackers@freebsd.org> Subject: Converting physical into virtual address Message-ID: <009c01c1c356$93e13be0$c80ca8c0@khromovv>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009c01c1c356$93e13be0$c80ca8c0>