factor/vm/os-linux-arm.h

15 lines
345 B
C
Raw Normal View History

2007-09-20 18:09:08 -04:00
#include <ucontext.h>
#include <asm/unistd.h>
#include <sys/syscall.h>
INLINE void *ucontext_stack_pointer(void *uap)
{
ucontext_t *ucontext = (ucontext_t *)uap;
return (void *)ucontext->uc_mcontext.arm_sp;
}
2007-11-05 01:40:48 -05:00
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t *)(ucontext))->uc_mcontext.arm_pc)
void flush_icache(CELL start, CELL len);