1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-12 06:41:13 +02:00

freebsd itanium support

* libguile/threads.c (scm_ia64_register_backing_store_base)
  (scm_ia64_ar_bsp): Provide implementation of these itanium helpers on
  freebsd.  Thanks to Jim Pryor.
This commit is contained in:
Andy Wingo 2011-12-22 10:30:45 -05:00
parent c1d5d6d755
commit ba20d2629e

View file

@ -2228,6 +2228,21 @@ scm_ia64_ar_bsp (const void *opaque)
return (void *) ctx->uc_mcontext.sc_ar_bsp; return (void *) ctx->uc_mcontext.sc_ar_bsp;
} }
# endif /* linux */ # endif /* linux */
# ifdef __FreeBSD__
# include <ucontext.h>
void *
scm_ia64_register_backing_store_base (void)
{
return (void *)0x8000000000000000;
}
void *
scm_ia64_ar_bsp (const void *opaque)
{
const ucontext_t *ctx = opaque;
return (void *)(ctx->uc_mcontext.mc_special.bspstore
+ ctx->uc_mcontext.mc_special.ndirty);
}
# endif /* __FreeBSD__ */
#endif /* __ia64__ */ #endif /* __ia64__ */