Roland Dreier
8b150478ae
[PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses
...
Change the phys_mem_access_prot() function to take a pfn instead of an
address. This allows mmap64() to work on /dev/mem for addresses above 4G
on 32-bit architectures. We start with a pfn in mmap_mem(), so there's no
need to convert to an address; in fact, it's actively bad, since the
conversion can overflow when the address is above 4G.
Similarly fix the ppc32 page_is_ram() function to avoid a conversion to an
address by directly comparing to max_pfn. Working with max_pfn instead of
high_memory fixes page_is_ram() to give the right answer for highmem pages.
Signed-off-by: Roland Dreier <rolandd@cisco.com >
Cc: Anton Blanchard <anton@samba.org >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Paul Mackerras <paulus@samba.org >
2005-10-29 14:25:49 +10:00
..
2005-09-09 22:11:34 +10:00
2005-09-21 19:21:08 +10:00
2005-09-09 22:11:34 +10:00
2005-09-25 22:38:46 +10:00
2005-09-22 21:03:34 +10:00
2005-10-11 09:59:38 +10:00
2005-09-21 19:21:09 +10:00
2005-09-09 22:11:35 +10:00
2005-09-28 15:42:53 +10:00
2005-10-26 15:54:31 +10:00
2005-10-22 16:51:34 +10:00
2005-08-30 13:32:05 +10:00
2005-10-20 20:53:39 +10:00
2005-08-30 13:32:05 +10:00
2005-09-22 21:03:33 +10:00
2005-10-10 22:29:05 +10:00
2005-08-30 13:32:05 +10:00
2005-09-09 22:11:34 +10:00
2005-09-07 16:57:39 -07:00
2005-10-26 16:00:26 +10:00
2005-10-26 17:16:38 +10:00
2005-10-10 22:50:37 +10:00
2005-10-20 20:53:39 +10:00
2005-10-10 22:50:37 +10:00
2005-10-26 16:47:42 +10:00
2005-09-09 22:11:34 +10:00
2005-09-09 22:11:34 +10:00
2005-10-14 14:51:42 +10:00
2005-08-30 13:32:05 +10:00
2005-10-26 17:19:06 +10:00
2005-09-27 13:51:59 +10:00
2005-10-20 20:53:39 +10:00
2005-09-19 09:38:49 +10:00
2005-09-27 13:51:59 +10:00
2005-09-09 22:11:34 +10:00
2005-10-06 12:06:20 +10:00
2005-08-30 13:32:06 +10:00
2005-10-29 14:25:49 +10:00
2005-10-20 20:53:39 +10:00
2005-09-09 22:11:34 +10:00
2005-10-20 20:53:39 +10:00
2005-09-09 22:11:34 +10:00
2005-09-09 22:11:34 +10:00
2005-10-20 17:09:51 +10:00
2005-09-09 22:11:35 +10:00
2005-09-09 22:11:34 +10:00
2005-10-06 13:22:17 +10:00
2005-10-20 20:53:39 +10:00
2005-09-21 19:21:08 +10:00
2005-09-09 22:11:35 +10:00
2005-10-27 20:50:54 +10:00
2005-08-30 13:32:06 +10:00
2005-10-20 20:53:39 +10:00
2005-10-20 20:53:39 +10:00
2005-10-20 16:22:24 +10:00
2005-09-09 22:11:34 +10:00
2005-09-21 19:21:07 +10:00
2005-10-28 22:53:37 +10:00
2005-09-28 02:50:25 +10:00
2005-10-27 20:48:50 +10:00
2005-10-27 16:45:29 +10:00
2005-10-06 12:06:20 +10:00
2005-10-28 22:53:37 +10:00
2005-08-30 13:32:06 +10:00
2005-10-19 23:11:21 +10:00
2005-10-22 15:57:55 +10:00
2005-09-25 22:38:46 +10:00
2005-10-27 16:45:52 +10:00
2005-09-25 22:38:45 +10:00
2005-09-19 09:38:50 +10:00
2005-09-25 22:38:46 +10:00
2005-09-09 22:11:34 +10:00
2005-09-09 22:11:35 +10:00
2005-09-09 22:11:35 +10:00
2005-09-09 22:11:34 +10:00
2005-09-12 17:19:12 +10:00
2005-10-20 20:53:39 +10:00
2005-09-09 22:11:34 +10:00
2005-09-09 22:11:34 +10:00
2005-09-21 19:21:09 +10:00
2005-10-28 22:48:08 +10:00
2005-09-21 19:21:10 +10:00
2005-09-09 22:11:34 +10:00
2005-09-25 22:38:46 +10:00
2005-10-27 20:48:50 +10:00
2005-09-09 22:11:34 +10:00
2005-09-09 22:11:34 +10:00
2005-10-27 20:51:13 +10:00
2005-10-23 17:14:56 +10:00
2005-10-12 08:24:47 -07:00
2005-09-09 22:11:35 +10:00
2005-10-27 16:45:50 +10:00
2005-09-09 22:11:34 +10:00
2005-10-20 20:53:39 +10:00
2005-10-10 22:56:11 +10:00
2005-09-09 22:11:35 +10:00
2005-09-21 19:21:09 +10:00
2005-10-24 17:40:23 +10:00
2005-10-28 22:53:37 +10:00
2005-08-30 13:32:05 +10:00