blob: e88926b16072e21d0b1c4af2f854397c24a8bfd0 [file] [log] [blame]
Gennady Sharapov4abfbf42006-01-18 17:42:44 -08001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __SKAS_H
7#define __SKAS_H
8
Jeff Diked67b5692005-07-07 17:56:49 -07009#include "mm_id.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include "sysdep/ptrace.h"
11
12extern int userspace_pid[];
Bodo Stroesser858259c2005-11-07 00:58:55 -080013extern int proc_mm, ptrace_faultinfo, ptrace_ldt;
14extern int skas_needs_stub;
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern int user_thread(unsigned long stack, int flags);
Jeff Dike3c917352006-09-27 01:50:40 -070017extern void new_thread_handler(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018extern void handle_syscall(union uml_pt_regs *regs);
Bodo Stroesser12919aa2006-01-18 17:42:39 -080019extern int new_mm(unsigned long stack);
Bodo Stroesserc5784552005-05-05 16:15:31 -070020extern void get_skas_faultinfo(int pid, struct faultinfo * fi);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021extern long execute_syscall_skas(void *r);
Jeff Diked67b5692005-07-07 17:56:49 -070022extern unsigned long current_stub_stack(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24#endif