Commit 993bb23a authored by Patrick Mochel's avatar Patrick Mochel

[power] Move saved_context_* variables.

- From arch/i386/kernel/suspend_asm.S to arch/i386/kernel/suspend.c
- Allows usage by both swsusp and ACPI independently on one another.
parent 27925dfb
...@@ -29,6 +29,12 @@ ...@@ -29,6 +29,12 @@
static struct saved_context saved_context; static struct saved_context saved_context;
static void fix_processor_context(void); static void fix_processor_context(void);
unsigned long saved_context_eax, saved_context_ebx;
unsigned long saved_context_ecx, saved_context_edx;
unsigned long saved_context_esp, saved_context_ebp;
unsigned long saved_context_esi, saved_context_edi;
unsigned long saved_context_eflags;
extern void enable_sep_cpu(void *); extern void enable_sep_cpu(void *);
void save_processor_state(void) void save_processor_state(void)
......
...@@ -6,32 +6,6 @@ ...@@ -6,32 +6,6 @@
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/page.h> #include <asm/page.h>
.data
.align 4
.globl saved_context_eax, saved_context_ebx
.globl saved_context_ecx, saved_context_edx
.globl saved_context_esp, saved_context_ebp
.globl saved_context_esi, saved_context_edi
.globl saved_context_eflags
saved_context_eax:
.long 0
saved_context_ebx:
.long 0
saved_context_ecx:
.long 0
saved_context_edx:
.long 0
saved_context_esp:
.long 0
saved_context_ebp:
.long 0
saved_context_esi:
.long 0
saved_context_edi:
.long 0
saved_context_eflags:
.long 0
.text .text
ENTRY(do_magic) ENTRY(do_magic)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment