PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/um/kernel/skas/exec_kern.c

https://bitbucket.org/evzijst/gittest
C | 41 lines | 23 code | 4 blank | 14 comment | 0 complexity | 33e793168c2a7bf6a3fb465a93e9a326 MD5 | raw file
 1/* 
 2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 3 * Licensed under the GPL
 4 */
 5
 6#include "linux/kernel.h"
 7#include "asm/current.h"
 8#include "asm/page.h"
 9#include "asm/signal.h"
10#include "asm/ptrace.h"
11#include "asm/uaccess.h"
12#include "asm/mmu_context.h"
13#include "tlb.h"
14#include "skas.h"
15#include "um_mmu.h"
16#include "os.h"
17
18void flush_thread_skas(void)
19{
20	force_flush_all();
21	switch_mm_skas(current->mm->context.skas.mm_fd);
22}
23
24void start_thread_skas(struct pt_regs *regs, unsigned long eip, 
25		       unsigned long esp)
26{
27	set_fs(USER_DS);
28        PT_REGS_IP(regs) = eip;
29	PT_REGS_SP(regs) = esp;
30}
31
32/*
33 * Overrides for Emacs so that we follow Linus's tabbing style.
34 * Emacs will notice this stuff at the end of the file and automatically
35 * adjust the settings for this buffer only.  This must remain at the end
36 * of the file.
37 * ---------------------------------------------------------------------------
38 * Local variables:
39 * c-file-style: "linux"
40 * End:
41 */