Subject: Re: -current panics
To: MLH <mlh@goathill.org>
From: Krister Walfridsson <cato@df.lth.se>
List: port-macppc
Date: 04/24/2004 21:59:47
On Tue, 20 Apr 2004, MLH wrote:

> (II) Loading sub module "int10"
> (II) LoadModule: "int10"
> (II) Loading /usr/X11R6/lib/modules/libint10.a
> (II) Module int10: vendor="The XFree86 Project"
>         compiled for 4.4.0, module version = 1.0.0
>         ABI class: XFree86 Video Driver, version 0.7
> (II) R128(0): initializing int10
>
> Fatal server error:
> xf86MapVidMem: could not mmap screen [s=20000,a=a0000] (Invalid argument)

It looks like you get the error when r128_driver.c is initializing
int10.  That code is protected by

  #if 1 && !defined(__alpha__)
      /* int10 is broken on some Alphas */

The usage of int10 later in the file is however protected by code

  #if defined(__powerpc__) || defined(__alpha__)
      /* Int10 is broken on PPC and some Alphas */
      code that does not use int10
  #else
      code that uses int10
  #endif

so it looks like int10 is not really needed...


So you might win by doing:

Index: r128_driver.c
===================================================================
RCS file: /cvsroot/xsrc/xfree/xc/programs/Xserver/hw/xfree86/drivers/ati/r128_driver.c,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 r128_driver.c
--- r128_driver.c       5 Mar 2004 14:28:38 -0000       1.1.1.7
+++ r128_driver.c       24 Apr 2004 19:40:35 -0000
@@ -1695,7 +1695,7 @@
 static Bool R128PreInitInt10(ScrnInfoPtr pScrn, xf86Int10InfoPtr *ppInt10)
 {
     R128InfoPtr   info = R128PTR(pScrn);
-#if 1 && !defined(__alpha__)
+#if !defined(__powerpc__) && !defined(__alpha__)
     /* int10 is broken on some Alphas */
     if (xf86LoadSubModule(pScrn, "int10")) {
        xf86LoaderReqSymLists(int10Symbols, NULL);


   /Krister