X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Fri, 15 May 2009 12:48:18 +0300 From: Eli Zaretskii Subject: Re: An interrupt drived uart program dead In-reply-to: X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83octur925.fsf@gnu.org> References: 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 Precedence: bulk > From: "Rod Pemberton" > Date: Fri, 15 May 2009 04:48:46 -0400 > > I was hoping someone could help him (and me indirectly). I've had so many > problems trying to create a working TSR in DJGPP that I gave up. No matter > what I did with the locking functions, code that worked as a non-TSR would > just not work as a TSR. I eventually concluded that code or data somewhere > in the _go32* or _dpmi* calls wasn't able to be locked. Did you try locking _everything_ in your program, by setting the `_CRT0_FLAG_LOCK_MEMORY' bit in the `_crt0_startup_flags' variable? Something like this: #include int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY; If this doesn't work, either, then locking memory is not the problem.