[CRIU] [PATCH 03/20] multiarch: added machine-independent sigframe description.

Alexander Kartashov alekskartashov at parallels.com
Wed Dec 12 11:21:38 EST 2012


On 12/12/2012 07:44 PM, Pavel Emelyanov wrote:
> On 12/12/2012 05:34 PM, alekskartashov at parallels.com wrote:
>> From: Alexander Kartashov <alekskartashov at parallels.com>
>>
>> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
>> ---
>>   include/sigframe.h |   38 ++++++++++++++++++++++++++++++++++++++
>>   1 file changed, 38 insertions(+)
>>   create mode 100644 include/sigframe.h
>>
>> diff --git a/include/sigframe.h b/include/sigframe.h
>> new file mode 100644
>> index 0000000..465306d
>> --- /dev/null
>> +++ b/include/sigframe.h
>> @@ -0,0 +1,38 @@
>> +#ifndef SIGFRAME_H_
>> +#define SIGFRAME_H_
>> +
>> +// Generic sigframe bits
>> +
>> +#ifndef __ARCH_SI_PREAMBLE_SIZE
>> +#define __ARCH_SI_PREAMBLE_SIZE	(3 * sizeof(int))
>> +#endif
>> +
>> +#define SI_MAX_SIZE	128
>> +#ifndef SI_PAD_SIZE
>> +#define SI_PAD_SIZE	((SI_MAX_SIZE - __ARCH_SI_PREAMBLE_SIZE) / sizeof(int))
>> +#endif
>> +
>> +typedef struct rt_siginfo {
>> +	int	si_signo;
>> +	int	si_errno;
>> +	int	si_code;
>> +	int	_pad[SI_PAD_SIZE];
>> +} rt_siginfo_t;
>> +
>> +typedef struct rt_sigaltstack {
>> +	void	*ss_sp;
>> +	int	ss_flags;
>> +	size_t	ss_size;
>> +} rt_stack_t;
>> +
>> +struct rt_ucontext {
>> +	unsigned long		uc_flags;
>> +	struct rt_ucontext	*uc_link;
>> +	rt_stack_t		uc_stack;
>> +	struct rt_sigcontext	uc_mcontext;
>> +	rt_sigset_t		uc_sigmask;	/* mask last for extensibility */
>> +	int                     __unused[32 - (sizeof (rt_sigset_t) / sizeof (int))];
>> +	unsigned long           uc_regspace[128] __attribute__((__aligned__(8)));
>> +};
> We have it in restorer.h, please, don't _add_ this, but _move_ the existing.
>
>> +#endif

Thank you, it will be fixed in the next version.
>


-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list