Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
36bcd39d
Commit
36bcd39d
authored
Nov 10, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Split out 29-bit and 32-bit physical mode definitions.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
af3c7dfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
arch/sh/mm/Kconfig
arch/sh/mm/Kconfig
+11
-0
arch/sh/mm/Makefile
arch/sh/mm/Makefile
+1
-1
include/asm-sh/pgtable.h
include/asm-sh/pgtable.h
+17
-0
No files found.
arch/sh/mm/Kconfig
View file @
36bcd39d
...
...
@@ -46,9 +46,20 @@ config MEMORY_SIZE
as 0x00400000 which was the default value before this became
configurable.
# Physical addressing modes
config 29BIT
def_bool !32BIT
depends on SUPERH32
config 32BIT
bool
default y if CPU_SH5
config PMB
bool "Support 32-bit physical addressing through PMB"
depends on MMU && (CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785)
select 32BIT
default y
help
If you say Y here, physical addressing will be extended to
...
...
arch/sh/mm/Makefile
View file @
36bcd39d
...
...
@@ -31,7 +31,7 @@ endif
endif
obj-$(CONFIG_HUGETLB_PAGE)
+=
hugetlbpage.o
obj-$(CONFIG_
32BIT
)
+=
pmb.o
obj-$(CONFIG_
PMB
)
+=
pmb.o
obj-$(CONFIG_NUMA)
+=
numa.o
EXTRA_CFLAGS
+=
-Werror
include/asm-sh/pgtable.h
View file @
36bcd39d
...
...
@@ -28,6 +28,23 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
#endif
/* !__ASSEMBLY__ */
/*
* Effective and physical address definitions, to aid with sign
* extension.
*/
#define NEFF 32
#define NEFF_SIGN (1LL << (NEFF - 1))
#define NEFF_MASK (-1LL << NEFF)
#ifdef CONFIG_29BIT
#define NPHYS 29
#else
#define NPHYS 32
#endif
#define NPHYS_SIGN (1LL << (NPHYS - 1))
#define NPHYS_MASK (-1LL << NPHYS)
/*
* traditional two-level paging structure
*/
...
...
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