diff options
Diffstat (limited to 'include/asm-um')
-rw-r--r-- | include/asm-um/irq.h | 3 | ||||
-rw-r--r-- | include/asm-um/keyboard.h | 6 | ||||
-rw-r--r-- | include/asm-um/kvm.h | 6 | ||||
-rw-r--r-- | include/asm-um/mmu_context.h | 12 | ||||
-rw-r--r-- | include/asm-um/namei.h | 6 | ||||
-rw-r--r-- | include/asm-um/page.h | 23 | ||||
-rw-r--r-- | include/asm-um/param.h | 2 | ||||
-rw-r--r-- | include/asm-um/ptrace-generic.h | 3 | ||||
-rw-r--r-- | include/asm-um/semaphore.h | 1 | ||||
-rw-r--r-- | include/asm-um/thread_info.h | 16 |
10 files changed, 19 insertions, 59 deletions
diff --git a/include/asm-um/irq.h b/include/asm-um/irq.h index de389a477cd..4a2037f8204 100644 --- a/include/asm-um/irq.h +++ b/include/asm-um/irq.h | |||
@@ -15,8 +15,9 @@ | |||
15 | #define SIGIO_WRITE_IRQ 11 | 15 | #define SIGIO_WRITE_IRQ 11 |
16 | #define TELNETD_IRQ 12 | 16 | #define TELNETD_IRQ 12 |
17 | #define XTERM_IRQ 13 | 17 | #define XTERM_IRQ 13 |
18 | #define RANDOM_IRQ 14 | ||
18 | 19 | ||
19 | #define LAST_IRQ XTERM_IRQ | 20 | #define LAST_IRQ RANDOM_IRQ |
20 | #define NR_IRQS (LAST_IRQ + 1) | 21 | #define NR_IRQS (LAST_IRQ + 1) |
21 | 22 | ||
22 | #endif | 23 | #endif |
diff --git a/include/asm-um/keyboard.h b/include/asm-um/keyboard.h deleted file mode 100644 index ee2e2303d0e..00000000000 --- a/include/asm-um/keyboard.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __UM_KEYBOARD_H | ||
2 | #define __UM_KEYBOARD_H | ||
3 | |||
4 | #include "asm/arch/keyboard.h" | ||
5 | |||
6 | #endif | ||
diff --git a/include/asm-um/kvm.h b/include/asm-um/kvm.h deleted file mode 100644 index 66aa7709455..00000000000 --- a/include/asm-um/kvm.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __LINUX_KVM_UM_H | ||
2 | #define __LINUX_KVM_UM_H | ||
3 | |||
4 | /* um does not support KVM */ | ||
5 | |||
6 | #endif | ||
diff --git a/include/asm-um/mmu_context.h b/include/asm-um/mmu_context.h index 6686fc524ca..54f42e8b010 100644 --- a/include/asm-um/mmu_context.h +++ b/include/asm-um/mmu_context.h | |||
@@ -22,16 +22,10 @@ extern void force_flush_all(void); | |||
22 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) | 22 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) |
23 | { | 23 | { |
24 | /* | 24 | /* |
25 | * This is called by fs/exec.c and fs/aio.c. In the first case, for an | 25 | * This is called by fs/exec.c and sys_unshare() |
26 | * exec, we don't need to do anything as we're called from userspace | 26 | * when the new ->mm is used for the first time. |
27 | * and thus going to use a new host PID. In the second, we're called | ||
28 | * from a kernel thread, and thus need to go doing the mmap's on the | ||
29 | * host. Since they're very expensive, we want to avoid that as far as | ||
30 | * possible. | ||
31 | */ | 27 | */ |
32 | if (old != new && (current->flags & PF_BORROWED_MM)) | 28 | __switch_mm(&new->context.id); |
33 | __switch_mm(&new->context.id); | ||
34 | |||
35 | arch_dup_mmap(old, new); | 29 | arch_dup_mmap(old, new); |
36 | } | 30 | } |
37 | 31 | ||
diff --git a/include/asm-um/namei.h b/include/asm-um/namei.h deleted file mode 100644 index 002984d5bc8..00000000000 --- a/include/asm-um/namei.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __UM_NAMEI_H | ||
2 | #define __UM_NAMEI_H | ||
3 | |||
4 | #include "asm/arch/namei.h" | ||
5 | |||
6 | #endif | ||
diff --git a/include/asm-um/page.h b/include/asm-um/page.h index 381f96b1c82..a6df1f13d73 100644 --- a/include/asm-um/page.h +++ b/include/asm-um/page.h | |||
@@ -7,16 +7,20 @@ | |||
7 | #ifndef __UM_PAGE_H | 7 | #ifndef __UM_PAGE_H |
8 | #define __UM_PAGE_H | 8 | #define __UM_PAGE_H |
9 | 9 | ||
10 | struct page; | 10 | #include <linux/const.h> |
11 | |||
12 | #include <linux/types.h> | ||
13 | #include <asm/vm-flags.h> | ||
14 | 11 | ||
15 | /* PAGE_SHIFT determines the page size */ | 12 | /* PAGE_SHIFT determines the page size */ |
16 | #define PAGE_SHIFT 12 | 13 | #define PAGE_SHIFT 12 |
17 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
18 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 15 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
19 | 16 | ||
17 | #ifndef __ASSEMBLY__ | ||
18 | |||
19 | struct page; | ||
20 | |||
21 | #include <linux/types.h> | ||
22 | #include <asm/vm-flags.h> | ||
23 | |||
20 | /* | 24 | /* |
21 | * These are used to make use of C type-checking.. | 25 | * These are used to make use of C type-checking.. |
22 | */ | 26 | */ |
@@ -88,9 +92,6 @@ typedef struct page *pgtable_t; | |||
88 | #define __pgd(x) ((pgd_t) { (x) } ) | 92 | #define __pgd(x) ((pgd_t) { (x) } ) |
89 | #define __pgprot(x) ((pgprot_t) { (x) } ) | 93 | #define __pgprot(x) ((pgprot_t) { (x) } ) |
90 | 94 | ||
91 | /* to align the pointer to the (next) page boundary */ | ||
92 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) | ||
93 | |||
94 | extern unsigned long uml_physmem; | 95 | extern unsigned long uml_physmem; |
95 | 96 | ||
96 | #define PAGE_OFFSET (uml_physmem) | 97 | #define PAGE_OFFSET (uml_physmem) |
@@ -114,10 +115,8 @@ extern unsigned long uml_physmem; | |||
114 | #define pfn_valid(pfn) ((pfn) < max_mapnr) | 115 | #define pfn_valid(pfn) ((pfn) < max_mapnr) |
115 | #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v))) | 116 | #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v))) |
116 | 117 | ||
117 | extern struct page *arch_validate(struct page *page, gfp_t mask, int order); | ||
118 | #define HAVE_ARCH_VALIDATE | ||
119 | |||
120 | #include <asm-generic/memory_model.h> | 118 | #include <asm-generic/memory_model.h> |
121 | #include <asm-generic/page.h> | 119 | #include <asm-generic/page.h> |
122 | 120 | ||
123 | #endif | 121 | #endif /* __ASSEMBLY__ */ |
122 | #endif /* __UM_PAGE_H */ | ||
diff --git a/include/asm-um/param.h b/include/asm-um/param.h index 4cd4a226f8c..e44f4e60d16 100644 --- a/include/asm-um/param.h +++ b/include/asm-um/param.h | |||
@@ -13,6 +13,8 @@ | |||
13 | #define HZ CONFIG_HZ | 13 | #define HZ CONFIG_HZ |
14 | #define USER_HZ 100 /* .. some user interfaces are in "ticks" */ | 14 | #define USER_HZ 100 /* .. some user interfaces are in "ticks" */ |
15 | #define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ | 15 | #define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ |
16 | #else | ||
17 | #define HZ 100 | ||
16 | #endif | 18 | #endif |
17 | 19 | ||
18 | #endif | 20 | #endif |
diff --git a/include/asm-um/ptrace-generic.h b/include/asm-um/ptrace-generic.h index 6aefcd32fc6..315749705ea 100644 --- a/include/asm-um/ptrace-generic.h +++ b/include/asm-um/ptrace-generic.h | |||
@@ -47,9 +47,6 @@ extern int set_fpregs(struct user_i387_struct __user *buf, | |||
47 | 47 | ||
48 | extern void show_regs(struct pt_regs *regs); | 48 | extern void show_regs(struct pt_regs *regs); |
49 | 49 | ||
50 | extern void send_sigtrap(struct task_struct *tsk, struct uml_pt_regs *regs, | ||
51 | int error_code); | ||
52 | |||
53 | extern int arch_copy_tls(struct task_struct *new); | 50 | extern int arch_copy_tls(struct task_struct *new); |
54 | extern void clear_flushed_tls(struct task_struct *task); | 51 | extern void clear_flushed_tls(struct task_struct *task); |
55 | 52 | ||
diff --git a/include/asm-um/semaphore.h b/include/asm-um/semaphore.h deleted file mode 100644 index d9b2034ed1d..00000000000 --- a/include/asm-um/semaphore.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | #include <linux/semaphore.h> | ||
diff --git a/include/asm-um/thread_info.h b/include/asm-um/thread_info.h index 356b83e2c22..e07e72846c7 100644 --- a/include/asm-um/thread_info.h +++ b/include/asm-um/thread_info.h | |||
@@ -53,21 +53,7 @@ static inline struct thread_info *current_thread_info(void) | |||
53 | return ti; | 53 | return ti; |
54 | } | 54 | } |
55 | 55 | ||
56 | #ifdef CONFIG_DEBUG_STACK_USAGE | 56 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER |
57 | |||
58 | #define alloc_thread_info(tsk) \ | ||
59 | ((struct thread_info *) __get_free_pages(GFP_KERNEL | __GFP_ZERO, \ | ||
60 | CONFIG_KERNEL_STACK_ORDER)) | ||
61 | #else | ||
62 | |||
63 | /* thread information allocation */ | ||
64 | #define alloc_thread_info(tsk) \ | ||
65 | ((struct thread_info *) __get_free_pages(GFP_KERNEL, \ | ||
66 | CONFIG_KERNEL_STACK_ORDER)) | ||
67 | #endif | ||
68 | |||
69 | #define free_thread_info(ti) \ | ||
70 | free_pages((unsigned long)(ti),CONFIG_KERNEL_STACK_ORDER) | ||
71 | 57 | ||
72 | #endif | 58 | #endif |
73 | 59 | ||