Commit e540e835 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Chris Metcalf

tile: cleanup the comment in init_pgprot

In tile vmlinux, the rodata area start after the _sdata.
The rodata area is included between [_sdata, __end_rodata),
and is handled at an earlier point.
The page walk starts at __end_rodata, not _sdata.
Signed-off-by: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 3af1ea5a
...@@ -273,9 +273,9 @@ static pgprot_t __init init_pgprot(ulong address) ...@@ -273,9 +273,9 @@ static pgprot_t __init init_pgprot(ulong address)
/* /*
* Otherwise we just hand out consecutive cpus. To avoid * Otherwise we just hand out consecutive cpus. To avoid
* requiring this function to hold state, we just walk forward from * requiring this function to hold state, we just walk forward from
* _sdata by PAGE_SIZE, skipping the readonly and init data, to reach * __end_rodata by PAGE_SIZE, skipping the readonly and init data, to
* the requested address, while walking cpu home around kdata_mask. * reach the requested address, while walking cpu home around
* This is typically no more than a dozen or so iterations. * kdata_mask. This is typically no more than a dozen or so iterations.
*/ */
page = (((ulong)__end_rodata) + PAGE_SIZE - 1) & PAGE_MASK; page = (((ulong)__end_rodata) + PAGE_SIZE - 1) & PAGE_MASK;
BUG_ON(address < page || address >= (ulong)_end); BUG_ON(address < page || address >= (ulong)_end);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment