repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git]
/
vm
/
os-freebsd-x86.32.h
blob
a04755e9dd318a404eb78b71ba7e6ce7e78a09d6
1
#include <ucontext.h>
2
3
INLINE
void
*
ucontext_stack_pointer
(
void
*
uap
)
4
{
5
ucontext_t
*
ucontext
= (
ucontext_t
*)
uap
;
6
return
(
void
*)
ucontext
->
uc_mcontext
.
mc_esp
;
7
}
8
9
#define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)(ucontext))->uc_mcontext.mc_eip)