Skip to content

Commit

Permalink
sparc: Fix execution domain removal
Browse files Browse the repository at this point in the history
ksp must be 8-byte aligned.

Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Guenter Roeck authored and Richard Weinberger committed Apr 12, 2015
1 parent 9058f3b commit 720d707
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions arch/sparc/include/asm/thread_info_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ struct thread_info {
int softirq_count;
int hardirq_count;

u32 __unused;

/* Context switch saved kernel state. */
unsigned long ksp; /* ... ksp __attribute__ ((aligned (8))); */
unsigned long kpc;
Expand Down Expand Up @@ -88,13 +90,13 @@ register struct thread_info *current_thread_info_reg asm("g6");
#define TI_PREEMPT 0x10 /* preempt_count */
#define TI_SOFTIRQ 0x14 /* softirq_count */
#define TI_HARDIRQ 0x18 /* hardirq_count */
#define TI_KSP 0x1c /* ksp */
#define TI_KPC 0x20 /* kpc (ldd'ed with kpc) */
#define TI_KPSR 0x24 /* kpsr */
#define TI_KWIM 0x28 /* kwim (ldd'ed with kpsr) */
#define TI_REG_WINDOW 0x2c
#define TI_RWIN_SPTRS 0x22c
#define TI_W_SAVED 0x24c
#define TI_KSP 0x20 /* ksp */
#define TI_KPC 0x24 /* kpc (ldd'ed with kpc) */
#define TI_KPSR 0x28 /* kpsr */
#define TI_KWIM 0x2c /* kwim (ldd'ed with kpsr) */
#define TI_REG_WINDOW 0x30
#define TI_RWIN_SPTRS 0x230
#define TI_W_SAVED 0x250

/*
* thread information flag bit numbers
Expand Down

0 comments on commit 720d707

Please sign in to comment.