daniel sheltraw wrote:
> 
> Hello realtimers
> 
> I have a function which writes to video memory in kernel-space (and the
> palette registers) after setting up the video mode using SVAGlib in
> user-space. I have used this function previously in a non-RT kernel
> module where it worked as expected. Now I am trying to use the same
> function in a RT kernel module and it keeps locking up my machine. So
> my question is: Is there some reason that I should not be able to write
> to video memory (at 0xA0000) under RTAI (or RTL)?
> 

Hi Daniel,

In in the 2.2 kernels, you need to use the following to adjust the
physical address to the kernel virtual address as shown:

int init_module(void)
{
    int err;

#if LINUX_VERSION_CODE >= 0x20100
    GM = phys_to_virt(0xA0000);
#else
    GM = (char *)0xA0000;
#endif



Regards, Stuart.


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to