Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
cb700aa4
Commit
cb700aa4
authored
Sep 12, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: ioremap_prot support.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
934135c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
arch/sh/Kconfig
arch/sh/Kconfig
+1
-0
arch/sh/include/asm/io.h
arch/sh/include/asm/io.h
+2
-0
arch/sh/include/asm/page.h
arch/sh/include/asm/page.h
+2
-0
arch/sh/include/asm/pgtable.h
arch/sh/include/asm/pgtable.h
+1
-0
No files found.
arch/sh/Kconfig
View file @
cb700aa4
...
@@ -12,6 +12,7 @@ config SUPERH
...
@@ -12,6 +12,7 @@ config SUPERH
select HAVE_IDE
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_OPROFILE
select HAVE_GENERIC_DMA_COHERENT
select HAVE_GENERIC_DMA_COHERENT
select HAVE_IOREMAP_PROT
help
help
The SuperH is a RISC processor targeted for use in embedded systems
The SuperH is a RISC processor targeted for use in embedded systems
and consumer electronics; it was also used in the Sega Dreamcast
and consumer electronics; it was also used in the Sega Dreamcast
...
...
arch/sh/include/asm/io.h
View file @
cb700aa4
...
@@ -347,6 +347,8 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
...
@@ -347,6 +347,8 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
__ioremap_mode((offset), (size), _PAGE_CACHABLE)
__ioremap_mode((offset), (size), _PAGE_CACHABLE)
#define p3_ioremap(offset, size, flags) \
#define p3_ioremap(offset, size, flags) \
__ioremap((offset), (size), (flags))
__ioremap((offset), (size), (flags))
#define ioremap_prot(offset, size, flags) \
__ioremap_mode((offset), (size), (flags))
#define iounmap(addr) \
#define iounmap(addr) \
__iounmap((addr))
__iounmap((addr))
...
...
arch/sh/include/asm/page.h
View file @
cb700aa4
...
@@ -104,6 +104,8 @@ typedef struct { unsigned long pgd; } pgd_t;
...
@@ -104,6 +104,8 @@ typedef struct { unsigned long pgd; } pgd_t;
typedef
struct
page
*
pgtable_t
;
typedef
struct
page
*
pgtable_t
;
#define pte_pgprot(x) __pgprot(pte_val(x) & PTE_FLAGS_MASK)
#endif
/* !__ASSEMBLY__ */
#endif
/* !__ASSEMBLY__ */
/*
/*
...
...
arch/sh/include/asm/pgtable.h
View file @
cb700aa4
...
@@ -76,6 +76,7 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
...
@@ -76,6 +76,7 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
#endif
#endif
#define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK)
#define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK)
#define PTE_FLAGS_MASK (~(PTE_PHYS_MASK) << PAGE_SHIFT)
#ifdef CONFIG_SUPERH32
#ifdef CONFIG_SUPERH32
#define VMALLOC_START (P3SEG)
#define VMALLOC_START (P3SEG)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment