Linux-kernel mailing list archive 1999-23,: Re: pre2.3.6-2 PAGE_OFFSET_RAW & pcmcia

# Re: pre2.3.6-2 PAGE_OFFSET_RAW & pcmcia

Steven N. Hirsch (shirsch@adelphia.net)
Fri, 11 Jun 1999 07:45:48 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Cataldo Thomas: "Can't log in when using 2.3.[5-6]"
- Previous message: Michael H. Warfield: "Re: R: Do not use stock RedHat 6.0 kernels with SMBFS! [OFF-TOPIC]"

On Fri, 11 Jun 1999, Garst R. Reese wrote:

> David Hinds wrote:
> >
> > On Wed, Jun 09, 1999 at 11:26:35PM -0300, Garst R. Reese wrote:
> >
> > > >
> > > > > The second is that, for reasons I don't see, PAGE_OFFSET_RAW causes
> > > > > undeclared variable errors compiling pcmcia-cs-3.0.12.
> > > >
> > > > Quite possibly. It relies on CONFIG_1G/CONFIG_2G being defined , I would
> > > > guess that PCMCIA CS doesn't pull that define out of the kernel .config.
> > > > Fixing it to extract this ought to sort that out.
> > > >
> > > > Alan
> > > Ah, yes. Thanks.
> >
> > This should be fixed in the beta on csb.stanford.edu in
> > /pub/pcmcia/NEW.
> >
> > -- Dave
> But it isn't :) Same error msgs.

Asking for the kernel config.h won't cut it on its own. The preprocessor
directive:

#include <linux/config.h>

will pickup up the _pcmcia_ config.h due to "-I../include" being specified
first in the include search sequence.

Also, asm/pgtable.h must directly include asm/page.h.

For a quick workaround, try applying this to the kernel tree (in
include/asm):

*** page.h.orig Wed Jun 9 20:34:23 1999
--- page.h Wed Jun 9 20:34:02 1999
***************
*** 82,87 ****
--- 82,91 ----
#include <asm/page_offset.h>
+ #ifndef PAGE_OFFSET_RAW
+ #define PAGE_OFFSET_RAW 0xC0000000
+ #endif
+
#define __PAGE_OFFSET (PAGE_OFFSET_RAW)
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
*** pgtable.h.orig Wed Jun 9 19:39:11 1999
--- pgtable.h Wed Jun 9 20:32:41 1999
***************
*** 399,404 ****
--- 399,406 ----
#define pte_quicklist (current_cpu_data.pte_quick)
#define pgtable_cache_size (current_cpu_data.pgtable_cache_sz)
+ #include <asm/page.h>
+
extern __inline__ pgd_t *get_pgd_slow(void)
{
pgd_t *ret = (pgd_t *)__get_free_page(GFP_KERNEL), *init;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Cataldo Thomas: "Can't log in when using 2.3.[5-6]"
- Previous message: Michael H. Warfield: "Re: R: Do not use stock RedHat 6.0 kernels with SMBFS! [OFF-TOPIC]"