Re: IA64 versus effective stack limit - Mailing list pgsql-hackers

From Tom Lane
Subject Re: IA64 versus effective stack limit
Date
Msg-id 26080.1289081839@sss.pgh.pa.us
Whole thread Raw
In response to Re: IA64 versus effective stack limit  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> It seems more likely it would be some kind of asm than a trap.

I seem to be getting plausible results from this bit of crockery:


#include <asm/ia64regs.h>

static __inline__ void *
get_bsp(void)
{ void *ret;
#ifndef __INTEL_COMPILER __asm__ __volatile__(                      ";;\n    mov %0=ar.bsp\n"
:"=r"(ret));
#else ret = (void *) __getReg(_IA64_REG_AR_BSP);
#endif return ret;
}


I'll clean this up and commit, assuming it actually fixes the problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: IA64 versus effective stack limit
Next
From: "David E. Wheeler"
Date:
Subject: Re: Query Plan Columns