Skip to contentSkip to conversation

pte_read confusion resolved (was Re: [PATCH] A

PATCH David S. Miller 1 participant 1 message Apr 1, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 21 lines · On Fri, 04 Mar 2005 00:08:40 -0600 "Tom 'spot' Callaway" <[email protected]>…
Quoted 9 lines · William Lee Irwin III
Quoted 7 lines · David S. Miller
Quoted 7 lines

I disagree with Tom's patch in that it puts this huge switch() statement inline. The whole point of BTFIXUP_HIGH() is that it resolves the call to a single instruction which can be easily patched at runtime.
If it's going to expand to multiple BTFIXUP_HIGH() calls and a switch statement, just make it a normal BTFIXUP() to a function and place the implementation in sun4c.c and sun4m.c

Quoted 5 lines
Quoted 2 lines · Tom 'spot' Callaway

How about this instead?

I'll make sure this gets into 2.6.11-final.

The second pte_read patch did not really make it into 2.6.11 final (but my original patch, which DaveM pointed out as faulty, did). I've made a new patch which reverts the huge switch inline statement logic, and uses the normal BTFIXUP instead.

Quoted 4 lines

With this patch applied, we should have the preferred pte_read mechanism in place for sparc32.

Looks great, patch applied. Thanks Tom.