Re: Compiling multiplatform code

From: Ivan Passos (lists@cyclades.com)
Date: Fri Apr 28 2000 - 18:45:16 EST


On Fri, 28 Apr 2000, Ivan Passos wrote:
>
> The Cyclades driver supports ISA and PCI boards. However, I'd like to be
> able to compile the ISA support only on x86 systems.
>
> My question is: is there a CONFIG_??? flag that I can use to do that??
> Something like:
>
> #ifdef CONFIG_X86
> /* ISA Code */
> #endif
>
> I've seen some CONFIG_Mn86 (where n is 3, 4, 5 ...), but I'd like to use
> one single flag that shows this is an x86 system.
>
> Is there any __x86__ flag???

Replying to myself ... :)

I found the __i386__ definition, and maybe that's what I'm looking for.
However, I also found __i486__, __i586__ ...

Question: is the __i386__ definition present in _all_ x86 kernels??

I imagine it goes like this:

- 386: __i386__ defined
- 486: __i386__ and __i486__ defined
- 586: __i386__ and __i586__ defined
(...)

Is that correct??

Regards,
Ivan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:16 EST