diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-21 18:35:28 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 02:15:02 -0400 |
commit | 372b07bb5a13f8a1b8a3ce49cd76d39a79dbd3bd (patch) | |
tree | 934af50f039921411e2ab6f4678b083f2b8c7eed /arch/sparc64/mm/init.c | |
parent | 8fae097debdf8ac9b66d220ac258535ea09f3898 (diff) |
[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/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 1539a8362b6f..45a70d677d8b 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <asm/sections.h> | 42 | #include <asm/sections.h> |
43 | #include <asm/tsb.h> | 43 | #include <asm/tsb.h> |
44 | #include <asm/hypervisor.h> | 44 | #include <asm/hypervisor.h> |
45 | #include <asm/prom.h> | ||
45 | 46 | ||
46 | extern void device_scan(void); | 47 | extern void device_scan(void); |
47 | 48 | ||
@@ -1339,6 +1340,8 @@ void __init paging_init(void) | |||
1339 | 1340 | ||
1340 | kernel_physical_mapping_init(); | 1341 | kernel_physical_mapping_init(); |
1341 | 1342 | ||
1343 | prom_build_devicetree(); | ||
1344 | |||
1342 | { | 1345 | { |
1343 | unsigned long zones_size[MAX_NR_ZONES]; | 1346 | unsigned long zones_size[MAX_NR_ZONES]; |
1344 | unsigned long zholes_size[MAX_NR_ZONES]; | 1347 | unsigned long zholes_size[MAX_NR_ZONES]; |