Commit 833b2ca0 authored by Sergio Luis's avatar Sergio Luis Committed by Rafael J. Wysocki

x86: unify power/cpu_(32|64) global variables

Aiming total unification of cpu_32.c and cpu_64.c, in this step
we do unify the global variables and existing forward declarations
for such files.
Signed-off-by: default avatarSergio Luis <sergio@larces.uece.br>
Signed-off-by: default avatarLauro Salmito <laurosalmito@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent f6783d20
...@@ -18,12 +18,19 @@ ...@@ -18,12 +18,19 @@
#include <asm/xcr.h> #include <asm/xcr.h>
#include <asm/suspend.h> #include <asm/suspend.h>
#ifdef CONFIG_X86_32
static struct saved_context saved_context; static struct saved_context saved_context;
unsigned long saved_context_ebx; unsigned long saved_context_ebx;
unsigned long saved_context_esp, saved_context_ebp; unsigned long saved_context_esp, saved_context_ebp;
unsigned long saved_context_esi, saved_context_edi; unsigned long saved_context_esi, saved_context_edi;
unsigned long saved_context_eflags; unsigned long saved_context_eflags;
#else
/* CONFIG_X86_64 */
static void fix_processor_context(void);
struct saved_context saved_context;
#endif
static void __save_processor_state(struct saved_context *ctxt) static void __save_processor_state(struct saved_context *ctxt)
{ {
......
...@@ -19,9 +19,19 @@ ...@@ -19,9 +19,19 @@
#include <asm/xcr.h> #include <asm/xcr.h>
#include <asm/suspend.h> #include <asm/suspend.h>
#ifdef CONFIG_X86_32
static struct saved_context saved_context;
unsigned long saved_context_ebx;
unsigned long saved_context_esp, saved_context_ebp;
unsigned long saved_context_esi, saved_context_edi;
unsigned long saved_context_eflags;
#else
/* CONFIG_X86_64 */
static void fix_processor_context(void); static void fix_processor_context(void);
struct saved_context saved_context; struct saved_context saved_context;
#endif
/** /**
* __save_processor_state - save CPU registers before creating a * __save_processor_state - save CPU registers before creating a
......
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