On Mon, 25 Oct 2004, Gerd Knorr wrote:
> > I looked into this a while ago. What I found was that you have to add UML
> > to the exclude ifdef in CheckGenericGA() from xfree86/common/xf86Bus.c, and
> > also around all the iopl() and ioperm() exclude ifdefs in
> > xfree86/os_support/linux/linux_video.c.
> Well, a compile time option isn't that nice as you usually can run the
> very same binaries inside and outside the UML machine ...
> > I think it doesn't hurt to add Option "PciOsConfig" to the ServerFlags
> > section in the conf file.
> Yep, I think that's another issue that on i386 the X-Server might try to
> do PCI scans by directly banging on the hardware (for compatibility with
> kernels without /proc/bus/pci, which is pre-2.4 (or even pre-2.2?)).
/proc/bus/pci is 2.4, IIRC.
/proc/pci was 2.2 or 2.0.
> > +++ linux.new/drivers/char/vt.c Sun Aug 1 13:44:36 2003
> > int _kbd_rate(struct kbd_repeat *rep)
> Hmm, in 2.6 that doesn't exist any more, probably due to the linux input
> layer changes. How this is called from userspace, is this some ioctl?
| tux$ grep kbd_rep linux-2.6.9/drivers/char/*c
| linux-2.6.9/drivers/char/keyboard.c:int kbd_rate(struct kbd_repeat *rep)
| linux-2.6.9/drivers/char/vt_ioctl.c: struct kbd_repeat kbrep;
| linux-2.6.9/drivers/char/vt_ioctl.c: if (copy_from_user(&kbrep, up, sizeof(struct kbd_repeat)))
| linux-2.6.9/drivers/char/vt_ioctl.c: if (copy_to_user(up, &kbrep, sizeof(struct kbd_repeat)))
Keyboard rate has been controlled using an ioctl() since ages, but of course X
kept on banging the hardware...
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds