Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)
{
+10 −0
Original line number Diff line number Diff line
@@ -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