Mail Archives: djgpp/1994/01/07/14:19:59
>
> Hello,
> may be someone has an idea how can I access physical address from gcc in DOS.
> I tried to do it in the following code in c:
>
> #define NETBIOS_INT 0x5C
> ...
> vector = (int ( * *)()) (NETBIOS_INT * 4);
> if (*vector == 0L) /* non-0 means ISR is present */
> {
> printf ("Return FALSE...\n");
> return FALSE;
> }
> ...
>
> I'v got the following msgs from GO32:
>
> Segmentation violation in pointer 0x00000170 at 40:482B
> Exeption 14 (0xe) at eip = 482B
Use dosmemget(), and pass it a physical address (not seg:ofs).
- Raw text -