--- zzzz-none-000/linux-2.4.17/fs/proc/root.c 2001-10-21 02:14:42.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/fs/proc/root.c 2004-11-24 13:22:10.000000000 +0000 @@ -17,6 +17,12 @@ #include #include +#if defined(CONFIG_MIPS_AVALANCHE_SOC) +extern void avalanche_proc_init(void); +extern void avalanche_proc_entries(void); +#endif /* CONFIG_MIPS_AVALANCHE_SOC*/ + + struct proc_dir_entry *proc_net, *proc_bus, *proc_root_fs, *proc_root_driver; #ifdef CONFIG_SYSCTL @@ -62,6 +68,11 @@ proc_rtas_init(); #endif proc_bus = proc_mkdir("bus", 0); + +#if defined(CONFIG_MIPS_AVALANCHE_SOC) + avalanche_proc_init(); + avalanche_proc_entries(); +#endif /* CONFIG_MIPS_AVALANCHE_SOC*/ } static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry) @@ -76,7 +87,7 @@ if (!proc_lookup(dir, dentry)) return NULL; - + return proc_pid_lookup(dir, dentry); } @@ -116,12 +127,12 @@ * This is the root "inode" in the /proc tree.. */ struct proc_dir_entry proc_root = { - low_ino: PROC_ROOT_INO, - namelen: 5, + low_ino: PROC_ROOT_INO, + namelen: 5, name: "/proc", - mode: S_IFDIR | S_IRUGO | S_IXUGO, - nlink: 2, - proc_iops: &proc_root_inode_operations, + mode: S_IFDIR | S_IRUGO | S_IXUGO, + nlink: 2, + proc_iops: &proc_root_inode_operations, proc_fops: &proc_root_operations, parent: &proc_root, };