#include <asm-i386/io.h>
volatile void* linux_address;
unsigned long rtlinux_address = virt_to_phys(linux_address);
Or, back the other way.
unsigned long rtlinux_address;
void* linux_address = phys_to_virtual(rtlinux_address);
- Kal.
Mario Teijeiro Otero wrote:
>
> Firt of all, I want excuse me for my mail without subject ( I forgot it) of
> 21/02/2000. I asked about the subject of this mail. I do this solution.
>
> On linux space:
> [...]
> flength=lseek(fd,0,SEEK_END);
> p=(char*)mbuff_alloc(M_PTR_MC,flength);
> [ if error...]
> pfichero=mmap((caddr_t)p,flength,
>PROT_READ,MAP_SHARED|MAP_FIXED|MAP_LOCKED,fd,0);
>
> and on rtlinux space:
> pteroMC=(char*)mbuff_alloc(M_PTR_MC,sizeMC);
> if(pteroMC==NULL){
> [....]
>
> Thanks for all.
> --
> Windows 98 no se cuelg·$%&/# NO CARRIER
>
> =============================================================================
> Mario Teijeiro Otero mailto:[EMAIL PROTECTED]
> Powered by RedHat 6.1 clave: Mandame un correo con
> Usr. Reg. 122438,Maq. Reg. 74229 Subject:[PGPKEY]
> =============================================================================
> -- [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/
-- [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/