www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/27/06:42:02

Message-ID: <19990527080410.29626.qmail@ww183.netaddress.usa.net>
Date: 27 May 99 01:04:10 PDT
From: Oscar Almer <firstcheesemaster AT netscape DOT net>
To: djgpp AT delorie DOT com
Subject: Re: [Re: BIOS problem]
X-Mailer: USANET web-mailer (M3.0.0.118)
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA09330
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:

It's rather unusual, but it can happen, especially if you use the
nearptr facility which effectively disables memory protection.

I would suggest to rewrite your program using farptr and see if it still 
works.  If it crashes due to GPF or Page Fault, it means that it was 
accessing invalid addresses, and that could damage your CMOS settings.
Also, make sure you are using DJGPP v2.02, where the low memory is better 
protected when farptr is used.

I'll make this clear: the program worked fine, it didn't crash and burn. and
it have to access the adress where the vectors to the interrupt routines for
com-ports are located.This adress is somewhere in low memory, so i have to
access it. I have also had no problem with invalid adresses. the only thing
that I think can cause an error is writing 

outportl(__djgpp_conventional_base+(adress in low memory), Serial);

where Serial is the function designed to be the intrrupt to be called when a
caracter is received.
Can someone see the problem with this?
Thanks.

Oscar

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

- Raw text -


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