Commit Graph

2578 Commits

Author SHA1 Message Date
Matthias Hopf
9ded9241ba Fix obviously wrong boundary checks + cleanup unused vars.
Also disable compilation of code that is no longer used anywhere in the whole
Xserver tree.
(cherry picked from 072c022e73 commit)
2006-11-10 15:04:57 -05:00
Matthias Hopf
f816eafa51 Fix device path in altixPCI.c to be domain aware.
(cherry picked from d50fc413b3 commit)
2006-11-10 15:04:51 -05:00
Matthias Hopf
6d56600c0c Add domain support to linuxPciOpenFile().
Loosely based on patch from David S. Miller <davem@davemloft.net>
See also bug #2368.
(cherry picked from 1d731fc54a commit)
2006-11-10 15:04:42 -05:00
Matthias Hopf
dbe3e8d604 Fixing domain support for ia64
ia64 specific functions + defines.
Still uses /proc interface for some scaning code.
Based on code from Egbert Eich <eich@freedesktop.org>.
(cherry picked from caaa113acf commit)
2006-11-10 15:04:34 -05:00
Matthias Hopf
5ab79d69e3 Added linux 2.6 compatible domain aware device scanning code.
Additional scanning code uses the /sys interface of 2.6 kernels.
Cleaned up the use of tags and already split domain/bus/dev/fn.
(cherry picked from 5afc6c1a14 commit)
2006-11-10 15:04:24 -05:00
Egbert Eich
a334197181 Make int10 fully domain aware.
(cherry picked from 6319f7d713 commit)
2006-11-10 15:04:17 -05:00
Matthias Hopf
bb8f02dbea Added missing domain stripping in already domain aware code.
(cherry picked from f4dd2665b0 commit)
2006-11-10 15:04:12 -05:00
Adam Jackson
216bccb00c 'make dist' fixes.
(cherry picked from 0409e1627a commit)
2006-11-08 16:17:38 -05:00
Adam Jackson
b07d79614d Bug #6786: Use separate defines for server's Fixes support level.
(cherry picked from 7e0aeebb8f commit)
2006-11-08 12:04:19 -05:00
Daniel Stone
648116bcb8 os: fix sun extensions test
'else if' is not very valid, plus the logic is kind of broken, so just
move it outside the ifdef in the first place.
(cherry picked from b6d7b537ed commit)
2006-11-08 18:36:01 +02:00
Alan Coopersmith
161a278afc Make _POSIX_C_SOURCE hack work with Solaris headers
Solaris headers are very literal - if you ask for POSIX_C_SOURCE 199309L,
they limit to only the functions in that standard and no more, unless you
also specify __EXTENSIONS__ to allow functions beyond the standard base.
(cherry picked from a2434ec5f3 commit)
2006-11-08 18:35:57 +02:00
Daniel Stone
ad6e3994c7 GetTimeInMillis: use correct units for clock_gettime
Make sure we're treating the nanoseconds as a long, not an int, so we
don't overflow.
(cherry picked from 68f595ca6c commit)
2006-11-08 18:35:52 +02:00
Daniel Stone
273eb52974 GetTimeInMillis: simplify monotonic test
We don't actually need to get the CPU clock ID, which means we don't need
the monotonic_usable test.  Since there's now only one branch, the
compiler will treat that as likely, so we don't need xproto 7.0.9 anymore.

The fallthrough to gettimeofday() is preserved.
(cherry picked from 004d00e668 commit)
2006-11-08 18:35:47 +02:00
Daniel Stone
b0f0f4bcb6 GetTimeInMillis: spuport monotonic clock
Add support for CLOCK_MONOTONIC from clock_gettime, and use that in
GetTimeInMillis() if available, falling back to the old gettimeofday()
implementation.

This is _slightly_ faster on some 64-bit architectures, and _slightly_
slower on others (though barely measurable).
(cherry picked from d285833290 commit)
2006-11-08 18:35:42 +02:00
Daniel Stone
bb7a39ac13 WaitForSomething: only rewind when delta is more than 250ms
Only rewind time when we're more than (original delta + 250ms) away from
executing the timer.
When we're walking the timer list, use a goto to iterate all of them from
the start again, since timers may drop out of the list.
Don't bother trying to be smart in TimerSet, we'll pick it up in
WaitForSomething anyway.
(cherry picked from 51a06b3c44 commit)
2006-11-08 18:34:49 +02:00
Daniel Stone
8d3b465eb3 WaitForSomething: allow time to rewind
If time rewinds dramatically, reset all the timers to fix their expiry.
(cherry picked from d3e57faffe commit)
2006-11-08 18:34:43 +02:00
Rich Coe
22bccea8dc CheckConnections: don't close down the server client (bug #7876)
When an appgroup is shutting down, the list of clients can change, so make
sure we're not trying to shut the server down.
(cherry picked from b5d09d4adb commit)
2006-11-08 18:10:40 +02:00
Bram Verweij
be91a981df xfree86/linux acpi: fix tokenising
Split on a space, rather on the 'video' string, as strtok takes a char,
not a string.
(cherry picked from 0567a6337b commit)
2006-11-08 18:10:40 +02:00
Daniel Stone
66b2c9bd2d add 'general socket' handler, port ACPI to use it
Add a general socket (not input device, but still need to be woken for it)
handler to both the DIX and XFree86, and make XFree86's ACPI handling use
it.  This stops DPMS waking up every time an ACPI notification comes in.
2006-11-08 18:10:40 +02:00
Bjorn Helgaas
58653b676d Do not map full 0-1MB legacy range
If we're mapping something in the "legacy range" (0-1Mb), we shouldn't
expand the requested range to the entire 0-1Mb range.  Typically this
is for mapping the VGA frame buffer, and some platforms support mmap of
the frame buffer but not the entire 0-1Mb range.

For example, HP sx1000 and sx2000 ia64 platforms can have memory from
0-0x9ffff, VGA frame buffer from 0xa0000-0xbffff, and memory from
0xc0000-0xfffff.  On these platforms, we can't map the entire 0-1Mb
range with the same attribute because the memory only supports WB,
while the frame buffer supports only UC.  But an mmap of just the
frame buffer should work fine.
(cherry picked from bd0c829654 commit)
2006-11-08 10:18:51 -05:00
Egbert Eich
93ae22b16b Fixing mach64 driver bailing out on ia64
Mach64 driver bails out on ia64 because it cannot map device
memory. It turns out that some bogus and unneeded code attempts
to find the root bridge of the device and fails to do so proberly
as there this host-to-pci bridge is not existant. This code has
been around for years although it completely unclear what it had
been intended for. Fixing this by eliminating the bogus code.
(cherry picked from c1828a8ff5 commit)
2006-11-08 10:17:58 -05:00
Matthias Hopf
816b95be37 Build with -D_PC on ix86 only.
(cherry picked from 46901063e8 commit)
2006-11-08 10:17:37 -05:00
Aaron Plattner
c969c7e10c Fix standard VESA modes.
The built-in mode timings were off slightly for the 640x480@60, 640x480@72,
and 1024x768@75 modes.
(cherry picked from 97fd471a62 commit)
2006-11-08 09:56:23 -05:00
Myron Stowe
267dc25e5c xfree86: re-enable chipset-specific drivers for Linux/ia64
Re-enable chipset-specific support for Linux/ia64, by linking in
lnx_ia64.c.
(cherry picked from 794f2e7291 commit)
2006-11-08 09:53:33 -05:00
Laurence Withers
00a1e648ef CreateColormap: fix return value (bug #7083)
Return BadMatch when an unsupported visual type is given, not BadValue --
this is correct according to the spec.
(cherry picked from af606f9dab4d51724b4be6f43f1de7b3342c443a commit)
2006-11-08 15:37:01 +02:00
Erik Andren
b94e320205 remove XFree86 changelogs (bug #7262)
Without being able to tie these to specific commits, the text changelog is
useless, as well as being huge.
(cherry picked from 430411ae07ad74662e22da70563f757a931c72b9 commit)
2006-11-08 15:37:01 +02:00
Eamon Walsh
c9ff47033e Bug #8937: Extension setup functions not called on server resets
(cherry picked from 5e946dd853 commit)
2006-11-07 13:55:44 -05:00
Eamon Walsh
e6778fee47 More work on Bug #8875: revert previous fix and try using client argument
instead of serverClient.  Also don't use totalClientSize as it is not
initialized until after the first call to InitClient
(cherry picked from 3d39c02fe6 commit)
2006-11-06 21:31:21 -05:00
Eamon Walsh
3e39bae79f whitespace adjust
(cherry picked from 75fe0670eb1f71144246f1c20759d5878bbee00 commit)
2006-11-06 15:39:06 -05:00
Eamon Walsh
dca5274920 Bug #8875: Security extension causes Xorg to core dump on server reset
(cherry picked from 0539d9cf24 commit)
2006-11-06 15:37:50 -05:00
Alan Coopersmith
19a4be9bf3 If getpeerucred() is available, include pid & zoneid in audit messages too
(cherry picked from a7b944f0d9 commit)
2006-11-03 13:50:33 -08:00
Alan Coopersmith
bc6f95af33 Bug #1997: AUDIT messages should contain uid for local accesses
<https://bugs.freedesktop.org/show_bug.cgi?id=1997>
(cherry picked from fbfb35189e commit)
2006-11-03 13:50:22 -08:00
Alan Coopersmith
f1ef85689a Fix automake error: BUILT_SOURCES was defined multiple times on Solaris
(cherry picked from c03311a1e7 commit)
2006-11-03 13:13:38 -08:00
Matthieu Herrb
00e8237839 Handle building in a separate objdir
(cherry picked from 645d057620 commit)
2006-10-29 18:20:19 +01:00
Matthieu Herrb
dabf032853 kill GNU-make'ism.
(cherry picked from 59584c375f commit)
2006-10-29 17:50:25 +01:00
Daniel Stone
e9fb258d09 Revert "GetTimeInMillis: spuport monotonic clock"
This reverts d04e2545a7 commit.
2006-10-26 01:10:42 +03:00
Daniel Stone
8ce4846b4d Revert "WaitForSomething: allow time to rewind"
This reverts dfac36e56a commit.
2006-10-26 01:10:30 +03:00
Daniel Stone
dfac36e56a WaitForSomething: allow time to rewind
If time rewinds dramatically, reset all the timers to fix their expiry.
(cherry picked from d3e57faffe commit)
2006-10-26 00:25:38 +03:00
Daniel Stone
d04e2545a7 GetTimeInMillis: spuport monotonic clock
Add support for CLOCK_MONOTONIC from clock_gettime, and use that in
GetTimeInMillis() if available, falling back to the old gettimeofday()
implementation.

This is _slightly_ faster on some 64-bit architectures, and _slightly_
slower on others (though barely measurable).
(cherry picked from d285833290 commit)
2006-10-26 00:25:34 +03:00
Michel Dänzer
d12d0839fd Fix test for Option "IgnoreABI".
This option has plenty of potential for wasting the time of bug triagers
without pretending it's always on.
(cherry picked from becbda6d51 commit)
2006-10-25 11:41:20 +02:00
Joshua Baergen
6e73c87c53 Create xorg.conf.example (Gentoo bug #138623).
(cherry picked from 62d2409793 commit)
2006-10-24 09:18:41 -07:00
Michel Dänzer
1ab7fe38df Fix __glXDRIbindTexImage() for 32 bpp on big endian platforms.
(cherry picked from 3ad1642f1b commit)
2006-10-21 13:30:14 +02:00
Alan Coopersmith
fe32a0eb9f Pre-release message should tell users to check git, not CVS, for updates
(cherry picked from e1dd1904c6 commit)
2006-10-19 14:28:12 -07:00
Alan Coopersmith
f6920869d9 Use getisax() instead of asm code to determine available x86 ISA extensions on Solaris
(cherry picked from 357b37b382 commit)
2006-10-18 18:11:57 -07:00
Alan Hourihane
a935222f93 Small modification to blocking signals when switching modes.
(cherry picked from d430e76a16 commit)
2006-10-16 12:39:38 +01:00
Alan Coopersmith
180e1bc979 Make sure xorgcfg files are included even when dist made with --disable-xorgcfg
(cherry picked from b9108a13fc commit)
2006-10-13 19:06:19 -07:00
Adam Jackson
3c70fda04c Bump to 1.1.99.901 2006-10-13 19:04:35 -04:00
Alan Hourihane
7a995802b3 Block IO on switchmode just as we do for VT switching
to avoid cursor movements signalling io.
(cherry picked from cf948b7b04 commit)
2006-10-13 14:50:33 +01:00
Ian Romanick
4702375764 Fix bug #8608.
Regenerate files based on recent commits to Mesa (that fix Mesa bug
that return pixel data.
(cherry picked from a6df780e4d commit)
2006-10-11 15:42:02 -07:00
Daniel Stone
4b5ca6b3df symlink-mesa.sh: expand *.{c,h}
(cherry picked from d7c89c7c1c commit)
2006-10-11 16:02:41 -04:00