Re: IA64 versus effective stack limit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org, "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Subject: Re: IA64 versus effective stack limit
Date: 2010-11-06 22:17:19
Message-ID: 26080.1289081839@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <gsstark(at)mit(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-11-06 22:24:16 Re: Query Plan Columns
Previous Message Tom Lane 2010-11-06 21:15:16 Re: IA64 versus effective stack limit