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



Dave --

Since the driver I'm working on is a universal binary what I've decided to do is to conditionally compile it to make
a call to getPhysicalSegment() when compiled for the PPC platform and to use the new call, getPhysicalSegment64()
when compiling for the Intel platform.  If I understand Garth's description of the problem, this should result in a
driver that will run correctly on Intel platforms regardless of the OS version or how much memory is in the system
and should work OK on PPC systems as long as they don't have more than 2.5GB of memory.

You should be using IODMACommand. It works across 32-bit and 64-bit systems and abstracts away any code changes required for things like bounce-buffering, DART, etc. Future x86 hardware may have a DART and using getPhysicalSegment64() will not return a DART-based address, but a physical memory address.

Put another way, getPhysicalSegment64 returns un-I/O-mapped physical addreses, ie. what the processor bus uses.

I've been testing a driver built this way on a MacPro and so far so good, I haven't tried it yet on a PPC based Mac
yet.  If anyone knows of a reason (besides not working on PPC based Mac with more than 2.5GB of memory) I
would appreciate hearing from you.

See above.

-- 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: 
 >RE: 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.