Roland Dreier wrote:
> +#define alternative_smp(smpinstr, upinstr) asm(upinstr, ##input) this wouldn't build with CONFIG_SMP=n -- you forgot the input param here.
Yep, and I've noticed meanwhile that it becomes quite messy if you try to do that with asm instructions which have both input and output parameters. One way around that would be to use named parameters in the inline assembler. Problem with that is that only gcc >= 3.1 understands those and at the moment the minimun requited compiler for the kernel still is gcc 2.95.3 according to Documentation/Changes ...
Is it an option to raise the required gcc version to 3.x, given that even Debian/stable ships with gcc 3.3 these days?
cheers, Gerd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Pavel Machek <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Dave Jones <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Roland Dreier <[email protected]>
- [PATCH 1/10] Cr4 is valid on some 486s
- Prev by Date: Re: Linuv 2.6.15-rc1
- Next by Date: Re: [PATCH -rt] race condition in fs/compat.c with compat_sys_ioctl
- Previous by thread: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Next by thread: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Index(es):