Paul Burton b023a93960
MIPS: Avoid using array as parameter to write_c0_kpgd()
Passing an array (swapper_pg_dir) as the argument to write_c0_kpgd() in
setup_pw() will become problematic if we modify __write_64bit_c0_split()
to cast its val argument to unsigned long long, because for 32-bit
kernel builds the size of a pointer will differ from the size of an
unsigned long long. This would fall foul of gcc's pointer-to-int-cast
diagnostic.

Cast the value to a long, which should be the same width as the pointer
that we ultimately want & will be sign extended if required to the
unsigned long long that __write_64bit_c0_split() ultimately needs.

Signed-off-by: Paul Burton <paul.burton@mips.com>
2018-08-06 18:44:09 -07:00
..
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2018-04-13 17:10:27 -07:00
2018-02-19 10:55:35 +00:00
2018-07-27 15:19:59 -07:00
2017-02-02 15:06:26 +00:00
2017-06-28 12:22:39 +02:00