Re: [crash] Re: Latest brk patchset

From: Yinghai Lu
Date: Mon Mar 16 2009 - 22:27:32 EST


H. Peter Anvin wrote:
> Jeremy Fitzhardinge wrote:
>> H. Peter Anvin wrote:
>>> Or simplified:
>>>
>>> PAGE_TABLE_SIZE(((1 << 32)-PAGE_OFFSET) >> PAGE_SHIFT) << PAGE_SHIFT
>>
>> Was worried about 1<<32 overflowing. Never really sure what gas's
>> type system is.
>>
>
> It's bignum-based.
>
> You could also write:
>
> PAGE_TABLE_SIZE((-PAGE_OFFSET & 0xffffffff) >> PAGE_SHIFT) << PAGE_SHIFT
>
> (the & 0xffffffff is necessary, or you'll get a signed shift.)

max kernel address space range?

YH
--
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/