Re: Detecting Intel
Re: Detecting Intel
- Subject: Re: Detecting Intel
- From: Alexander von Below <email@hidden>
- Date: Tue, 23 Feb 2010 22:43:13 +0100
Florian, you are correct:
#define CPU_TYPE_MC680x0 ((cpu_type_t) 6)
#define CPU_TYPE_X86 ((cpu_type_t) 7)
#define CPU_TYPE_I386 CPU_TYPE_X86 /* compatibility */
#define CPU_TYPE_X86_64 (CPU_TYPE_X86 | CPU_ARCH_ABI64)
/* skip CPU_TYPE_MIPS ((cpu_type_t) 8) */
/* skip ((cpu_type_t) 9) */
#define CPU_TYPE_MC98000 ((cpu_type_t) 10)
#define CPU_TYPE_HPPA ((cpu_type_t) 11)
#define CPU_TYPE_ARM ((cpu_type_t) 12)
#define CPU_TYPE_MC88000 ((cpu_type_t) 13)
#define CPU_TYPE_SPARC ((cpu_type_t) 14)
#define CPU_TYPE_I860 ((cpu_type_t) 15)
/* skip CPU_TYPE_ALPHA ((cpu_type_t) 16) */
/* skip ((cpu_type_t) 17) */
#define CPU_TYPE_POWERPC ((cpu_type_t) 18)
#define CPU_TYPE_POWERPC64 (CPU_TYPE_POWERPC | CPU_ARCH_ABI64)
from <mach/machine.h>
Am 23.02.2010 um 22:38 schrieb Florian Gyarfas:
>
> If I remember correctly, if you use sysctl, you can look at the hw.cputype value. I think Intel = 7 and PPC = 18.
>
> Hope that helps.
> -Florian
>
>
> -----Original Message-----
> From: installer-dev-bounces+floriang=email@hidden [mailto:installer-dev-bounces+floriang=email@hidden] On Behalf Of Adam Peck
> Sent: Tuesday, February 23, 2010 1:23 PM
> To: Installer-Dev mailing-list
> Subject: Detecting Intel
>
> Hi All,
>
> I swear this has been covered before but I couldn't find it searching the list. Anyways I would like my installer to be able to detect if it is installing on Intel as this is a requirement. It seems like it should be possible with sysctl or gestalt, but I am not entirely sure which value I should be looking at and what it needs to be set to.
>
> Thanks,
>
> Adam
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden