Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273040
b: refs/heads/master
c: c7ea591
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 7bcafbb commit c09ed86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3579a389730dd74d9f280152c52aa851dd1da860
refs/heads/master: c7ea591c91162a203a5961d69f5c86a6ef9d50c1
3 changes: 3 additions & 0 deletions trunk/arch/x86/um/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# include "processor_64.h"
#endif

#define ARCH_IS_STACKGROW(address) \
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs))

#include <asm/processor-generic.h>

#endif
3 changes: 0 additions & 3 deletions trunk/arch/x86/um/asm/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ static inline void rep_nop(void)
#define current_text_addr() \
({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })

#define ARCH_IS_STACKGROW(address) \
(address + 32 >= UPT_SP(&current->thread.regs.regs))

#define KSTK_EIP(tsk) KSTK_REG(tsk, EIP)
#define KSTK_ESP(tsk) KSTK_REG(tsk, UESP)
#define KSTK_EBP(tsk) KSTK_REG(tsk, EBP)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/um/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ static inline void arch_copy_thread(struct arch_thread *from,
#define current_text_addr() \
({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })

#define ARCH_IS_STACKGROW(address) \
(address + 128 >= UPT_SP(&current->thread.regs.regs))

#define KSTK_EIP(tsk) KSTK_REG(tsk, RIP)
#define KSTK_ESP(tsk) KSTK_REG(tsk, RSP)

Expand Down

0 comments on commit c09ed86

Please sign in to comment.