Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1083
b: refs/heads/master
c: b8bd022
h: refs/heads/master
i:
  1081: 2ece35a
  1079: 9eaa862
v: v3
  • Loading branch information
Bodo Stroesser authored and Linus Torvalds committed May 7, 2005
1 parent 13a4819 commit fc58187
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f3be588b51e809476cdecd4eaf6fd04670d9c36
refs/heads/master: b8bd0220c1ac6273eda66e25d992654219f846b6
9 changes: 9 additions & 0 deletions trunk/arch/um/kernel/process_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,21 @@ int singlestepping(void * t)
return 2;
}

/*
* Only x86 and x86_64 have an arch_align_stack().
* All other arches have "#define arch_align_stack(x) (x)"
* in their asm/system.h
* As this is included in UML from asm-um/system-generic.h,
* we can use it to behave as the subarch does.
*/
#ifndef arch_align_stack
unsigned long arch_align_stack(unsigned long sp)
{
if (randomize_va_space)
sp -= get_random_int() % 8192;
return sp & ~0xf;
}
#endif


/*
Expand Down

0 comments on commit fc58187

Please sign in to comment.