• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IOMallocAligned casuses kernel trap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOMallocAligned casuses kernel trap


  • Subject: IOMallocAligned casuses kernel trap
  • From: Dinesh Bhat <email@hidden>
  • Date: Tue, 15 Aug 2006 11:33:29 -0500
  • Organization: Linear Systems

Hello all,

I am writing a PCI device driver to transfer data from the board memory to the system memory. I am trying to allocate a wired page to transfer data. I do not have any code for transfer yet. After adding
set_Page = (UInt32*)IOMallocAligned(PAGE_SIZE,PAGE_SIZE) line, when I loaded the kext kernel crashed. I then tried IOMalloc as well as IOMallocPageable to check if they work. All of them result in kernel crash. Can anyone tell what I am doing wrong here? I read in kernel programming on Mac (pdf document) that IOMallocAligned should not be used. But that document did not say anything about IOMallocPageable.


Any pointers?

Thanks,

Dinesh


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: RE: retrieving the DN from Open Directory
  • Next by Date: Apple code that handles Proxy settings (in System Prefs) in Darwin?
  • Previous by thread: RE: retrieving the DN from Open Directory
  • Next by thread: Re: IOMallocAligned casuses kernel trap
  • Index(es):
    • Date
    • Thread