CONFIG_DMB_TRAP diff
Quoted 3 lines · Alan Modra
gdb will eventually want to use this trap too.
Cool! However, data memory break traps for user translations are a little tougher. There are some small modifications in the machine dependent code that I can make to make sure the B bit stays set during most VM operations on a page. However, since the machine independent part of the VM system doesn't know anything about this bit (nor should it), it won't be preserved if the page is paged out (and subsequently paged back in). This could be fixed fairly easily with some changes to the machine independent code, but I don't think that would be appropriate.
Some potential solutions (each has its problems):
1) Just document the fact that the feature may not work on systems with low memory. It's a parisc only feature, so perhaps we could live with that.
2) Lock the page in memory (using the mlock interface) when we set the B bit on a page.
Just some thoughts on the subject.
John Marvin
[email protected]