create area for to save fp regs

refs #421
This commit is contained in:
Tomoki Shirasawa
2015-03-05 12:16:05 +09:00
parent 9946ccd6b1
commit e6011be1af
4 changed files with 108 additions and 0 deletions

View File

@ -51,6 +51,9 @@ extern void clear_single_step(struct process *proc);
static void insert_vm_range_list(struct process_vm *vm,
struct vm_range *newrange);
static int copy_user_ranges(struct process *proc, struct process *org);
extern void release_fp_regs(struct process *proc);
extern void save_fp_regs(struct process *proc);
extern void restore_fp_regs(struct process *proc);
void settid(struct process *proc, int mode, int newcpuid, int oldcpuid);
int refcount_fork_tree_node(struct fork_tree_node *ftn)
@ -1974,6 +1977,9 @@ void destroy_process(struct process *proc)
if (proc->ptrace_sendsig) {
kfree(proc->ptrace_sendsig);
}
if (proc->fp_regs) {
release_fp_regs(proc);
}
ihk_mc_free_pages(proc, KERNEL_STACK_NR_PAGES);
}