diff options
-rw-r--r-- | arch/sparc64/mm/init.c | 5 | ||||
-rw-r--r-- | include/asm-sparc64/pgtable.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index aa2aec6373c..c7aa4404edc 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -1353,6 +1353,10 @@ EXPORT_SYMBOL(PAGE_KERNEL); | |||
1353 | 1353 | ||
1354 | pgprot_t PAGE_KERNEL_LOCKED __read_mostly; | 1354 | pgprot_t PAGE_KERNEL_LOCKED __read_mostly; |
1355 | pgprot_t PAGE_COPY __read_mostly; | 1355 | pgprot_t PAGE_COPY __read_mostly; |
1356 | |||
1357 | pgprot_t PAGE_SHARED __read_mostly; | ||
1358 | EXPORT_SYMBOL(PAGE_SHARED); | ||
1359 | |||
1356 | pgprot_t PAGE_EXEC __read_mostly; | 1360 | pgprot_t PAGE_EXEC __read_mostly; |
1357 | unsigned long pg_iobits __read_mostly; | 1361 | unsigned long pg_iobits __read_mostly; |
1358 | 1362 | ||
@@ -1367,6 +1371,7 @@ static void prot_init_common(unsigned long page_none, | |||
1367 | unsigned long page_exec_bit) | 1371 | unsigned long page_exec_bit) |
1368 | { | 1372 | { |
1369 | PAGE_COPY = __pgprot(page_copy); | 1373 | PAGE_COPY = __pgprot(page_copy); |
1374 | PAGE_SHARED = __pgprot(page_shared); | ||
1370 | 1375 | ||
1371 | protection_map[0x0] = __pgprot(page_none); | 1376 | protection_map[0x0] = __pgprot(page_none); |
1372 | protection_map[0x1] = __pgprot(page_readonly & ~page_exec_bit); | 1377 | protection_map[0x1] = __pgprot(page_readonly & ~page_exec_bit); |
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h index bab7defd8b3..6c8126b2dec 100644 --- a/include/asm-sparc64/pgtable.h +++ b/include/asm-sparc64/pgtable.h | |||
@@ -206,6 +206,7 @@ extern unsigned long pte_sz_bits(unsigned long size); | |||
206 | extern pgprot_t PAGE_KERNEL; | 206 | extern pgprot_t PAGE_KERNEL; |
207 | extern pgprot_t PAGE_KERNEL_LOCKED; | 207 | extern pgprot_t PAGE_KERNEL_LOCKED; |
208 | extern pgprot_t PAGE_COPY; | 208 | extern pgprot_t PAGE_COPY; |
209 | extern pgprot_t PAGE_SHARED; | ||
209 | 210 | ||
210 | /* XXX This uglyness is for the atyfb driver's sparc mmap() support. XXX */ | 211 | /* XXX This uglyness is for the atyfb driver's sparc mmap() support. XXX */ |
211 | extern unsigned long _PAGE_IE; | 212 | extern unsigned long _PAGE_IE; |