Date: Sat, 16 May 2009 09:15:40 GMT From: Ulf Lilleengen <lulf@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 162148 for review Message-ID: <200905160915.n4G9FeMb078029@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162148 Change 162148 by lulf@lulf_carrot on 2009/05/16 09:14:49 - Try using the reg structure instead, as it is simpler, and see how far we can get before it might prove a bad choice. Affected files ... .. //depot/projects/avr32/src/sys/avr32/include/signal.h#3 edit .. //depot/projects/avr32/src/sys/avr32/include/ucontext.h#3 edit Differences ... ==== //depot/projects/avr32/src/sys/avr32/include/signal.h#3 (text+ko) ==== @@ -41,6 +41,8 @@ #if __BSD_VISIBLE +#include <machine/reg.h> + struct sigcontext { /* * The fields following 'sc_mask' must match the definition @@ -50,11 +52,7 @@ */ __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 */ + struct reg sc_regs; /* Context registers. */ int xxx[8]; /* XXX reserved */ }; ==== //depot/projects/avr32/src/sys/avr32/include/ucontext.h#3 (text+ko) ==== @@ -39,6 +39,8 @@ #ifndef _MACHINE_MCONTEXT_H_ #define _MACHINE_MCONTEXT_H_ +#include <machine/reg.h> + typedef struct { /* * These fields must match the corresponding fields in struct @@ -46,11 +48,7 @@ * 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 */ + struct reg mc_regs; /* Context registers. */ int __spare__[8]; /* XXX reserved */ } mcontext_t;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905160915.n4G9FeMb078029>