skas.h 694 字节
Newer Older
1
/*
L
Linus Torvalds 已提交
2 3 4 5 6 7 8
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

#ifndef __SKAS_H
#define __SKAS_H

9
#include "mm_id.h"
L
Linus Torvalds 已提交
10 11 12
#include "sysdep/ptrace.h"

extern int userspace_pid[];
13 14
extern int proc_mm, ptrace_faultinfo, ptrace_ldt;
extern int skas_needs_stub;
L
Linus Torvalds 已提交
15 16 17 18 19

extern int user_thread(unsigned long stack, int flags);
extern void new_thread_proc(void *stack, void (*handler)(int sig));
extern void new_thread_handler(int sig);
extern void handle_syscall(union uml_pt_regs *regs);
B
Bodo Stroesser 已提交
20
extern int new_mm(unsigned long stack);
21
extern void get_skas_faultinfo(int pid, struct faultinfo * fi);
L
Linus Torvalds 已提交
22
extern long execute_syscall_skas(void *r);
23
extern unsigned long current_stub_stack(void);
L
Linus Torvalds 已提交
24 25

#endif