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



Hi Dave,

On Oct 6, 2006, at 1:33 PM, Dave Canfield wrote:

We have a universal binary driver for a SATA HBA that seems to work fine
unless its running on an Intel Mac with more than 2GB of memory
installed.  If there is more than 2GB of memory the system eventually
will panic with the following message in the panic log:

panic(cpu 3 caller 0x003A1D25): getPhysicalSegment() out of 32b range
0x100000000, len 0x8000, class IOGeneralMemoryDescriptor

The problem is that getPhysicalSegment returns a 32 bit address. The panic means that the physical address won't fit in 32 bits, which is the case on Mac Pro systems with more than 2.5 GB of physical memory.

Depending on what you're doing, you need to move to using IODMACommand, or use getPhysicalSegment64. These functions are new as of the Mac Pro but work on all 64-bit capable machines as of 10.4.8.

If you need to support machines older than 10.4.8 (duh!) you'll need to have a KEXT that uses the old API that loads on those systems and a separate KEXT that uses the new API for newer systems. Each KEXT will have to have its own CFBundleIdentifier, and one KEXT can live in the PlugIns directory within the other for ease of installation. Use the OSBundleLibraries version numbers to control which KEXT loads on which OS versions.

If you drop a line to <email@hidden> we can get you a sample PCI driver that shows how to use IODMACommand.

--gc
____________________________________________________________________
Garth Cummings  email@hidden
Sr. Software Engineer
Apple Developer Technical Support



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



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.