Thread (27 messages) read the whole thread 27 messages, 7 authors, 2008-08-02

Re: how to allocate 9MB of memory in kernel ?

From: Marco Stornelli <hidden>
Date: 2008-07-22 09:44:47

On Tuesday 22 July 2008, Misbah khan wrote:
quoted
I am getting kernel panic while trying these as suggested by you ,the
following points will elaborate my concern :-
i am allocating memory using vmalloc and remaping to the SDRAM area as :-

buf_area = vmalloc(sizeof(circularbuffer_S));
        if(!buf_area)
        {
                printk(KERN_ALERT"vmalloc failed \n");
                return -1;
        }

        buf_area = (circularbuffer_S *)ioremap(7700000,900000);
        if(!buf_area)
        {
                printk(KERN_ALERT"ioremap failed \n");
                return -1;
        }
Misbah I suggest you, before to write in a Linux mailing list, to read 
Understanding the Linux kernel, Linux device drivers, Understanding the 
Linux virtual memory manager and so on, to study them very well, to 
think well about your problem and then ask for help in a mailing list.

Regards,

-- 
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it

marco.stornelli@coritel.it
+39 06 72582838
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help