page fault while in kernel mode

John Baldwin jhb at freebsd.org
Tue Oct 21 10:42:25 PDT 2008


On Monday 20 October 2008 08:52:07 pm Robert Fitzpatrick wrote:
> On Mon, 2008-10-20 at 13:45 -0400, John Baldwin wrote:
> > > i386 cannot address more than 4GB unless the kernel is built with
> > PAE
> > > mode enabled.  This isn't enabled in GENERIC for many (justified)
> > > reasons.  If you have more than 4GB, you should be using amd64, so
> > you
> > > made the right decision there.
> > 
> > If you aren't using kernel modules, then PAE should work fine.  You
> > can make 
> > kernel modules work with PAE as well, but that takes more work.
> 
> Thanks for the help, I am missing AMD Features for this CPU in dmesg, so
> it looks like the CPU does not support amd64. I tried to build my own
> kernel with PAE option and getting the following error...
> 
> /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
> /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to
> integer of different size
> *** Error code 1
> 
> Any idea what I can do for this error?

Some drivers don't work with PAE (see all the 'nodevice' lines 
in /sys/i386/conf/PAE).  You'll need to purge those drivers from your config.  
If you are using the hardware those drivers support, then you can't use PAE.

-- 
John Baldwin


More information about the freebsd-questions mailing list