Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Kernel allocation in the first 256Mb of memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kernel allocation in the first 256Mb of memory



My device requires addresses in that range for DMA transfert. ie - I have
only 28 bits available. However, it seems theres no way to ensure that
IOMallocContiguous() returns 'safe' addresses in that range.

When IOMallocContiguous works, the driver works as expected, but successives
load/unload of the driver gets new addresses for that memory, even if I'm
very careful to release the blocks properly. So after a few times it returns
pointers > 256Mb and I have to reboot.

Is there some other trick? I need rougly 100Kb. It's a major roadblock for me
on that driver, if I can't guarantee a working behavior somehow, I can't
release!

Michel
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.