Re: [crash] Re: Latest brk patchset
From: H. Peter Anvin
Date: Tue Mar 17 2009 - 00:04:48 EST
Yinghai Lu wrote:
>>
>> 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?
>
Yes, either ((1 << 32)-PAGE_OFFSET) or (-PAGE_OFFSET & 0xffffffff)
should work for that.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
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/