lkml.org 
[lkml]   [2009]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [crash] Re: Latest brk patchset
H. Peter Anvin wrote:
> 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.
>

The former seems more obvious.

J


\
 
 \ /
  Last update: 2009-03-17 06:11    [W:0.241 / U:1.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site