Re: remap kernel static memory to user space

2013-03-23 Thread Eduardo Cruz
Man, it worked! You saved my life kkk. Thank you very much! 2013/3/23 Hugh Dickins : > On Wed, 20 Mar 2013, Eduardo Cruz wrote: > >> Hello. >> >> I'm trying to remap some kernel static memory to user space using >> remap_pfn_range. >> For that, I wrote a module that initializes a devic

Re: remap kernel static memory to user space

2013-03-23 Thread Hugh Dickins
On Wed, 20 Mar 2013, Eduardo Cruz wrote: > Hello. > > I'm trying to remap some kernel static memory to user space using > remap_pfn_range. > For that, I wrote a module that initializes a device, which later I > use mknod, etc. > > When I allocate the memory with kmalloc, everything works: (whe

Re: remap kernel static memory to user space

2013-03-23 Thread Eduardo Cruz
I'm adding some asm code in arch/ia64/kernel/ivt.S to gather some memory usage statistics. >From whatever reason, when I allocate the memory using kmalloc/vmalloc, my assembly code cashes the machine when I load the allocated memory. If I use static allocated memory, the asm code works. I know t

Re: remap kernel static memory to user space

2013-03-22 Thread Clemens Ladisch
Eduardo Cruz wrote: > Please, anyone knows how to solve this problem? > > 2013/3/20 Eduardo Cruz : >> I'm trying to remap some kernel static memory to user space using >> remap_pfn_range. Well, don't do that. What is the actual problem you're trying to solve? Regards, Clemens -- To unsubscribe

Re: remap kernel static memory to user space

2013-03-21 Thread Eduardo Cruz
Please, anyone knows how to solve this problem? 2013/3/20 Eduardo Cruz : > Hello. > > I'm trying to remap some kernel static memory to user space using > remap_pfn_range. > For that, I wrote a module that initializes a device, which later I > use mknod, etc. > > When I allocate the memory with kma