X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Thu, 24 Jan 2002 12:16:39 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Christophe BARIBAUD cc: djgpp AT delorie DOT com Subject: Re: multi-threading In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 24 Jan 2002, Christophe BARIBAUD wrote: > I am currently trying to build a minimalistic multi-threaded kernel with > djgpp. > When I change stack selector (ss) my programs hangs when calling __dpmi_int > It **seems** that DJGPP assumes SS=DS in order to function correctly. > > Can anybody confirm this ? Yes, the code produced by GCC assumes DS=SS=ES. If you change the SS to implement the multithreading, you will either have to find another way, or do that in assembly.