Re: Infinite loop in uvm protection mapping

2020-10-26 Thread Tom Rollet
On 26/10/2020 03:31, Tom Rollet wrote: On 20/10/2020 06:16, Philip Guenther wrote: On Mon, Oct 19, 2020 at 3:13 PM Tom Rollet > wrote: Hi, I'm starting to help in the development of the dt device. I'm stuck on permission handling of memory. I'm trying t

Re: Infinite loop in uvm protection mapping

2020-10-25 Thread Tom Rollet
On 20/10/2020 06:16, Philip Guenther wrote: On Mon, Oct 19, 2020 at 3:13 PM Tom Rollet > wrote: Hi, I'm starting to help in the development of the dt device. I'm stuck on permission handling of memory. I'm trying to allocate a page in kernel with rea

Re: Infinite loop in uvm protection mapping

2020-10-19 Thread Philip Guenther
On Mon, Oct 19, 2020 at 3:13 PM Tom Rollet wrote: > Hi, > > I'm starting to help in the development of the dt device. > > I'm stuck on permission handling of memory. I'm trying to allocate a > page in kernel with read/write protections, fill the allocated page > with data then change the permissi

Infinite loop in uvm protection mapping

2020-10-19 Thread Tom Rollet
Hi, I'm starting to help in the development of the dt device. I'm stuck on permission handling of memory. I'm trying to allocate a page in kernel with read/write protections, fill the allocated page with data then change the permissions to  read/exec. Snippet of my code:  addr = uvm_km_alloc(k