Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Module problem on amd64



On Thu, Nov 27, 2008 at 10:11:46AM -0800, Paul Goyette wrote:

> Yup - I was just experimenting to see if it would work.  When it failed, 
> I just wanted to make sure someone knew about it!
> 
> Related question:  Is it "correct" that, if you have
> 
>       config netbsd root on wd0a type ffs
> 
> that you need to include
> 
>       file-system FFS
> 
> as well?  It seems that the swapnetbsd.c built by config(1) includes a 
> strong reference to
> 
>       int ffs_mountroot(void);
>       int (*mountroot)(void) = ffs_mountroot;
> 
> which fails to link if you haven't included the filesystem in the 
> kernel.  It seems to me that this could be made into a WEAK reference, 
> and then the kernel could load the appropriate module at boot time. 
> This would allow you to replace only the file-system module, rather than 
> the entire kernel, if you were debugging.

We could add a rootfstype and look up the mountroot vector by string.

Andrew


Home | Main Index | Thread Index | Old Index