diff options
Diffstat (limited to 'include/asm-alpha')
-rw-r--r-- | include/asm-alpha/mmu_context.h | 1 | ||||
-rw-r--r-- | include/asm-alpha/percpu.h | 14 | ||||
-rw-r--r-- | include/asm-alpha/scatterlist.h | 1 | ||||
-rw-r--r-- | include/asm-alpha/thread_info.h | 22 |
4 files changed, 24 insertions, 14 deletions
diff --git a/include/asm-alpha/mmu_context.h b/include/asm-alpha/mmu_context.h index fe249e9d3360..0bd7bd2ccb90 100644 --- a/include/asm-alpha/mmu_context.h +++ b/include/asm-alpha/mmu_context.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <asm/system.h> | 10 | #include <asm/system.h> |
11 | #include <asm/machvec.h> | 11 | #include <asm/machvec.h> |
12 | #include <asm/compiler.h> | 12 | #include <asm/compiler.h> |
13 | #include <asm-generic/mm_hooks.h> | ||
13 | 14 | ||
14 | /* | 15 | /* |
15 | * Force a context reload. This is needed when we change the page | 16 | * Force a context reload. This is needed when we change the page |
diff --git a/include/asm-alpha/percpu.h b/include/asm-alpha/percpu.h index 651ebb141b24..48348fe34c19 100644 --- a/include/asm-alpha/percpu.h +++ b/include/asm-alpha/percpu.h | |||
@@ -1,20 +1,6 @@ | |||
1 | #ifndef __ALPHA_PERCPU_H | 1 | #ifndef __ALPHA_PERCPU_H |
2 | #define __ALPHA_PERCPU_H | 2 | #define __ALPHA_PERCPU_H |
3 | 3 | ||
4 | /* | ||
5 | * Increase the per cpu area for Alpha so that | ||
6 | * modules using percpu area can load. | ||
7 | */ | ||
8 | #ifdef CONFIG_MODULES | ||
9 | # define PERCPU_MODULE_RESERVE 8192 | ||
10 | #else | ||
11 | # define PERCPU_MODULE_RESERVE 0 | ||
12 | #endif | ||
13 | |||
14 | #define PERCPU_ENOUGH_ROOM \ | ||
15 | (ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \ | ||
16 | PERCPU_MODULE_RESERVE) | ||
17 | |||
18 | #include <asm-generic/percpu.h> | 4 | #include <asm-generic/percpu.h> |
19 | 5 | ||
20 | #endif /* __ALPHA_PERCPU_H */ | 6 | #endif /* __ALPHA_PERCPU_H */ |
diff --git a/include/asm-alpha/scatterlist.h b/include/asm-alpha/scatterlist.h index 6afb8bd3aaf9..917365405e83 100644 --- a/include/asm-alpha/scatterlist.h +++ b/include/asm-alpha/scatterlist.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _ALPHA_SCATTERLIST_H | 2 | #define _ALPHA_SCATTERLIST_H |
3 | 3 | ||
4 | #include <asm/page.h> | 4 | #include <asm/page.h> |
5 | #include <asm/types.h> | ||
5 | 6 | ||
6 | struct scatterlist { | 7 | struct scatterlist { |
7 | struct page *page; | 8 | struct page *page; |
diff --git a/include/asm-alpha/thread_info.h b/include/asm-alpha/thread_info.h index 69ffd93f8e22..eeb3bef91e11 100644 --- a/include/asm-alpha/thread_info.h +++ b/include/asm-alpha/thread_info.h | |||
@@ -92,5 +92,27 @@ register struct thread_info *__current_thread_info __asm__("$8"); | |||
92 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \ | 92 | #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \ |
93 | | _TIF_SYSCALL_TRACE) | 93 | | _TIF_SYSCALL_TRACE) |
94 | 94 | ||
95 | #define ALPHA_UAC_SHIFT 6 | ||
96 | #define ALPHA_UAC_MASK (1 << TIF_UAC_NOPRINT | 1 << TIF_UAC_NOFIX | \ | ||
97 | 1 << TIF_UAC_SIGBUS) | ||
98 | |||
99 | #define SET_UNALIGN_CTL(task,value) ({ \ | ||
100 | (task)->thread_info->flags = (((task)->thread_info->flags & \ | ||
101 | ~ALPHA_UAC_MASK) \ | ||
102 | | (((value) << ALPHA_UAC_SHIFT) & (1<<TIF_UAC_NOPRINT))\ | ||
103 | | (((value) << (ALPHA_UAC_SHIFT + 1)) & (1<<TIF_UAC_SIGBUS)) \ | ||
104 | | (((value) << (ALPHA_UAC_SHIFT - 1)) & (1<<TIF_UAC_NOFIX)));\ | ||
105 | 0; }) | ||
106 | |||
107 | #define GET_UNALIGN_CTL(task,value) ({ \ | ||
108 | put_user(((task)->thread_info->flags & (1 << TIF_UAC_NOPRINT)) \ | ||
109 | >> ALPHA_UAC_SHIFT \ | ||
110 | | ((task)->thread_info->flags & (1 << TIF_UAC_SIGBUS)) \ | ||
111 | >> (ALPHA_UAC_SHIFT + 1) \ | ||
112 | | ((task)->thread_info->flags & (1 << TIF_UAC_NOFIX)) \ | ||
113 | >> (ALPHA_UAC_SHIFT - 1), \ | ||
114 | (int __user *)(value)); \ | ||
115 | }) | ||
116 | |||
95 | #endif /* __KERNEL__ */ | 117 | #endif /* __KERNEL__ */ |
96 | #endif /* _ALPHA_THREAD_INFO_H */ | 118 | #endif /* _ALPHA_THREAD_INFO_H */ |