Date: Sun, 12 Apr 1998 12:06:03 +0300 (IDT) From: Eli Zaretskii To: Michele Manzato cc: djgpp AT delorie DOT com Subject: Re: Creating and using a protected stack area: how? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 10 Apr 1998, Michele Manzato wrote: > then when I have to switch the stack I simply copy SS to %ss and ESP to > %esp (with an assembly procedure). I don't think this approach will work. GCC assumes SS = DS, so code generated by GCC will not work correctly if you switch SS under its feet. But you can have separate stacks in the same segment (i.e., change ESP but leave SS alone).