On Wed, Dec 14, 2005 at 10:44:27AM -0500, Stephen C. Tweedie wrote:
> Hi,
>
> On Tue, 2005-12-13 at 19:34 -0800, Christian Limpach wrote:
>
> > I've changed the set_pte_at and set_pte_at_sync inline functions to be
> > macros. This way, init_mm only needs to be defined where these macros
> > are used.
> > Does this fix all the errors you're seeing?
>
> It's still failing for kernel/power/main.c, which depends on CONFIG_PM.
> Now, which parts of CONFIG_PM are safe under Xen is another question ---
> the right answer here may well be to add a "depends !XEN" to CONFIG_PM.
> But with it enabled I still get
I've fixed this one now by making write_ldt_entry a proper function
instead of an inline function. This avoids having pgtable.h and
sched.h included from desc.h.
christian
>
> CC kernel/power/main.o
> In file included from include/asm/suspend.h:6,
> from include/linux/suspend.h:5,
> from kernel/power/main.c:11:
> include/asm/mach-xen/asm/desc.h: In function ???write_ldt_entry???:
> include/asm/mach-xen/asm/desc.h:103: error: ???init_mm??? undeclared (first
> use in this function)
> include/asm/mach-xen/asm/desc.h:103: error: (Each undeclared identifier is
> reported only once
> include/asm/mach-xen/asm/desc.h:103: error: for each function it appears in.)
>
> with the macro fix. I'm using the PM config options:
>
> # Power management options (ACPI, APM)
> CONFIG_PM=y
> CONFIG_X86_PM_TIMER=y
> CONFIG_ACPI_POWER=y
>
> for now --- I really want to be able to run a dom0 on my laptop, even if
> the cpufreq governer gets a little confused about time spent in a domU.
> It certainly builds and boots fine with the PM options enabled, as long
> as I include linux/sched.h in the pgtable*.h files.
>
> Cheers,
> Stephen
>
>
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|