PERFORCE change 162147 for review
Ulf Lilleengen
lulf at FreeBSD.org
Sat May 16 08:53:19 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162147
Change 162147 by lulf at lulf_carrot on 2009/05/16 08:53:06
- Populate sigcontext and mcontext structs.
Affected files ...
.. //depot/projects/avr32/src/sys/avr32/include/signal.h#2 edit
.. //depot/projects/avr32/src/sys/avr32/include/ucontext.h#2 edit
Differences ...
==== //depot/projects/avr32/src/sys/avr32/include/signal.h#2 (text+ko) ====
@@ -42,6 +42,20 @@
#if __BSD_VISIBLE
struct sigcontext {
+ /*
+ * The fields following 'sc_mask' must match the definition
+ * of struct __mcontext. That way we can support
+ * struct sigcontext and ucontext_t at the same
+ * time.
+ */
+ __sigset_t sc_mask; /* signal mask to restore */
+ int sc_onstack; /* sigstack state to restore */
+ __register_t sc_pc; /* Pc at time of signal. */
+ __register_t sc_sr; /* Status register. */
+ __register_t sc_sp; /* Original stack pointer. */
+ __register_t sc_lr; /* Return reg. */
+ __register_t sc_regs[13]; /* Processor registers 0 to 12 */
+ int xxx[8]; /* XXX reserved */
};
#endif
==== //depot/projects/avr32/src/sys/avr32/include/ucontext.h#2 (text+ko) ====
@@ -40,7 +40,18 @@
#define _MACHINE_MCONTEXT_H_
typedef struct {
-
+ /*
+ * These fields must match the corresponding fields in struct
+ * sigcontext which follow 'sc_mask'. That way we can support
+ * struct sigcontext and ucontext_t at the same time.
+ */
+ int mc_onstack; /* sigstack state to restore */
+ register_t mc_pc; /* Pc at time of signal. */
+ register_t mc_sr; /* Status register. */
+ register_t mc_sp; /* Original stack pointer. */
+ register_t mc_lr; /* Return reg. */
+ register_t mc_regs[13]; /* Processor registers 0 to 12 */
+ int __spare__[8]; /* XXX reserved */
} mcontext_t;
#endif /* !_MACHINE_MCONTEXT_H_ */
More information about the p4-projects
mailing list