Mail Archives: djgpp/1999/09/25/09:06:10
I think that you don't need to take care about
the A20 line and whatever when you spawn a program.
The Spawn function will do it itself if necessary.
Your program crashes because it access system
registers. This triggers an exception, because
the program is run with user permissions. The
DPMI manager (whitch as privilegied rights), needed
to run DJGPP programs, don't like that, and try
to stop the program. There is the problem same
problem for the memory management,and gdt, idt,
and all things that conflicts with it.
That's not the fault of the DJGPP program or the
memory manager, but this is the mechanism of
protected mode.
A few solutions :
- run your program in full dos mode without any
memory managers (emm, qemm, himem...) and don't
spawn it from your DJGPP program.
- rewrite your program using DPMI interface
--
+-------
| Blade Cox
| e-mail : nicolas DOT gasnier AT wanadoo DOT fr
| e-mail alternatif : syntax DOT terror AT caramail DOT com
homepage : http://perso.wanadoo.fr/blade
Prashant TR a écrit dans le message
<19990924095805 DOT 27511 DOT rocketmail AT web1401 DOT mail DOT yahoo DOT com>...
>
>Hi everyone,
>
> When I spawn a real mode program that itself
>switches to protected mode and does some extended
>memory access, I get a severe problem and my original
>parent DJGPP program crashes.
>
> I've set everything back to normal including A20
>line, GDT, IDT, TS flag and almost everything you can
>think of. And what are the hardware interrupts DJGPP
>uses for IRQ0-7. Is it INT 78-7fh ? The Task register
>is modified my my program. I can't of course set this
>back to what it was.
>
> So, what could be the problem.
>
>And does DJGPP allow me to make reference to any
>portion of the extended memory ? I don't think it
>does.
>Someone please help.
>
>Thanks,
>Prashant TR
>__________________________________________________
>Do You Yahoo!?
>Bid and sell for free at http://auctions.yahoo.com
- Raw text -