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