Skip to contentSkip to conversation

ALPHA: build fixes - force architecture (take 2)

PATCH In review Ivan Kokshaysky 3 participants 4 messages Apr 12, 2007 – Apr 13, 2007 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALPHA: build fixes - force architecture (take 2)

[CIX stuff reworked, .got change dropped as Richard suggested]

Override compiler .arch directive for generic kernel build.

arch/alpha/kernel/sys_titan.c +1 -2
@@ -257,8 +257,7 @@ titan_dispatch_irqs(u64 mask)
 	 */
 	while (mask) {
 		/* convert to SRM vector... priority is <63> -> <0> */
-		__asm__("ctlz %1, %0" : "=r"(vector) : "r"(mask));
-		vector = 63 - vector;
+		vector = 63 - __kernel_ctlz(mask);
 		mask &= ~(1UL << vector);	/* clear it out 	 */
 		vector = 0x900 + (vector << 4);	/* convert to SRM vector */
 		
include/asm-alpha/compiler.h +35 -12

77 lines not on this page · raw message

#2 lore raw
Quoted 9 lines · On Thu, 12 Apr 2007 14:16:39 -0700 Richard Henderson <[email protected]> wrote:
Quoted 5 lines · Ivan Kokshaysky

[CIX stuff reworked, .got change dropped as Richard suggested]

Override compiler .arch directive for generic kernel build.

So I currently have

alpha-fix-bootp-image-creation.patch
alpha-prctl-macros.patch
alpha-fixes-for-specific-machine-types.patch
alpha-more-fixes-for-specific-machine-types.patch
alpha-build-fixes-force-architecture.patch

Which of these do you think should be in 2.6.21?

#3 lore raw
Quoted 7 lines · Andrew Morton

alpha-fix-bootp-image-creation.patch
alpha-prctl-macros.patch
alpha-fixes-for-specific-machine-types.patch
alpha-more-fixes-for-specific-machine-types.patch
alpha-build-fixes-force-architecture.patch

Which of these do you think should be in 2.6.21?

The last one, definitely. Of course, it would be nice to get the "specific machine" stuff there too, but it's not so critical.

Ivan.