diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/um/include/tlb.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/um/include/tlb.h')
-rw-r--r-- | arch/um/include/tlb.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/um/include/tlb.h b/arch/um/include/tlb.h new file mode 100644 index 000000000000..da1097285b8c --- /dev/null +++ b/arch/um/include/tlb.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __TLB_H__ | ||
7 | #define __TLB_H__ | ||
8 | |||
9 | #include "um_mmu.h" | ||
10 | |||
11 | struct host_vm_op { | ||
12 | enum { MMAP, MUNMAP, MPROTECT } type; | ||
13 | union { | ||
14 | struct { | ||
15 | unsigned long addr; | ||
16 | unsigned long len; | ||
17 | unsigned int r:1; | ||
18 | unsigned int w:1; | ||
19 | unsigned int x:1; | ||
20 | int fd; | ||
21 | __u64 offset; | ||
22 | } mmap; | ||
23 | struct { | ||
24 | unsigned long addr; | ||
25 | unsigned long len; | ||
26 | } munmap; | ||
27 | struct { | ||
28 | unsigned long addr; | ||
29 | unsigned long len; | ||
30 | unsigned int r:1; | ||
31 | unsigned int w:1; | ||
32 | unsigned int x:1; | ||
33 | } mprotect; | ||
34 | } u; | ||
35 | }; | ||
36 | |||
37 | extern void mprotect_kernel_vm(int w); | ||
38 | extern void force_flush_all(void); | ||
39 | extern void fix_range_common(struct mm_struct *mm, unsigned long start_addr, | ||
40 | unsigned long end_addr, int force, int data, | ||
41 | void (*do_ops)(int, struct host_vm_op *, int)); | ||
42 | extern int flush_tlb_kernel_range_common(unsigned long start, | ||
43 | unsigned long end); | ||
44 | |||
45 | extern int add_mmap(unsigned long virt, unsigned long phys, unsigned long len, | ||
46 | int r, int w, int x, struct host_vm_op *ops, int index, | ||
47 | int last_filled, int data, | ||
48 | void (*do_ops)(int, struct host_vm_op *, int)); | ||
49 | extern int add_munmap(unsigned long addr, unsigned long len, | ||
50 | struct host_vm_op *ops, int index, int last_filled, | ||
51 | int data, void (*do_ops)(int, struct host_vm_op *, int)); | ||
52 | extern int add_mprotect(unsigned long addr, unsigned long len, int r, int w, | ||
53 | int x, struct host_vm_op *ops, int index, | ||
54 | int last_filled, int data, | ||
55 | void (*do_ops)(int, struct host_vm_op *, int)); | ||
56 | #endif | ||
57 | |||
58 | /* | ||
59 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
60 | * Emacs will notice this stuff at the end of the file and automatically | ||
61 | * adjust the settings for this buffer only. This must remain at the end | ||
62 | * of the file. | ||
63 | * --------------------------------------------------------------------------- | ||
64 | * Local variables: | ||
65 | * c-file-style: "linux" | ||
66 | * End: | ||
67 | */ | ||