projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f706abf
)
nds32: Fix the dts pointer is not passed correctly issue.
author
Greentime Hu
<greentime@andestech.com>
Thu, 28 Jun 2018 10:29:21 +0000
(18:29 +0800)
committer
Greentime Hu
<greentime@andestech.com>
Tue, 3 Jul 2018 03:12:06 +0000
(11:12 +0800)
We found that the original implementation will only use the built-in dtb
pointer instead of the pointer pass from bootloader. This bug is fixed
by this patch.
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/nds32/kernel/setup.c
b/arch/nds32/kernel/setup.c
index
2f5b2cc
..
63a1a5e
100644
(file)
--- a/
arch/nds32/kernel/setup.c
+++ b/
arch/nds32/kernel/setup.c
@@
-278,7
+278,8
@@
static void __init setup_memory(void)
void __init setup_arch(char **cmdline_p)
{
- early_init_devtree( __dtb_start);
+ early_init_devtree(__atags_pointer ? \
+ phys_to_virt(__atags_pointer) : __dtb_start);
setup_cpuinfo();