Skip to content

Commit

Permalink
x86: unify power/cpu_(32|64) global variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sergio Luis authored and Rafael J. Wysocki committed Jun 12, 2009
1 parent f6783d2 commit 833b2ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/x86/power/cpu_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 10 additions & 0 deletions arch/x86/power/cpu_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 833b2ca

Please sign in to comment.