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




On Oct 6, 2006, at 3:06 PM, Jim Wintermyre wrote:

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.

This only works if you are the one allocating the buffer in the first place. Since this is a SATA controller, the descriptors come out of the IOStorageFamily and their physical disposition is entirely arbitrary.


 = Mike

_______________________________________________
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.