diff options
Diffstat (limited to 'include/asm-cris')
-rw-r--r-- | include/asm-cris/a.out.h | 6 | ||||
-rw-r--r-- | include/asm-cris/page.h | 1 | ||||
-rw-r--r-- | include/asm-cris/param.h | 2 | ||||
-rw-r--r-- | include/asm-cris/pgalloc.h | 14 | ||||
-rw-r--r-- | include/asm-cris/posix_types.h | 4 | ||||
-rw-r--r-- | include/asm-cris/processor.h | 3 |
6 files changed, 15 insertions, 15 deletions
diff --git a/include/asm-cris/a.out.h b/include/asm-cris/a.out.h index 919b34a084f8..c82e9f9b75f6 100644 --- a/include/asm-cris/a.out.h +++ b/include/asm-cris/a.out.h | |||
@@ -6,11 +6,6 @@ | |||
6 | * wants to know about a.out even if there is no interpreter available... | 6 | * wants to know about a.out even if there is no interpreter available... |
7 | */ | 7 | */ |
8 | 8 | ||
9 | /* grabbed from the intel stuff */ | ||
10 | #define STACK_TOP TASK_SIZE | ||
11 | #define STACK_TOP_MAX STACK_TOP | ||
12 | |||
13 | |||
14 | struct exec | 9 | struct exec |
15 | { | 10 | { |
16 | unsigned long a_info; /* Use macros N_MAGIC, etc for access */ | 11 | unsigned long a_info; /* Use macros N_MAGIC, etc for access */ |
@@ -28,5 +23,4 @@ struct exec | |||
28 | #define N_DRSIZE(a) ((a).a_drsize) | 23 | #define N_DRSIZE(a) ((a).a_drsize) |
29 | #define N_SYMSIZE(a) ((a).a_syms) | 24 | #define N_SYMSIZE(a) ((a).a_syms) |
30 | 25 | ||
31 | |||
32 | #endif | 26 | #endif |
diff --git a/include/asm-cris/page.h b/include/asm-cris/page.h index 3b0156c46311..c45bb1ef397c 100644 --- a/include/asm-cris/page.h +++ b/include/asm-cris/page.h | |||
@@ -26,6 +26,7 @@ | |||
26 | typedef struct { unsigned long pte; } pte_t; | 26 | typedef struct { unsigned long pte; } pte_t; |
27 | typedef struct { unsigned long pgd; } pgd_t; | 27 | typedef struct { unsigned long pgd; } pgd_t; |
28 | typedef struct { unsigned long pgprot; } pgprot_t; | 28 | typedef struct { unsigned long pgprot; } pgprot_t; |
29 | typedef struct page *pgtable_t; | ||
29 | #endif | 30 | #endif |
30 | 31 | ||
31 | #define pte_val(x) ((x).pte) | 32 | #define pte_val(x) ((x).pte) |
diff --git a/include/asm-cris/param.h b/include/asm-cris/param.h index b24972639832..0e47994e40be 100644 --- a/include/asm-cris/param.h +++ b/include/asm-cris/param.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | /* Currently we assume that HZ=100 is good for CRIS. */ | 4 | /* Currently we assume that HZ=100 is good for CRIS. */ |
5 | #ifdef __KERNEL__ | 5 | #ifdef __KERNEL__ |
6 | # define HZ 100 /* Internal kernel timer frequency */ | 6 | # define HZ CONFIG_HZ /* Internal kernel timer frequency */ |
7 | # define USER_HZ 100 /* .. some user interfaces are in "ticks" */ | 7 | # define USER_HZ 100 /* .. some user interfaces are in "ticks" */ |
8 | # define CLOCKS_PER_SEC (USER_HZ) /* like times() */ | 8 | # define CLOCKS_PER_SEC (USER_HZ) /* like times() */ |
9 | #endif | 9 | #endif |
diff --git a/include/asm-cris/pgalloc.h b/include/asm-cris/pgalloc.h index 8ddd66f81773..a1ba761d0573 100644 --- a/include/asm-cris/pgalloc.h +++ b/include/asm-cris/pgalloc.h | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte) | 7 | #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte) |
8 | #define pmd_populate(mm, pmd, pte) pmd_set(pmd, page_address(pte)) | 8 | #define pmd_populate(mm, pmd, pte) pmd_set(pmd, page_address(pte)) |
9 | #define pmd_pgtable(pmd) pmd_page(pmd) | ||
9 | 10 | ||
10 | /* | 11 | /* |
11 | * Allocate and free page tables. | 12 | * Allocate and free page tables. |
@@ -27,10 +28,11 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long ad | |||
27 | return pte; | 28 | return pte; |
28 | } | 29 | } |
29 | 30 | ||
30 | static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | 31 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) |
31 | { | 32 | { |
32 | struct page *pte; | 33 | struct page *pte; |
33 | pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0); | 34 | pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0); |
35 | pgtable_page_ctor(pte); | ||
34 | return pte; | 36 | return pte; |
35 | } | 37 | } |
36 | 38 | ||
@@ -39,13 +41,17 @@ static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) | |||
39 | free_page((unsigned long)pte); | 41 | free_page((unsigned long)pte); |
40 | } | 42 | } |
41 | 43 | ||
42 | static inline void pte_free(struct mm_struct *mm, struct page *pte) | 44 | static inline void pte_free(struct mm_struct *mm, pgtable_t pte) |
43 | { | 45 | { |
46 | pgtable_page_dtor(pte); | ||
44 | __free_page(pte); | 47 | __free_page(pte); |
45 | } | 48 | } |
46 | 49 | ||
47 | 50 | #define __pte_free_tlb(tlb,pte) \ | |
48 | #define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte)) | 51 | do { \ |
52 | pgtable_page_dtor(pte); \ | ||
53 | tlb_remove_page((tlb), pte); \ | ||
54 | } while (0) | ||
49 | 55 | ||
50 | #define check_pgt_cache() do { } while (0) | 56 | #define check_pgt_cache() do { } while (0) |
51 | 57 | ||
diff --git a/include/asm-cris/posix_types.h b/include/asm-cris/posix_types.h index 3a5e4c43eae7..ce3fb25a460b 100644 --- a/include/asm-cris/posix_types.h +++ b/include/asm-cris/posix_types.h | |||
@@ -44,11 +44,7 @@ typedef long long __kernel_loff_t; | |||
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | typedef struct { | 46 | typedef struct { |
47 | #if defined(__KERNEL__) || defined(__USE_ALL) | ||
48 | int val[2]; | 47 | int val[2]; |
49 | #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */ | ||
50 | int __val[2]; | ||
51 | #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */ | ||
52 | } __kernel_fsid_t; | 48 | } __kernel_fsid_t; |
53 | 49 | ||
54 | #ifdef __KERNEL__ | 50 | #ifdef __KERNEL__ |
diff --git a/include/asm-cris/processor.h b/include/asm-cris/processor.h index 568da1deceb9..cdc0c1dce6be 100644 --- a/include/asm-cris/processor.h +++ b/include/asm-cris/processor.h | |||
@@ -17,6 +17,9 @@ | |||
17 | 17 | ||
18 | struct task_struct; | 18 | struct task_struct; |
19 | 19 | ||
20 | #define STACK_TOP TASK_SIZE | ||
21 | #define STACK_TOP_MAX STACK_TOP | ||
22 | |||
20 | /* This decides where the kernel will search for a free chunk of vm | 23 | /* This decides where the kernel will search for a free chunk of vm |
21 | * space during mmap's. | 24 | * space during mmap's. |
22 | */ | 25 | */ |