Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31165
b: refs/heads/master
c: 7a4571a
h: refs/heads/master
i:
  31163: bbad463
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jun 28, 2006
1 parent 9c15f44 commit 7077c11
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dce0e30471ac863fd141d137c98e3644817975e
refs/heads/master: 7a4571ae553e2972b7958306fd796a2fd24fd7d1
25 changes: 25 additions & 0 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/kexec.h>
#include <linux/debugfs.h>

#include <asm/prom.h>
#include <asm/rtas.h>
Expand Down Expand Up @@ -2148,3 +2149,27 @@ struct device_node *of_get_cpu_node(int cpu, unsigned int *thread)
}
return NULL;
}

#ifdef DEBUG
static struct debugfs_blob_wrapper flat_dt_blob;

static int __init export_flat_device_tree(void)
{
struct dentry *d;

d = debugfs_create_dir("powerpc", NULL);
if (!d)
return 1;

flat_dt_blob.data = initial_boot_params;
flat_dt_blob.size = initial_boot_params->totalsize;

d = debugfs_create_blob("flat-device-tree", S_IFREG | S_IRUSR,
d, &flat_dt_blob);
if (!d)
return 1;

return 0;
}
__initcall(export_flat_device_tree);
#endif

0 comments on commit 7077c11

Please sign in to comment.