Files
android_kernel_xiaomi_sm8450/arch/openrisc/include/asm
Stefan Kristiansson f47706099b openrisc: fix PTRS_PER_PGD define
On OpenRISC, with its 8k pages, PAGE_SHIFT is defined to be 13.
That makes the expression (1UL << (PAGE_SHIFT-2)) evaluate
to 2048.
The correct value for PTRS_PER_PGD should be 256.

Correcting the PTRS_PER_PGD define unveiled a bug in map_ram(),
where PTRS_PER_PGD was used when the intent was to iterate
over a set of page table entries.
This patch corrects that issue as well.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Acked-by: Jonas Bonn <jonas@southpole.se>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Stafford Horne <shorne@gmail.com>
2016-12-12 23:09:06 +09:00
..
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2014-04-18 14:20:40 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2013-02-26 02:46:08 -05:00
2011-07-22 18:46:28 +02:00
2014-09-03 13:11:02 +00:00
2011-07-22 18:46:33 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:39 +02:00
2016-12-12 23:09:06 +09:00
2016-05-20 17:58:30 -07:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:32 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:28 +02:00
2016-09-27 21:15:14 -04:00
2011-07-22 18:46:39 +02:00