From 61e7d4eb42c5e71e647ac7275f16be56036ad865 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 24 Feb 2004 04:05:09 -0800 Subject: [PATCH] swsusp/s3: Assembly interactions need asmlinkage From: Pavel Machek swsusp/s3 assembly parts, and parts called from assembly are not properly marked asmlinkage; that leads to double fault on resume when someone compiles kernel with regparm. Thanks go to Stefan Seyfried for discovering this. --- include/linux/suspend.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux') diff --git a/include/linux/suspend.h b/include/linux/suspend.h index d0cdc77fa44e..810947658d59 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -81,4 +81,10 @@ static inline void thaw_processes(void) } #endif /* CONFIG_PM */ +asmlinkage void do_magic(int is_resume); +asmlinkage void do_magic_resume_1(void); +asmlinkage void do_magic_resume_2(void); +asmlinkage void do_magic_suspend_1(void); +asmlinkage void do_magic_suspend_2(void); + #endif /* _LINUX_SWSUSP_H */ -- cgit v1.2.3