Mail Archives: djgpp/1995/05/01/00:21:48
>>>>>> "Charles" == Charles Sandmann <sandmann AT praline DOT no DOT NeoSoft DOT com> writes:
>
> Charles> This is a know limitation with V1.x and DPMI. You cannot
> Charles> use -fomit-frame-pointer with DPMI unless you create some
> Charles> custom code to replace the SS selector with the DS
> Charles> selector. GCC assumes a flat 32 bit address space - and
> Charles> that all selectors point to the same memory.
>
>The first line of Executor's main() is:
>
> asm ("pushl %ds\n\t"
> "popl %ss");
>
>which solves the problem.
Yes, but now where does your stack go? You changed the segment but haven't
even touched %sp.
This works?
--
- Antony Suter <antony AT werple DOT mira DOT net DOT au>
- (Rohaan) <s871780 AT minyos DOT xx DOT rmit DOT edu DOT au>
- "In space, all warriors are Code warriors", Chang, ST6
- Raw text -