Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Mar 2002 13:09:40 +0100 (MET)
From:      Andy Sporner <sporner@nentec.de>
To:        "Valery N. Khromov" <valery.khromov@icluk.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   RE: Converting physical into virtual address
Message-ID:  <XFMail.020307130940.sporner@nentec.de>
In-Reply-To: <009c01c1c356$93e13be0$c80ca8c0@khromovv>

next in thread | previous in thread | raw e-mail | index | archive | help

On 04-Mar-02 Valery N. Khromov wrote:
> 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

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?XFMail.020307130940.sporner>