#include "asm/current.h"
#include "asm/processor.h"
#include "asm/uaccess.h"
+#include "as-layout.h"
#include "mem_user.h"
#include "skas.h"
#include "os.h"
void flush_thread(void)
{
void *data = NULL;
- unsigned long end = proc_mm ? task_size : CONFIG_STUB_START;
int ret;
arch_flush_thread(¤t->thread.arch);
- ret = unmap(¤t->mm->context.skas.id, 0, end, 1, &data);
+ ret = unmap(¤t->mm->context.id, 0, STUB_START, 0, &data);
+ ret = ret || unmap(¤t->mm->context.id, STUB_END,
+ host_task_size - STUB_END, 1, &data);
if (ret) {
printk(KERN_ERR "flush_thread - clearing address space failed, "
"err = %d\n", ret);
force_sig(SIGKILL, current);
}
- __switch_mm(¤t->mm->context.skas.id);
+ __switch_mm(¤t->mm->context.id);
}
void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)
err = execve1(file, argv, env);
if (!err)
- do_longjmp(current->thread.exec_buf, 1);
+ UML_LONGJMP(current->thread.exec_buf, 1);
return err;
}