www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/26/05:34:23

From: Kovacs Viktor Peter <vps AT winnie DOT obuda DOT kando DOT hu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Run djgpp program in real dos got SIGSEGV signal ?
Date: Wed, 26 Sep 2001 11:26:27 +0200
Organization: Budapest University of Technology and Economics
Lines: 21
Message-ID: <Pine.LNX.4.33.0109261116250.5514-100000@winnie.obuda.kando.hu>
References: <1001465600 DOT 54340 AT palladium DOT transmeta DOT com>
NNTP-Posting-Host: winnie.obuda.kando.hu
Mime-Version: 1.0
X-Trace: analog.eik.bme.hu 1001496388 7370 193.224.41.10 (26 Sep 2001 09:26:28 GMT)
X-Complaints-To: abuse AT bme DOT hu
NNTP-Posting-Date: Wed, 26 Sep 2001 09:26:28 +0000 (UTC)
In-Reply-To: <1001465600.54340@palladium.transmeta.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

[On Tue, 25 Sep 2001, Chunfeng Zhao wrote:]
> Hi,
> I am trying to use DJGPP to compile a DOS program to access the graphic
> frame buffer and registers, when I run the program in a DOS box from Windows
> 98, it runs okay, but after I reboot the system into real DOS mode, it give
> the SIGSEGV singal and exit the program. Can any one help me out on this ?
> Thanks!

 You are probably referencing memory outside your allocated memory area.
 (like hw. memory, non dpmi memory /low memory/)

 Under the windows dpmi all segments have a limit of 4Gb. Dos based
 dpmi servers limit the segments to the allocated ram. You have to
 turn on 'near' pointer support. (see: near and far pointer support
 in the djgpp manual) This can fail with some extenders. It works
 with cwsdpmi and tran's pmode extender. These funtions modify the
 segment limits in the descriptors. (the segment bases can change)

   Viktor


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019