Author: blueswirl Date: 2007-06-27 22:07:37 +0200 (Wed, 27 Jun 2007) New Revision: 152
Modified: openbios-devel/drivers/iommu.c Log: Fix mapping more than 2G memory
Modified: openbios-devel/drivers/iommu.c =================================================================== --- openbios-devel/drivers/iommu.c 2007-06-10 15:56:42 UTC (rev 151) +++ openbios-devel/drivers/iommu.c 2007-06-27 20:07:37 UTC (rev 152) @@ -93,7 +93,8 @@ pa &= ~(align - 1); p = (char *)pa2va(pa);
- if (p >= t->uplim || p + size > t->uplim) + if ((unsigned long)p >= (unsigned long)t->uplim || + (unsigned long)p + size > (unsigned long)t->uplim) return 0; t->curp = p + size;