IOMallocAligned casuses kernel trap
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