iounmap

Ronald Wahl rwa at peppercon.de
Fri Aug 4 18:08:17 EST 2000


On Fri, 4 Aug 2000, Paul Mackerras wrote:

> Ronald Wahl writes:
>
> > I'm currently writing a device driver for an pci controller and have to
> > map very large amounts of pci memory and i/o ranges via ioremap. The
> > problem is that there is no iounmap and ioremap returns NULL after some
> > insmod/rmmod cycles. When gets this implemented?
>
> This should do the trick:
>
> void iounmap(void *addr)
> {
> 	if (addr > high_memory && (unsigned long) addr < ioremap_bot)
> 		vfree((void *) (PAGE_MASK & (unsigned long) addr));
> }
>
> Could you replace the null iounmap in arch/ppc/mm/init.c with that,
> test it, and let me know if it works?

Yes, it seems to work. Thanx!

ron


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list