diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c index 3ee91869521..f85b928ffac 100644 --- a/arch/m68k/kernel/process.c +++ b/arch/m68k/kernel/process.c | |||
@@ -335,7 +335,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump) | |||
335 | if (dump->start_stack < TASK_SIZE) | 335 | if (dump->start_stack < TASK_SIZE) |
336 | dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; | 336 | dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; |
337 | 337 | ||
338 | dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump); | 338 | dump->u_ar0 = offsetof(struct user, regs); |
339 | sw = ((struct switch_stack *)regs) - 1; | 339 | sw = ((struct switch_stack *)regs) - 1; |
340 | dump->regs.d1 = regs->d1; | 340 | dump->regs.d1 = regs->d1; |
341 | dump->regs.d2 = regs->d2; | 341 | dump->regs.d2 = regs->d2; |
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index e6e49289f78..4b749c41646 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -313,7 +313,7 @@ int main(void) | |||
313 | DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); | 313 | DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); |
314 | DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); | 314 | DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); |
315 | DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); | 315 | DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); |
316 | DEFINE(CLOCK_REALTIME_RES, (KTIME_MONOTONIC_RES).tv64); | 316 | DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); |
317 | 317 | ||
318 | #ifdef CONFIG_BUG | 318 | #ifdef CONFIG_BUG |
319 | DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); | 319 | DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c95482b6b6d..9d0acedf5f3 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -52,6 +52,10 @@ config HAVE_LATENCYTOP_SUPPORT | |||
52 | config SEMAPHORE_SLEEPERS | 52 | config SEMAPHORE_SLEEPERS |
53 | def_bool y | 53 | def_bool y |
54 | 54 | ||
55 | config FAST_CMPXCHG_LOCAL | ||
56 | bool | ||
57 | default y | ||
58 | |||
55 | config MMU | 59 | config MMU |
56 | def_bool y | 60 | def_bool y |
57 | 61 | ||