aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-18 15:43:16 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:13:36 -0500
commit0f15952ac8641bde1045162ffd4a7b474cc318b0 (patch)
treef1837150e0e1589dda97f1780e99962bf6c905af /arch
parentf6c1fe529217788f095f6953c2b66bec1196ad3d (diff)
[SPARC64]: Export a PAGE_SHARED symbol.
For drivers/media/*, noticed by Fabbione. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/mm/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index aa2aec6373c3..c7aa4404edca 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -1353,6 +1353,10 @@ EXPORT_SYMBOL(PAGE_KERNEL);
1353 1353
1354pgprot_t PAGE_KERNEL_LOCKED __read_mostly; 1354pgprot_t PAGE_KERNEL_LOCKED __read_mostly;
1355pgprot_t PAGE_COPY __read_mostly; 1355pgprot_t PAGE_COPY __read_mostly;
1356
1357pgprot_t PAGE_SHARED __read_mostly;
1358EXPORT_SYMBOL(PAGE_SHARED);
1359
1356pgprot_t PAGE_EXEC __read_mostly; 1360pgprot_t PAGE_EXEC __read_mostly;
1357unsigned long pg_iobits __read_mostly; 1361unsigned 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);