Revision 9349b4f9 linux-user/signal.c
b/linux-user/signal.c | ||
---|---|---|
347 | 347 |
|
348 | 348 |
/* signal queue handling */ |
349 | 349 |
|
350 |
static inline struct sigqueue *alloc_sigqueue(CPUState *env) |
|
350 |
static inline struct sigqueue *alloc_sigqueue(CPUArchState *env)
|
|
351 | 351 |
{ |
352 | 352 |
TaskState *ts = env->opaque; |
353 | 353 |
struct sigqueue *q = ts->first_free; |
... | ... | |
357 | 357 |
return q; |
358 | 358 |
} |
359 | 359 |
|
360 |
static inline void free_sigqueue(CPUState *env, struct sigqueue *q) |
|
360 |
static inline void free_sigqueue(CPUArchState *env, struct sigqueue *q)
|
|
361 | 361 |
{ |
362 | 362 |
TaskState *ts = env->opaque; |
363 | 363 |
q->next = ts->first_free; |
... | ... | |
415 | 415 |
|
416 | 416 |
/* queue a signal so that it will be send to the virtual CPU as soon |
417 | 417 |
as possible */ |
418 |
int queue_signal(CPUState *env, int sig, target_siginfo_t *info) |
|
418 |
int queue_signal(CPUArchState *env, int sig, target_siginfo_t *info)
|
|
419 | 419 |
{ |
420 | 420 |
TaskState *ts = env->opaque; |
421 | 421 |
struct emulated_sigtable *k; |
... | ... | |
5214 | 5214 |
#else |
5215 | 5215 |
|
5216 | 5216 |
static void setup_frame(int sig, struct target_sigaction *ka, |
5217 |
target_sigset_t *set, CPUState *env) |
|
5217 |
target_sigset_t *set, CPUArchState *env)
|
|
5218 | 5218 |
{ |
5219 | 5219 |
fprintf(stderr, "setup_frame: not implemented\n"); |
5220 | 5220 |
} |
5221 | 5221 |
|
5222 | 5222 |
static void setup_rt_frame(int sig, struct target_sigaction *ka, |
5223 | 5223 |
target_siginfo_t *info, |
5224 |
target_sigset_t *set, CPUState *env) |
|
5224 |
target_sigset_t *set, CPUArchState *env)
|
|
5225 | 5225 |
{ |
5226 | 5226 |
fprintf(stderr, "setup_rt_frame: not implemented\n"); |
5227 | 5227 |
} |
5228 | 5228 |
|
5229 |
long do_sigreturn(CPUState *env) |
|
5229 |
long do_sigreturn(CPUArchState *env)
|
|
5230 | 5230 |
{ |
5231 | 5231 |
fprintf(stderr, "do_sigreturn: not implemented\n"); |
5232 | 5232 |
return -TARGET_ENOSYS; |
5233 | 5233 |
} |
5234 | 5234 |
|
5235 |
long do_rt_sigreturn(CPUState *env) |
|
5235 |
long do_rt_sigreturn(CPUArchState *env)
|
|
5236 | 5236 |
{ |
5237 | 5237 |
fprintf(stderr, "do_rt_sigreturn: not implemented\n"); |
5238 | 5238 |
return -TARGET_ENOSYS; |
... | ... | |
5240 | 5240 |
|
5241 | 5241 |
#endif |
5242 | 5242 |
|
5243 |
void process_pending_signals(CPUState *cpu_env) |
|
5243 |
void process_pending_signals(CPUArchState *cpu_env)
|
|
5244 | 5244 |
{ |
5245 | 5245 |
int sig; |
5246 | 5246 |
abi_ulong handler; |
Also available in: Unified diff