mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
parasite/x86: introduce&use builtin_memset
Don't use compiler-provided memset in parasite. Fixes: commit 86434deba0b4 ("x86: dump TLS entries from GDT"). Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
74c0a70223
commit
ec58dcab74
@@ -1,6 +1,8 @@
|
||||
#ifndef __ASM_PARASITE_H__
|
||||
#define __ASM_PARASITE_H__
|
||||
|
||||
#include "asm-generic/string.h"
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
# define __parasite_entry __attribute__((regparm(3)))
|
||||
#endif
|
||||
@@ -50,7 +52,7 @@ static void arch_get_tls(tls_t *ptls)
|
||||
{
|
||||
user_desc_t *d = &ptls->desc[i];
|
||||
|
||||
memset(d, 0, sizeof(user_desc_t));
|
||||
builtin_memset(d, 0, sizeof(user_desc_t));
|
||||
d->entry_number = GDT_ENTRY_TLS_MIN + i;
|
||||
arch_get_user_desc(d);
|
||||
}
|
||||
|
Reference in New Issue
Block a user