]> git.karo-electronics.de Git - karo-tx-linux.git/commit
openrisc: fix virt_addr_valid
authorJonas Bonn <jonas@southpole.se>
Fri, 2 Mar 2012 06:56:09 +0000 (07:56 +0100)
committerJonas Bonn <jonas@southpole.se>
Tue, 6 Mar 2012 09:36:08 +0000 (10:36 +0100)
commit2f099a280e92c259598d8ed8da82c7ec2dd49845
treef0d748adde2badc47f2d07316b08cc4e5aca214b
parent01c4d33ac5ca7920f0e0f6b25bdfd3fa479fd973
openrisc: fix virt_addr_valid

virt_addr_valid() shouldn't be comparing the address to memory_end which is
a phys_addr_t.  Change this to do like other arches and check that the
address falls within a valid page frame.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
arch/openrisc/include/asm/page.h