Two different PTE formats.
> > + /* This needs to be evaluated at runtime on some platforms */
> > + if (PTE_FILE_MAX_BITS < BITS_PER_LONG)
> > + if (pgoff + (size >> PAGE_SHIFT) >= (1UL << PTE_FILE_MAX_BITS))
> > + return err;
>
> The reason I didn't do this in the first place is that if PTE_FILE_MAX_BITS
> is 32 (as it is for ia32 PAE), the compiler generates a warning about the
> (1<<32). I guess it generates a bug, too.
>
> Ho hum. I shall make it "1ULL".
Wait, that would be a pessimization. Let me think about it.
I am thinking that perhaps I can arrange is so that the number
bits on different sparcs would end the same.
-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/