Module: xenomai-abe
Branch: analogy
Commit: fafb619407ee1fd9d6a90ecf29e24dc983efd46e
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=fafb619407ee1fd9d6a90ecf29e24dc983efd46e

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Oct 18 00:06:50 2011 +0200

analogy: quick fix to keep the async buffer below 4GB

On 64-bit architectures (with more than 4GB of RAM), vmalloc can
allocate an asynchronous buffers composed of physical beyond 4GB. This
can be an issue with some acquisition cards (and more specifically
their DMA controllers) which only accept 32-bits addresses.

---

 ksrc/drivers/analogy/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/buffer.c b/ksrc/drivers/analogy/buffer.c
index 6b296a8..3ab57b7 100644
--- a/ksrc/drivers/analogy/buffer.c
+++ b/ksrc/drivers/analogy/buffer.c
@@ -64,7 +64,7 @@ int a4l_alloc_buffer(a4l_buf_t *buf_desc, int buf_size)
        buf_desc->size = buf_size;
        buf_desc->size = PAGE_ALIGN(buf_desc->size);
 
-       buf_desc->buf = vmalloc(buf_desc->size);
+       buf_desc->buf = vmalloc_32(buf_desc->size);
        if (buf_desc->buf == NULL) {
                ret = -ENOMEM;
                goto out_virt_contig_alloc;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to