On Fri, Apr 23, 2021 at 4:50 PM Alessandro Pistocchi <apukbusin...@gmail.com> wrote: ...
> What I was flagging is just that sometimes uvm_map returns an address that > is not > aligned to PAGE_SIZE ( I printed it out and it has 0x004 in the lower 12 > bits).On the > other hand uvm_unmap has an assertion that panics if the address passed to > it is not > page aligned. I believe that there could be a bug somewhere. > You apparently didn't print out the value directly after return from uvm_map() but rather later after a bunch of your other code had run. Yes, there's a bug, in your game_mode_start_audio_thread(), where you advance the pointer from uvm_map() by four. Philip Guenther