提交 833b2ca0 编写于 作者: S Sergio Luis 提交者: 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: NSergio Luis <sergio@larces.uece.br>
Signed-off-by: NLauro Salmito <laurosalmito@gmail.com>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 f6783d20
......@@ -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)
{
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册