On Sat, 18 Dec 2004, ASIF IQBAL wrote:
Marc later I identified it and confirmed that ther was no issue with write of 0x7c. In the meantime I was going through the PCI code of XFree86 file "sparcPci.c" in function sparcPciInit (). I came across the following expression for mapping the PCI aperture memory. There seems to be some type mismatch for the fourth parameter.

        domain.pci = (char *)sparcMapAperture(-1, VIDMEM_MMIO,
            pci_addr + PCI_MAKE_TAG(domain.bus_min, 0, 0),
            PCI_MAKE_TAG(domain.bus_max - domain.bus_min + 1, 0, 0)) -
            PCI_MAKE_TAG(domain.bus_min, 0, 0);

ie there seems to be one extra bracket closed before the "-". Is this the way the final expreessions needs to be. I am not sure. Can you look into it. PCI_MAKE_TAG(domain.bus_max - domain.bus_min + 1, 0, 0)) -
^
That not-so-extra parenthesis ends the arguments to be passed to sparcMapAperture().


Another Issue that I came across was that printing using xf86MsgVerb behaves abnormally. I am having this issue whne I have more than one prameter for xf86MsgVerb. Trying to do folloiwng has issue.
     data1 = 0x0;
     data2 = 0x2000000;
     xf86MsgVerb ("Value data1 = 0x%x data2 = 0x%x \n", data1, data2)

Look at the prototype for that function in common/xf86.h.

Marc.

+----------------------------------+-----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310           |
|  Computing and Network Services  |  fax:    1-780-492-1729           |
|  352 General Services Building   |  email:  [EMAIL PROTECTED]          |
|  University of Alberta           +-----------------------------------+
|  Edmonton, Alberta               |                                   |
|  T6G 2H1                         |     Standard disclaimers apply    |
|  CANADA                          |                                   |
+----------------------------------+-----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to