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



Chris Sarcone writes:
 > Drew --
 > 
 > >
 > > Chris Sarcone writes:
 > >> You should be using IODMACommand. It works across 32-bit and 64-bit
 > >
 > > Eeek.
 > >
 > > Where is IODMACommand documented?
 > 
 > Does HeaderDoc count? ;-). I think TechPubs is working on revamping  
 > the IOKit literature and providing some sample code for this.

 > > Are network drivers still supposed to use IOMbufMemoryCursor?
 > 
 > IIRC, mbufs are special cased (they're allocated out of the special  
 > chunk of < 4GB memory). I'm not sure about the IOMbufMemoryCursor  

If mbufs still come out of low memory, then it should be
safe.  Its a fancy wrapper for mcltopaddr.

 > question. I think it depends on how you allocate your Rx/Tx ring  
 > buffers and such.

In my ethernet drivers, my other allocations are made with
IOMallocContiguous (with allocations of a page or less).  Since that
gives back a 32-but dma address, I assume that must still be safe.

Thanks,

Drew
 _______________________________________________
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>)
 >Re: Kernel panic on Intel based Mac with more than 2GB of memory (From: Chris Sarcone <email@hidden>)
 >Re: Kernel panic on Intel based Mac with more than 2GB of memory (From: Andrew Gallatin <email@hidden>)
 >Re: Kernel panic on Intel based Mac with more than 2GB of memory (From: Chris Sarcone <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.