[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] pdomain() inheritance?



Hi!

On Wed, Nov 10, 1999 at 11:48:16PM +0000, Remi Villatel wrote:
> there's no pdomain() inheritance from a parent process to its
> children. Am I right or wrong?

No, of course there's no inheritance, as it's purely process specific.
Each process has to decide on its own whether it wants to run in the
MiNT domain (those using the MiNT library will automatically do), as it
may easily break older programs when being forced into the MiNT domain.

> What do I do? Do I patch BoxKite's pdomain() call to let it believe that
> pdomain(1) is always active? (I just got this idea...)

Well, some years ago, there was mfsfm (Markus' Fileselector for MiNT),
which allowed you to alter a process'es domain. You got a warning that
this might break the program, but you had the possibility to do it.

For Photoline, I'd suggest a real patch (and not a wrapper, what was
what you suggested), i.e. see if there's room at the beginning of the
initial routine to insert the 10 bytes requiered for a Pdomain(1) call
in assembler (move.l #$1190001,-(sp) trap #1 addq.l #2,sp)


Ciao

Thomas


-- 
Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!  binder@rbg.informatik.tu-darmstadt.de
Vote against SPAM:             http://www.politik-digital.de/spam/

Attachment: pgpAZ8G2CQC3i.pgp
Description: PGP signature