delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/20/06:15:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <3FBC9FA7.DD6929CD@worldnet.att.net>
From: Les Cargill <lcargill AT worldnet DOT att DOT net>
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Stack stuff...
References: <3FBC6527 DOT A66A8218 AT worldnet DOT att DOT net> <bpi4oa$fel$2 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Lines: 31
Date: Thu, 20 Nov 2003 11:02:27 GMT
NNTP-Posting-Host: 12.74.248.147
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1069326147 12.74.248.147 (Thu, 20 Nov 2003 11:02:27 GMT)
NNTP-Posting-Date: Thu, 20 Nov 2003 11:02:27 GMT
Organization: AT&T Worldnet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker wrote:
> 
> Les Cargill <lcargill AT worldnet DOT att DOT net> wrote:
> 
> > How can I reassign SS and SP with "asm" directives with the DJGPP
> > toolset ( gcc, essentially).
> 
> You could do that,

Like so?:

asm("mov %esp,<value>;");

( I looked at some assembler, which I should have done before 
I posted ). The "%" apparently means a register? 

> but it'd be a *very* dangerous operation.  What
> made you think this was a good idea?

The fact that I'm writing a microkernel that runs over
a DOS shell in Windows and need to give all the threads their 
own stack. 

> 
> --
> Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
> Even if all the snow were burnt, ashes would remain.


--
Les Cargill

- Raw text -


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