Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kernel panic on Intel based Mac with more than 2GB of memory



Jim --

Or, you can use IOBufferMemoryDescriptor::inTaskWithPhysicalAddress() to allocate your DMA buffers, and you can pass a mask to restrict them to be allocated in 32-bit physical address space.  This is particularly important if your DMA hardware only supports 32 bit physical addresses.  One nice thing about this is that you don't have to change any of your IOMemoryCursor code (and update to IODMACursor), it just works.  Also, this is nice if you need to support older (PPC) systems.  You can just call inTaskWithPhysicalAddress() if compiling for Intel, and then require 10.4.8 on the Intel side (this API is present on all Intel systems as of 10.4.8).  On the PPC side you just leave it as it was.  Then you can have a single universal binary.

If your hardware is 32-bit only, yes you can and should use this API. However, we are encouraging developers to not abuse this API (especially for 64-bit capable hardware). There is a small reserved pool of memory in 32-bit space for this use and the more drivers that use it, the more competition there is for this pool. It's also the same pool that's used for bounce-buffering I/O for 32-bit only hardware, so there is quite a bit of pressure on it already. Please play nice :-).

-- Chris

------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax:   (408) 862-7577
email: email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden

References: 
 >Kernel panic on Intel based Mac with more than 2GB of memory (From: "Dave Canfield" <email@hidden>)
 >Re: Kernel panic on Intel based Mac with more than 2GB of memory (From: Garth Cummings <email@hidden>)
 >Re: Kernel panic on Intel based Mac with more than 2GB of memory (From: Jim Wintermyre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.