From: "Chunfeng Zhao" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Run djgpp program in real dos got SIGSEGV signal ? Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Transmeta Corporation Message-ID: <1001523345.791115@palladium.transmeta.com> Cache-Post-Path: palladium.transmeta.com!unknown AT dyn-10-10-25-138 DOT transmeta DOT com X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Wed, 26 Sep 2001 09:55:45 -0700 NNTP-Posting-Host: 209.10.217.66 X-Complaints-To: news AT globix DOT net X-Trace: news.sjc.globix.net 1001523346 209.10.217.66 (Wed, 26 Sep 2001 09:55:46 PDT) NNTP-Posting-Date: Wed, 26 Sep 2001 09:55:46 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks a lot! I am using the code from DJGPP V2 QuickGraphic programming Guide, in the VBE2.0 section, I copied the Farptr part of the sample code. The program give Page fault when use movedata() to transfer data from system memory to graphic frame buffer. Where Can I find some sample code that include the full implementation for programming the graphic card directly ? Thanks again ? Chunfeng Zhao "Kovacs Viktor Peter" wrote in message news:Pine DOT LNX DOT 4 DOT 33 DOT 0109261454350 DOT 9725-100000 AT winnie DOT obuda DOT kando DOT hu... > [On Wed, 26 Sep 2001, Eli Zaretskii wrote:] > > > From: Kovacs Viktor Peter > > > Newsgroups: comp.os.msdos.djgpp > > > Date: Wed, 26 Sep 2001 11:26:27 +0200 > > > Under the windows dpmi all segments have a limit of 4Gb. Dos based > > > dpmi servers limit the segments to the allocated ram. > > That's not true: at least with CWSDPMI and other DOS DPMI servers, the > > data segment can be much larger than the installed RAM. > > It can be, but you have to set it expicitly... (by enabling near pointer > support), so you can use 'negative' offsets to access memory before the > data segment's base address. > > > The Windows DPMI host, on the other hand, is, indeed, known to limit > > the available DPMI memory to the installed RAM or to 64MB, whichever > > is larger. > > Yes, the allocatable memory can be limited, but windows uses a page based > protection and virtualizes the low memory. This is why you don't have > to use any segment based protection. > > Viktor > > ps: > Check the segment descriptor dump on your dos screen, and compare them > with the windows version. (divide with zero, to get the same error > screen) > >