diff options
author | Pekka Enberg <penberg@kernel.org> | 2012-02-02 19:43:38 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-02-02 19:43:38 +0200 |
commit | e02213005e1410f1e7115a504d229bc0e346a079 (patch) | |
tree | fff35198eb96b77b6ec04f938311a8ee3e083fff | |
parent | 622d8d8382450087081dc35404c77706b74e1cf4 (diff) | |
download | jato-e02213005e1410f1e7115a504d229bc0e346a079.tar.gz |
arm, linux: Implement signal handling functions
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r-- | sys/linux-arm/signal.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/linux-arm/signal.c b/sys/linux-arm/signal.c index b6fd5b18..10112f00 100644 --- a/sys/linux-arm/signal.c +++ b/sys/linux-arm/signal.c @@ -6,15 +6,22 @@ bool signal_from_native(void *ctx) { - assert(!"not implemented"); + ucontext_t *uc = ctx; + struct sigcontext *sc = &uc->uc_mcontext; + + return is_native(sc->arm_pc); } -int install_signal_bh(void *ctx, signal_bh_fn bh) +struct compilation_unit *get_signal_source_cu(void *ctx) { - assert(!"not implemented"); + ucontext_t *uc = ctx; + struct sigcontext *sc = &uc->uc_mcontext; + + return jit_lookup_cu(sc->arm_pc); } -struct compilation_unit *get_signal_source_cu(void *ctx) +int install_signal_bh(void *ctx, signal_bh_fn bh) { assert(!"not implemented"); } + |