2 * Architecture specific debugfs files
4 * Copyright (C) 2007, Intel Corp.
5 * Huang Ying <ying.huang@intel.com>
7 * This file is released under the GPLv2.
10 #include <linux/debugfs.h>
11 #include <linux/stat.h>
12 #include <linux/init.h>
14 #include <asm/setup.h>
16 #ifdef CONFIG_DEBUG_BOOT_PARAMS
17 static struct debugfs_blob_wrapper boot_params_blob = {
19 .size = sizeof(boot_params),
22 static int __init boot_params_kdebugfs_init(void)
25 struct dentry *dbp, *version, *data;
27 dbp = debugfs_create_dir("boot_params", NULL);
32 version = debugfs_create_x16("version", S_IRUGO, dbp,
33 &boot_params.hdr.version);
38 data = debugfs_create_blob("data", S_IRUGO, dbp,
46 debugfs_remove(version);
54 static int __init arch_kdebugfs_init(void)
58 #ifdef CONFIG_DEBUG_BOOT_PARAMS
59 error = boot_params_kdebugfs_init();
65 arch_initcall(arch_kdebugfs_init);