aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/entry/calling.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/entry/calling.h')
-rw-r--r--arch/x86/entry/calling.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h
index 352e70cd33e8..20d0885b00fb 100644
--- a/arch/x86/entry/calling.h
+++ b/arch/x86/entry/calling.h
@@ -329,8 +329,22 @@ For 32-bit we have the following conventions - kernel is built with
329 329
330#endif 330#endif
331 331
332.macro STACKLEAK_ERASE_NOCLOBBER
333#ifdef CONFIG_GCC_PLUGIN_STACKLEAK
334 PUSH_AND_CLEAR_REGS
335 call stackleak_erase
336 POP_REGS
337#endif
338.endm
339
332#endif /* CONFIG_X86_64 */ 340#endif /* CONFIG_X86_64 */
333 341
342.macro STACKLEAK_ERASE
343#ifdef CONFIG_GCC_PLUGIN_STACKLEAK
344 call stackleak_erase
345#endif
346.endm
347
334/* 348/*
335 * This does 'call enter_from_user_mode' unless we can avoid it based on 349 * This does 'call enter_from_user_mode' unless we can avoid it based on
336 * kernel config or using the static jump infrastructure. 350 * kernel config or using the static jump infrastructure.