I'm writing a value to a virtual memory location I just mapped, and the value doesn't stick.
when I read back I get 0.
I assume that there's no issues with the paging setup, as I would expect a page fault to occur, I just can find a reason why this could happen.
Can you think of a possible bug/issue I have that can cause this ?
Configuration: x86 32 bit kernel running on qemu. paging enabled, without PAE.
The code for reference:
Code: Select all
printk("value before: %x\r\n", physmem.bitmap[0]);
physmem.bitmap[0] = 0xFF;
printk("value after: %x\r\n", physmem.bitmap[0]);
* printk is ok, GDB also shows 0 in the memory.