hi,

This is for something which (some day, hopefully) will be a Forth
system with realtime tasks and resources access and, no runtime
library requirements:

I'm trying to find out about signals by direct (i386 assembly level)
system calls, where in the handler I need to find out by which job it
was triggered and, from which address.

I did not manage to reading more than the signal number. Anything else
seems completely different to what the man pages describe and to what
I found in the kernel sources. I.e. nothing on stack, even when
referred indirectly, points to anything that looks like a <siginfo_t>
structure.

There are two definitions of the sigaction stucture, one of which is
"old_sigaction", and said to be valid before 2.1... kernels, which at
least doesn't segfault when being used, and the other, plain
"sigaction" which results to segfaults. - I'm using i586 kernel 2.2.14
and rtlinux 2.0.

My partially working struct old_sigaction is
        dd handler
        dd NULL         ;mask
        dd SA_SIGACTION ;flags (for extended arg's, - which I don't find)
        dd NULL         ;restorer

the other, struct sigaction, which segfaults would be
        dd handler
        dd SA_SIGACTION ;flags
        dd NULL         ;restorer
        dd NULL         ;mask

I tried also "rt_sigaction" which expectedly(?) failed, segfaulting.

If those syscalls are modified by the rtlinux extensions, pse, could
anyone help?


Btw, I just managed to compiling the 2.4.0 kernel with rtl 3.0, but
only run the system shortly, because isdn4linux doesn't respond, yet,
which I got to rely on for inet access. Thus didn't try much more.
Patches were fairly easy, just 4 rejects, anyone interested in the
diff-s?


regards,
        hp

-- 
                .hpr - h.-peter recktenwald, berlin
mailto:[EMAIL PROTECTED] - http://www.snafu.de/~phpr - t: +49 30 85967858
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to