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-10-01 17:01:48 -07:00
2005-09-29 11:15:51 +01:00
2005-10-17 08:59:10 -07:00
2005-09-09 14:03:48 -07:00
2005-09-29 08:46:27 -07:00
2005-09-29 08:54:20 -07:00
2005-04-16 15:20:36 -07:00
2005-10-18 08:26:15 -07:00
2005-09-13 08:22:32 -07:00
2005-09-20 17:36:38 -07:00
2005-09-08 14:57:23 -07:00
2005-09-15 08:24:09 -07:00
2005-09-09 13:58:01 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-30 23:28:47 +01:00
2005-04-16 15:20:36 -07:00
2005-06-21 19:07:41 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:24:57 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:16 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-03 12:23:56 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-29 08:46:26 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-27 16:26:19 -07:00
2005-09-20 17:36:38 -07:00
2005-10-29 14:25:49 +10:00
2005-09-09 14:03:40 -07:00
2005-10-24 14:08:29 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-20 15:15:35 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-26 07:43:42 -07:00
2005-09-29 11:15:51 +01:00
2005-07-17 20:15:36 +01:00
2005-09-29 08:54:20 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-14 07:19:35 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 14:03:42 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 14:03:39 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 22:11:38 +10:00
2005-10-07 13:05:56 -07:00
2005-07-06 12:55:20 -07:00
2005-04-16 15:20:36 -07:00
2005-07-27 16:26:20 -07:00
2005-09-13 08:22:33 -07:00
2005-09-05 00:06:03 -07:00
2005-09-05 00:06:03 -07:00
2005-09-05 00:06:03 -07:00
2005-04-16 15:20:36 -07:00
2005-09-29 09:44:54 +01:00
2005-09-29 09:44:54 +01:00
2005-09-07 16:57:34 -07:00
2005-08-18 12:53:57 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:15 -07:00
2005-09-29 08:54:20 -07:00
2005-09-09 14:03:42 -07:00
2005-04-16 15:20:36 -07:00
2005-10-14 17:10:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 19:07:41 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-24 20:39:15 -07:00
2005-05-01 08:59:25 -07:00
2005-04-21 14:09:42 -07:00
2005-09-09 13:58:02 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-18 08:43:29 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:30 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:53 -07:00
2005-09-07 16:57:53 -07:00