Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
77d23303
Commit
77d23303
authored
14 years ago
by
Chris Metcalf
Browse files
Options
Download
Email Patches
Plain Diff
arch/tile: Add a warning if we try to allocate too much vmalloc memory.
Signed-off-by:
Chris Metcalf
<
cmetcalf@tilera.com
>
parent
d6f0f22c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/tile/kernel/setup.c
arch/tile/kernel/setup.c
+4
-0
No files found.
arch/tile/kernel/setup.c
View file @
77d23303
...
...
@@ -1334,6 +1334,10 @@ static void __init pcpu_fc_populate_pte(unsigned long addr)
pte_t
*
pte
;
BUG_ON
(
pgd_addr_invalid
(
addr
));
if
(
addr
<
VMALLOC_START
||
addr
>=
VMALLOC_END
)
panic
(
"PCPU addr %#lx outside vmalloc range %#lx..%#lx;"
" try increasing CONFIG_VMALLOC_RESERVE
\n
"
,
addr
,
VMALLOC_START
,
VMALLOC_END
);
pgd
=
swapper_pg_dir
+
pgd_index
(
addr
);
pud
=
pud_offset
(
pgd
,
addr
);
...
...
This diff is collapsed.
Click to expand it.
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