Re: Detecting AltiVec in kernel land
Re: Detecting AltiVec in kernel land
- Subject: Re: Detecting AltiVec in kernel land
- From: Laurent Cerveau <email@hidden>
- Date: Thu, 11 Apr 2002 11:26:05 +0200
There may be different solutions :
- The firmware is putting a property called "altivec" into teh device
tree for the cpu related node. You can parse for it
- There is a sysctl selector ( HW_VECTORUNIT) (look at sysctl.h in
Kernel.framework)
Laurent
On Wednesday, April 10, 2002, at 09:33 PM, Stephan wrote:
I'd like to use AltiVec code in my IOAudioFamily kext. How am I
supposed to detect presence of an AltiVec engine? The user land
Gestalt(gestaltPowerPCProcessorFeatures, &processorAttributes) function
seems not to be available in kernel mode. Do I have to read the PVR
register and use a feature lookup table? If so, where to find a
Version->Feature table?
-Stephan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.