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

[MiNT] SIGPWR



Hi!

As promised, I looked at the problem Guido had adding a new signal to
signals.h of the MiNT source. The reason the resulting kernel crashed
was a missing dependency in the Makefile: genmagic must be recompiled
when signals.h has changed, as changing NSIG in there results in
different offsets in the PROC structure, and magic.i has to have the
correct ones.

Thus, to add SIGPWR as signal no. 31, simply add it to the list of
#defines in signals.h, change NSIG to 32 in the same file, and add
include/signals.h to the list of dependencies for genmagic.ttp in the
Makefile.

Note that there's no way to further increase the number of available
signals using this method, as otherwise the number of signals would be
greater than 32, forcing a change in the signal masks, which are longs
and can't therefore handle more than 32 signals (1 bit per signal).


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: pgpl0T0sTtJPC.pgp
Description: PGP signature