From: Ben Pfaff Date: Tue, 13 Jan 2009 23:10:11 +0000 (-0800) Subject: Fix bugs in leak checker. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c565f0b7c8134deccb3df0a1496ca03650c897b;p=openvswitch Fix bugs in leak checker. Oops. --- diff --git a/lib/leak-checker.c b/lib/leak-checker.c index defc1edb..bdff3247 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -143,7 +143,7 @@ leak_checker_usage(void) } static uintptr_t UNUSED -read_maps(void) +get_max_stack(void) { static const char file_name[] = "/proc/self/maps"; char line[1024]; @@ -176,7 +176,7 @@ read_maps(void) static void get_stack_limits(uintptr_t *lowp, uintptr_t *highp) { -#ifndef __x86__ +#ifndef __i386__ static bool warned = false; if (!warned) { warned = true; @@ -190,7 +190,7 @@ get_stack_limits(uintptr_t *lowp, uintptr_t *highp) if (!high) { high = get_max_stack(); } - asm("movl %%esp,%0" : "g" (*lowp)); + asm("movl %%esp,%0" : "=g" (*lowp)); *highp = high; #endif }