[uClinux-dev] Test for MMU or not

Michael O'Brien mob at mbedthis.com
Wed Aug 3 16:19:11 EDT 2005


Greg,

Thanks.

That gives me a point in the right direction.

Michael

Greg Ungerer wrote:

> Hi Mob,
>
> Michael O'Brien wrote:
>
>> I need the cleanest way to test if a CPU has an MMU. We need to use 
>> vfork instead of fork in this case.
>>
>> What is the recommended #define to test for this ?
>
>
> Within the uClinux-dist build framework we use the __uClinux__
> define to determine if compiling for an MMUless target.
>
> But this is hard coded in the configuration for the target,
> so is only usefull within the uClinux-dist itself.
>
> When compiling stand alone you probably need your own local
> define. For example uClibc has its own config option,
> ARCH_HAS_MMU.
>
> Regards
> Greg
>
>
>
> ------------------------------------------------------------------------
> Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
> SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
> 825 Stanley St,                             FAX:         +61 7 3891 3630
> Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>
>




More information about the uClinux-dev mailing list