* swsusp: move variables where they belong
@ 2002-12-04 13:02 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2002-12-04 13:02 UTC (permalink / raw)
To: torvalds, kernel list
Hi!
swsusp: Move loop variables into assembly, where they are used. Please
apply,
Pavel
--- clean/arch/i386/kernel/suspend.c 2002-11-19 16:45:58.000000000 +0100
+++ linux-swsusp/arch/i386/kernel/suspend.c 2002-11-30 15:28:40.000000000 +0100
@@ -125,10 +125,3 @@
}
}
-
-#ifdef CONFIG_SOFTWARE_SUSPEND
-/* Local variables for do_magic */
-int loop __nosavedata = 0;
-int loop2 __nosavedata = 0;
-
-#endif
--- clean/arch/i386/kernel/suspend_asm.S 2002-11-19 16:45:58.000000000 +0100
+++ linux-swsusp/arch/i386/kernel/suspend_asm.S 2002-11-30 15:28:32.000000000 +0100
@@ -1,4 +1,7 @@
.text
+
+/* Originally gcc generated, modified by hand */
+
#include <linux/linkage.h>
#include <asm/segment.h>
#include <asm/page.h>
@@ -78,3 +81,11 @@
.L1449:
popl %ebx
ret
+
+ .section .data.nosave
+loop:
+ .quad 0
+loop2:
+ .quad 0
+ .previous
+
\ No newline at end of file
--
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-05 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 13:02 swsusp: move variables where they belong Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox