Date: Fri, 7 Jan 94 09:24:27 -0500 From: dj AT ctron DOT com (DJ Delorie) To: tan AT mofet DOT elex DOT co DOT il Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Access to physical addresses from PC gcc > > 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).