Re: [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- From: Anton Blanchard <anton@xxxxxxxxx>
- Date: Thu, 26 Oct 2006 02:21:27 +1000
Hi,
+#ifdef CONFIG_PPC_64K_PAGES
+ /* To support 64k pages we must round to 64k page boundary */
+ epas->kernel.addr =
+ ioremap((paddr_kernel & 0xFFFFFFFFFFFF0000), PAGE_SIZE) +
+ (paddr_kernel & 0xFFFF);
+#else
epas->kernel.addr = ioremap(paddr_kernel, PAGE_SIZE);
+#endif
Cant you just use PAGE_MASK, ~PAGE_MASK and remove the ifdefs
completely?
Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- From: Jan-Bernd Themann
- Re: [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- References:
- [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- From: Jan-Bernd Themann
- [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- Prev by Date: [GIT PATCH] SCSI fixes for 2.6.19-rc3
- Next by Date: Re: Linux 2.6.19-rc3
- Previous by thread: [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- Next by thread: Re: [PATCH 2.6.19-rc3 2/2] ehea: 64K page support fix
- Index(es):
Relevant Pages
|
Loading