building ppc_htab?

Kumar Gala kumar.gala at freescale.com
Fri Mar 18 16:12:17 EST 2005


> > Crap :(
>  >
> > > #ifdef CONFIG_PPC32
> > >         {
>  > >                 extern struct file_operations ppc_htab_operations;
> > >                 entry = create_proc_entry("ppc_htab", 
> S_IRUGO|S_IWUSR,
>  > > NULL);
>  > >                 if (entry)
>  > >                         entry->proc_fops = &ppc_htab_operations;
> > >         }
>  > > #endif
>  > >
> > > Are you suggesting this should live elsewhere?  I'm not that 
> familiar
> > > with proc code.
>  >
> > Yes, it should live in ppc_htab.c.  See the CONFIG_SYSCTL stuff 
> already
>  > in ppc_htab.c for l2crvec.
>
> Der, that's not the same thing!  I still swear there's a way to do this
>  w/o messing w/ fs/proc/proc_misc.c, but I don't recall a good example.

Will, for now I will add a conditional on CONFIG_PPC_STD_MMU.  We can 
move this out once we figure out how to do it outside of 
fs/proc/proc_misc.c.

- kumar




More information about the Linuxppc-dev mailing list