freebsd-dev/sys/amd64/include
Martin Cracauer aff66c5455 Implement SA_SIGINFO for i386. Thanks to Bruce Evans for much more
than a review, this was a nice puzzle.

This is supposed to be binary and source compatible with older
applications that access the old FreeBSD-style three arguments to a
signal handler.

Except those applications that access hidden signal handler arguments
bejond the documented third one. If you have applications that do,
please let me know so that we take the opportunity to provide the
functionality they need in a documented manner.

Also except application that use 'struct sigframe' directly. You need
to recompile gdb and doscmd. `make world` is recommended.

Example program that demonstrates how SA_SIGINFO and old-style FreeBSD
handlers (with their three args) may be used in the same process is at
http://www3.cons.org/tmp/fbsd-siginfo.c

Programs that use the old FreeBSD-style three arguments are easy to
change to SA_SIGINFO (although they don't need to, since the old style
will still work):

  Old args to signal handler:
    void handler_sn(int sig, int code, struct sigcontext *scp)

  New args:
    void handler_si(int sig, siginfo_t *si, void *third)
  where:
    old:code == new:second->si_code
    old:scp == &(new:si->si_scp)     /* Passed by value! */

The latter is also pointed to by new:third, but accessing via
si->si_scp is preferred because it is type-save.

FreeBSD implementation notes:
- This is just the framework to make the interface POSIX compatible.
  For now, no additional functionality is provided. This is supposed
  to happen now, starting with floating point values.
- We don't use 'sigcontext_t.si_value' for now (POSIX meant it for
  realtime-related values).
- Documentation will be updated when new functionality is added and
  the exact arguments passed are determined. The comments in
  sys/signal.h are meant to be useful.

Reviewed by:	BDE
1999-07-06 07:13:48 +00:00
..
pc
apicreg.h
asm.h
asmacros.h Fixed profiling of elf kernels. Made high resolution profiling compile 1999-05-06 09:44:57 +00:00
atomic.h
bus_amd64.h Improve compatibility with other systems by changing the default 1999-07-03 20:14:08 +00:00
bus_at386.h Improve compatibility with other systems by changing the default 1999-07-03 20:14:08 +00:00
bus_dma.h Improve compatibility with other systems by changing the default 1999-07-03 20:14:08 +00:00
bus_memio.h
bus_pio.h
bus.h Improve compatibility with other systems by changing the default 1999-07-03 20:14:08 +00:00
clock.h Stop the TSC from being used as timecounter on K5/step0 machines. 1999-05-29 06:57:55 +00:00
cpu.h Moved cpu_set_fork_handler's prototype from <machine/cpu.h> to <sys/proc.h>. 1999-04-23 20:22:44 +00:00
cpufunc.h loadandclear() uses an atomic instruction (even on SMP, where it's an 1999-05-09 23:30:01 +00:00
cputypes.h Recognize Pentium II Xeon, Celeron and Pentium III cpus. Because CPU 1999-02-04 16:48:26 +00:00
db_machdep.h
elf.h On the i386, load the ELF dynamic linker where an mmap(0, ...) would 1999-02-19 01:30:43 +00:00
exec.h
float.h
floatingpoint.h
fpu.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
frame.h Implement SA_SIGINFO for i386. Thanks to Bruce Evans for much more 1999-07-06 07:13:48 +00:00
ieeefp.h
md_var.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
mptable.h Changes in the way that the APs are started appears to have removed the 1999-06-23 23:02:38 +00:00
npx.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
pcb_ext.h
pcb.h Unifdef VM86. 1999-06-01 18:20:36 +00:00
pci_cfgreg.h
pcpu.h Unifdef VM86. 1999-06-01 18:20:36 +00:00
pmap.h Do not setup 4M pdir until all APs are up. 1999-06-23 21:47:24 +00:00
proc.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
profile.h
psl.h
ptrace.h
reg.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
reloc.h
resource.h
segments.h Changed the global `idt' from an array to a pointer so that npx.c 1999-06-18 14:32:21 +00:00
setjmp.h
signal.h
smp.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
specialreg.h Add defines for the P6 model-specific registers. 1999-04-07 03:58:15 +00:00
sysarch.h
trap.h
tss.h Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
varargs.h
vmparam.h