diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/process_kern.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/kernel/process_kern.c b/arch/um/kernel/process_kern.c index dea80d4357f0..3dcb080c44a0 100644 --- a/arch/um/kernel/process_kern.c +++ b/arch/um/kernel/process_kern.c | |||
@@ -466,12 +466,21 @@ int singlestepping(void * t) | |||
466 | return 2; | 466 | return 2; |
467 | } | 467 | } |
468 | 468 | ||
469 | /* | ||
470 | * Only x86 and x86_64 have an arch_align_stack(). | ||
471 | * All other arches have "#define arch_align_stack(x) (x)" | ||
472 | * in their asm/system.h | ||
473 | * As this is included in UML from asm-um/system-generic.h, | ||
474 | * we can use it to behave as the subarch does. | ||
475 | */ | ||
476 | #ifndef arch_align_stack | ||
469 | unsigned long arch_align_stack(unsigned long sp) | 477 | unsigned long arch_align_stack(unsigned long sp) |
470 | { | 478 | { |
471 | if (randomize_va_space) | 479 | if (randomize_va_space) |
472 | sp -= get_random_int() % 8192; | 480 | sp -= get_random_int() % 8192; |
473 | return sp & ~0xf; | 481 | return sp & ~0xf; |
474 | } | 482 | } |
483 | #endif | ||
475 | 484 | ||
476 | 485 | ||
477 | /* | 486 | /* |