Mail Archives: djgpp/1995/04/30/19:09:20
>>>>> "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.
-Mat
- Raw text -