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
nexedi
linux
Commits
8eace9fb
Commit
8eace9fb
authored
Nov 22, 2019
by
Paul Walmsley
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'next/misc2' into for-next
parents
5ba9aa56
2cc6c4a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
8 deletions
+40
-8
arch/riscv/Kconfig.socs
arch/riscv/Kconfig.socs
+8
-8
arch/riscv/mm/init.c
arch/riscv/mm/init.c
+32
-0
No files found.
arch/riscv/Kconfig.socs
View file @
8eace9fb
menu "SoC selection"
config SOC_SIFIVE
bool "SiFive SoCs"
select SERIAL_SIFIVE
select SERIAL_SIFIVE_CONSOLE
select CLK_SIFIVE
select CLK_SIFIVE_FU540_PRCI
select SIFIVE_PLIC
help
This enables support for SiFive SoC platform hardware.
bool "SiFive SoCs"
select SERIAL_SIFIVE
select SERIAL_SIFIVE_CONSOLE
select CLK_SIFIVE
select CLK_SIFIVE_FU540_PRCI
select SIFIVE_PLIC
help
This enables support for SiFive SoC platform hardware.
endmenu
arch/riscv/mm/init.c
View file @
8eace9fb
...
...
@@ -46,6 +46,37 @@ static void setup_zero_page(void)
memset
((
void
*
)
empty_zero_page
,
0
,
PAGE_SIZE
);
}
#ifdef CONFIG_DEBUG_VM
static
inline
void
print_mlk
(
char
*
name
,
unsigned
long
b
,
unsigned
long
t
)
{
pr_notice
(
"%12s : 0x%08lx - 0x%08lx (%4ld kB)
\n
"
,
name
,
b
,
t
,
(((
t
)
-
(
b
))
>>
10
));
}
static
inline
void
print_mlm
(
char
*
name
,
unsigned
long
b
,
unsigned
long
t
)
{
pr_notice
(
"%12s : 0x%08lx - 0x%08lx (%4ld MB)
\n
"
,
name
,
b
,
t
,
(((
t
)
-
(
b
))
>>
20
));
}
static
void
print_vm_layout
(
void
)
{
pr_notice
(
"Virtual kernel memory layout:
\n
"
);
print_mlk
(
"fixmap"
,
(
unsigned
long
)
FIXADDR_START
,
(
unsigned
long
)
FIXADDR_TOP
);
print_mlm
(
"pci io"
,
(
unsigned
long
)
PCI_IO_START
,
(
unsigned
long
)
PCI_IO_END
);
print_mlm
(
"vmemmap"
,
(
unsigned
long
)
VMEMMAP_START
,
(
unsigned
long
)
VMEMMAP_END
);
print_mlm
(
"vmalloc"
,
(
unsigned
long
)
VMALLOC_START
,
(
unsigned
long
)
VMALLOC_END
);
print_mlm
(
"lowmem"
,
(
unsigned
long
)
PAGE_OFFSET
,
(
unsigned
long
)
high_memory
);
}
#else
static
void
print_vm_layout
(
void
)
{
}
#endif
/* CONFIG_DEBUG_VM */
void
__init
mem_init
(
void
)
{
#ifdef CONFIG_FLATMEM
...
...
@@ -56,6 +87,7 @@ void __init mem_init(void)
memblock_free_all
();
mem_init_print_info
(
NULL
);
print_vm_layout
();
}
#ifdef CONFIG_BLK_DEV_INITRD
...
...
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