}
static uintptr_t UNUSED
-read_maps(void)
+get_max_stack(void)
{
static const char file_name[] = "/proc/self/maps";
char line[1024];
static void
get_stack_limits(uintptr_t *lowp, uintptr_t *highp)
{
-#ifndef __x86__
+#ifndef __i386__
static bool warned = false;
if (!warned) {
warned = true;
if (!high) {
high = get_max_stack();
}
- asm("movl %%esp,%0" : "g" (*lowp));
+ asm("movl %%esp,%0" : "=g" (*lowp));
*highp = high;
#endif
}