Current-Users archive

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

Re: Modules not working (missing uvmexp_pagesize)

The code intention looks like:

- PAGE_SIZE is defined by CPU type (oea, ibm4xx, ...) on powerpc

- But powerpc modules don't know the PAGE_SIZE before loaded
(powerpc/include/vmparam.h #ifdef _MODULE ...)

I guess that powerpc have to have the uvmexp_pagesize as a variable
(as sparcs do) to share single powerpc modules.  I.e., PAGE_SIZE
should not be statically defined when MODULAR.

On Tue, Sep 27, 2011 at 9:29 AM, Julio Merino <> 
> Hello Masao and current-users,
> Your changes on September 14th to only export relevant uvm symbols to
> userspace seem to have broken modules in, at least, macppc.
> When the kernel attempts to load a module (e.g. compat, which happens
> all the time), I get:
> kobj_checksyms, 867: [compat]: linker error: symbol 'uvmexp_pagesize'
> not found
> WARNING: module error: unable to affix module 'compat'
> MIN_PAGE_SIZE and MAX_PAGE_SIZE are *not* defined in macppc, but they
> are in other powerpc platforms.  This may be causing some of the
> uvm_param.h logic to get confused.
> Could you please take a look?
> Thank you,
> Julio

Home | Main Index | Thread Index | Old Index