Linus Torvalds writes: (Summary) The paired registers tend to have special arch-specific rules,
making this particularly painful.
making this particularly painful.
I suspect that the best solution (and here "best" doesn't mean "pretty", but doable) is to rely on some of the limits we have: "pretty", but doable) is to rely on some of the limits we have: In particular, we don't want to convert all architectures to the ptregs approach _anyway_, so we need to have a model where the architecture sets up some config option.
architecture sets up some config option.
End result: we don't have to handle the generic case, we just have to have a way for an architecture to set up for this.
making this particularly painful.
I suspect that the best solution (and here "best" doesn't mean "pretty", but doable) is to rely on some of the limits we have: "pretty", but doable) is to rely on some of the limits we have: In particular, we don't want to convert all architectures to the ptregs approach _anyway_, so we need to have a model where the architecture sets up some config option.
architecture sets up some config option.
End result: we don't have to handle the generic case, we just have to have a way for an architecture to set up for this.