Commit 9ff77c46 authored by Ralf Baechle's avatar Ralf Baechle

Export shm_align_mask and flush_data_cache_page.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 07b4ebd3
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/msg.h> #include <linux/msg.h>
#include <linux/shm.h> #include <linux/shm.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/module.h>
#include <asm/branch.h> #include <asm/branch.h>
#include <asm/cachectl.h> #include <asm/cachectl.h>
...@@ -56,6 +57,8 @@ out: ...@@ -56,6 +57,8 @@ out:
unsigned long shm_align_mask = PAGE_SIZE - 1; /* Sane caches */ unsigned long shm_align_mask = PAGE_SIZE - 1; /* Sane caches */
EXPORT_SYMBOL(shm_align_mask);
#define COLOUR_ALIGN(addr,pgoff) \ #define COLOUR_ALIGN(addr,pgoff) \
((((addr) + shm_align_mask) & ~shm_align_mask) + \ ((((addr) + shm_align_mask) & ~shm_align_mask) + \
(((pgoff) << PAGE_SHIFT) & shm_align_mask)) (((pgoff) << PAGE_SHIFT) & shm_align_mask))
......
...@@ -33,6 +33,8 @@ void (*flush_cache_sigtramp)(unsigned long addr); ...@@ -33,6 +33,8 @@ void (*flush_cache_sigtramp)(unsigned long addr);
void (*flush_data_cache_page)(unsigned long addr); void (*flush_data_cache_page)(unsigned long addr);
void (*flush_icache_all)(void); void (*flush_icache_all)(void);
EXPORT_SYMBOL(flush_data_cache_page);
#ifdef CONFIG_DMA_NONCOHERENT #ifdef CONFIG_DMA_NONCOHERENT
/* DMA cache operations. */ /* DMA cache operations. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment