-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Mundt
committed
Nov 12, 2008
1 parent
a344559
commit 0bf8a97
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: ade7a9b4ccd20ab8159c77a0abd20552f2d6b06c | ||
refs/heads/master: 185aed75570fb4f78ef283dfa26cd9da5fa06a91 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* arch/sh/mm/mmap.c | ||
* | ||
* Copyright (C) 2008 Paul Mundt | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <linux/io.h> | ||
#include <linux/mm.h> | ||
#include <asm/page.h> | ||
|
||
/* | ||
* You really shouldn't be using read() or write() on /dev/mem. This | ||
* might go away in the future. | ||
*/ | ||
int valid_phys_addr_range(unsigned long addr, size_t count) | ||
{ | ||
if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT))) | ||
return 0; | ||
if (addr + count > __pa(high_memory)) | ||
return 0; | ||
|
||
return 1; | ||
} | ||
|
||
int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) | ||
{ | ||
return 1; | ||
} |