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: Sergio Luis <sergio@larces.uece.br>
Signed-off-by: Lauro Salmito <laurosalmito@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
Sergio Luis 2009-04-28 00:26:50 +02:00 committed by Rafael J. Wysocki
parent f6783d20d4
commit 833b2ca079
2 changed files with 17 additions and 0 deletions

View File

@ -18,12 +18,19 @@
#include <asm/xcr.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);
struct saved_context saved_context;
#endif
static void __save_processor_state(struct saved_context *ctxt)
{

View File

@ -19,9 +19,19 @@
#include <asm/xcr.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);
struct saved_context saved_context;
#endif
/**
* __save_processor_state - save CPU registers before creating a