File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -134,15 +134,24 @@ static inline bool pte_user(pte_t pte)
134
134
#define PGDIR_MASK (~(PGDIR_SIZE-1))
135
135
136
136
#define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
137
+
138
+ #ifndef __ASSEMBLY__
139
+
140
+ int map_kernel_page (unsigned long va , phys_addr_t pa , pgprot_t prot );
141
+
142
+ #endif /* !__ASSEMBLY__ */
143
+
137
144
/*
138
145
* This is the bottom of the PKMAP area with HIGHMEM or an arbitrary
139
146
* value (for now) on others, from where we can start layout kernel
140
147
* virtual space that goes below PKMAP and FIXMAP
141
148
*/
149
+ #include <asm/fixmap.h>
150
+
142
151
#ifdef CONFIG_HIGHMEM
143
152
#define KVIRT_TOP PKMAP_BASE
144
153
#else
145
- #define KVIRT_TOP (0xfe000000UL) /* for now, could be FIXMAP_BASE ? */
154
+ #define KVIRT_TOP FIXADDR_START
146
155
#endif
147
156
148
157
/*
@@ -373,8 +382,6 @@ static inline void __ptep_set_access_flags(struct vm_area_struct *vma,
373
382
#define __pte_to_swp_entry (pte ) ((swp_entry_t) { pte_val(pte) >> 3 })
374
383
#define __swp_entry_to_pte (x ) ((pte_t) { (x).val << 3 })
375
384
376
- int map_kernel_page (unsigned long va , phys_addr_t pa , pgprot_t prot );
377
-
378
385
/* Generic accessors to PTE bits */
379
386
static inline int pte_write (pte_t pte ) { return !!(pte_val (pte ) & _PAGE_RW );}
380
387
static inline int pte_read (pte_t pte ) { return 1 ; }
Original file line number Diff line number Diff line change @@ -64,15 +64,24 @@ extern int icache_44x_need_flush;
64
64
#define pgd_ERROR (e ) \
65
65
pr_err("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
66
66
67
+ #ifndef __ASSEMBLY__
68
+
69
+ int map_kernel_page (unsigned long va , phys_addr_t pa , pgprot_t prot );
70
+
71
+ #endif /* !__ASSEMBLY__ */
72
+
73
+
67
74
/*
68
75
* This is the bottom of the PKMAP area with HIGHMEM or an arbitrary
69
76
* value (for now) on others, from where we can start layout kernel
70
77
* virtual space that goes below PKMAP and FIXMAP
71
78
*/
79
+ #include <asm/fixmap.h>
80
+
72
81
#ifdef CONFIG_HIGHMEM
73
82
#define KVIRT_TOP PKMAP_BASE
74
83
#else
75
- #define KVIRT_TOP (0xfe000000UL) /* for now, could be FIXMAP_BASE ? */
84
+ #define KVIRT_TOP FIXADDR_START
76
85
#endif
77
86
78
87
/*
@@ -379,8 +388,6 @@ static inline int pte_young(pte_t pte)
379
388
#define __pte_to_swp_entry (pte ) ((swp_entry_t) { pte_val(pte) >> 3 })
380
389
#define __swp_entry_to_pte (x ) ((pte_t) { (x).val << 3 })
381
390
382
- int map_kernel_page (unsigned long va , phys_addr_t pa , pgprot_t prot );
383
-
384
391
#endif /* !__ASSEMBLY__ */
385
392
386
393
#endif /* __ASM_POWERPC_NOHASH_32_PGTABLE_H */
You can’t perform that action at this time.
0 commit comments