summaryrefslogtreecommitdiff
path: root/arch/sparc64/mm
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-06-21 22:35:28 (GMT)
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-24 06:15:02 (GMT)
commit372b07bb5a13f8a1b8a3ce49cd76d39a79dbd3bd (patch)
tree934af50f039921411e2ab6f4678b083f2b8c7eed /arch/sparc64/mm
parent8fae097debdf8ac9b66d220ac258535ea09f3898 (diff)
downloadlinux-372b07bb5a13f8a1b8a3ce49cd76d39a79dbd3bd.tar.xz
[SPARC64]: Import OBP device tree into kernel data structures.
The basic framework is based on the PowerPC OF code. This code even tries to get the device addressing components correct in the full path names. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm')
-rw-r--r--arch/sparc64/mm/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index 1539a83..45a70d6 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -42,6 +42,7 @@
#include <asm/sections.h>
#include <asm/tsb.h>
#include <asm/hypervisor.h>
+#include <asm/prom.h>
extern void device_scan(void);
@@ -1339,6 +1340,8 @@ void __init paging_init(void)
kernel_physical_mapping_init();
+ prom_build_devicetree();
+
{
unsigned long zones_size[MAX_NR_ZONES];
unsigned long zholes_size[MAX_NR_ZONES];