Accessing real mode memory.

Hi,

I need to access a region of real memory from a QNX app. I make a real mode
interrupt call via _intr_v86 which returns a 16bit location in ES:DI. I
then need to access a number of bytes from that location.

Can anyone point me towards a function that can copy from real to protected
mode? or suggest a method of achieving this?

Many Thanks,

Paul

“Paul Wakefield” <paul.wakefield@lidco.com> wrote in message
news:e424en$npf$1@inn.qnx.com

Hi,

I need to access a region of real memory from a QNX app. I make a real
mode interrupt call via _intr_v86 which returns a 16bit location in ES:DI.
I then need to access a number of bytes from that location.

Can anyone point me towards a function that can copy from real to
protected mode? or suggest a method of achieving this?

You need to mmap() the physical address.

Many Thanks,

Paul