[parisc-linux] CONFIG_DMB_TRAP diff
John Marvin
jsm@udlkern.fc.hp.com
Thu, 23 Nov 2000 01:29:55 -0700 (MST)
Alan Modra wrote:
>
> 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
jsm@fc.hp.com