2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #include "linux/kernel.h"
7 #include "asm/current.h"
9 #include "asm/signal.h"
10 #include "asm/ptrace.h"
11 #include "asm/uaccess.h"
12 #include "asm/mmu_context.h"
18 void flush_thread_skas(void)
21 unsigned long end
= proc_mm
? task_size
: CONFIG_STUB_START
;
24 ret
= unmap(¤t
->mm
->context
.skas
.id
, 0, end
, 1, &data
);
26 printk("flush_thread_skas - clearing address space failed, "
28 force_sig(SIGKILL
, current
);
31 switch_mm_skas(¤t
->mm
->context
.skas
.id
);
34 void start_thread_skas(struct pt_regs
*regs
, unsigned long eip
,
38 PT_REGS_IP(regs
) = eip
;
39 PT_REGS_SP(regs
) = esp
;