git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
arm
/
mm
/
consistent.c
diff --git
a/arch/arm/mm/consistent.c
b/arch/arm/mm/consistent.c
index
50e6b6b
..
6a9c362
100644
(file)
--- a/
arch/arm/mm/consistent.c
+++ b/
arch/arm/mm/consistent.c
@@
-238,7
+238,7
@@
__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp,
* x86 does not mark the pages reserved...
*/
SetPageReserved(page);
* x86 does not mark the pages reserved...
*/
SetPageReserved(page);
- set_pte
(pte, mk_pte(page, prot)
);
+ set_pte
_ext(pte, mk_pte(page, prot), 0
);
page++;
pte++;
off++;
page++;
pte++;
off++;
@@
-476,6
+476,9
@@
core_initcall(consistent_init);
/*
* Make an area consistent for devices.
/*
* Make an area consistent for devices.
+ * Note: Drivers should NOT use this function directly, as it will break
+ * platforms with CONFIG_DMABOUNCE.
+ * Use the driver DMA support - see dma-mapping.h (dma_sync_*)
*/
void consistent_sync(void *vaddr, size_t size, int direction)
{
*/
void consistent_sync(void *vaddr, size_t size, int direction)
{