mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +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:
parent
c1d5d6d755
commit
ba20d2629e
1 changed files with 15 additions and 0 deletions
|
@ -2228,6 +2228,21 @@ scm_ia64_ar_bsp (const void *opaque)
|
|||
return (void *) ctx->uc_mcontext.sc_ar_bsp;
|
||||
}
|
||||
# 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__ */
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue