David Mosberger wrote: > > >>>>> On Fri, 14 Sep 2001 23:57:03 +0200, Steffen Persvold said: > > Steffen> So, how about that patch guys ? Any chance you'll put it > Steffen> into the mainstream IA64 kernel ??? > > I haven't looked at it yet, but am planning to do so as part of the > 2.4.10 patch. > I just discovered that several files in arch/ia64/kernel (more specifically acpi.c, efi.c and iosapic.c) calls ioremap with 0 as size argument. This is ok with the current ioremap implementation which always uses region 6 and therefore in theory doesn't need a size since it's mapped all the time. However with my patch you will get a NULL pointer in return if you specify size as 0. Because of this I've modified my original patch to accept 0 as size argument and return the region 6 address when this is the case. This means that we cannot get rid of region 6 yet since some of the source files seem to depend on it. Attached is my new version of the patch. (Please note that the old ioremap() methods in asm/io.h is just disabled with '#if 0') Regards, -- Steffen Persvold | Scali Computer AS | Try out the world's best mailto:sp@scali.no | http://www.scali.com | performing MPI implementation: Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 - Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >300MBytes/s and <4uS latency