From cd84ed2b393b564f5d8bfdaae60b814f81f24dc4 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 24 Nov 2014 13:19:14 +0100 Subject: [PATCH] [mc] Fix the stack cleaner The condition was broken and the %rsp limit was too high. --- tools/stack-cleaner/clean-stack-filter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/stack-cleaner/clean-stack-filter b/tools/stack-cleaner/clean-stack-filter index a7c87fe117..95a3b520f4 100755 --- a/tools/stack-cleaner/clean-stack-filter +++ b/tools/stack-cleaner/clean-stack-filter @@ -26,9 +26,9 @@ sub emit_code { # This is a crude hack to disable the stack cleaning on the main # stack. It rellies on the fact that the main stack is high in # the address space and the other stacks are in the hap (lower). - print("\tmovq \$0x7ffff7ff8000, %r11\n"); + print("\tmovq \$0x7fff00000000, %r11\n"); print("\tcmpq %r11, %rsp\n"); - print("\tjbe .Lstack_cleaner_done$id\n"); + print("\tjae .Lstack_cleaner_done$id\n"); # Loop over the stack frame quadwords and zero it: print("\tmovabsq \$$qsize, %r11\n"); -- 2.20.1