]> Zhao Yanbai Git Server - minix.git/commit
kernel: trap-dependent state restore, trace fixes
authorBen Gras <ben@minix3.org>
Sun, 6 Jan 2013 18:18:41 +0000 (18:18 +0000)
committerBen Gras <ben@minix3.org>
Tue, 8 Jan 2013 15:47:37 +0000 (15:47 +0000)
commit604046faf3601a19517f26236bc3bad09a740bdc
tree74df44d366794f329159fd5f3350b502ac3d4232
parentb258ab0e6609eb97c9ff067b8bbb1a0388383565
kernel: trap-dependent state restore, trace fixes

. restore state depends on how saving of state was done;
  also remember trap style in sig context
. actually set and restore TRACEBIT with new trap styles;
  have to remove it once process enters kernel though, done
  in debug trap exception handler
. introduce MF_STEP that makes arch-specific code
  turn on trace bit instead of setting TRACEBIT directly,
  a bit more arch-friendly and avoids keeping precious
  state in per-process PSW arch-dependently
12 files changed:
include/arch/i386/include/signal.h
kernel/arch/arm/arch_system.c
kernel/arch/i386/arch_system.c
kernel/arch/i386/exception.c
kernel/arch/i386/mpx.S
kernel/arch/i386/usermapped_glo_ipc.S
kernel/proc.h
kernel/proto.h
kernel/system/do_fork.c
kernel/system/do_sigreturn.c
kernel/system/do_sigsend.c
kernel/system/do_trace.c