[PARPORT] Patch[linux-2.4.2] Parport+ACPI+PNPBIOS V0.02

From: Gunther Mayer (Gunther.Mayer@t-online.de)
Date: Sun Mar 11 2001 - 17:16:08 EST

  • Next message: Tim Waugh: "Re: [PARPORT] Syjet"

    Hi, this fixes:
    - irq 7 misdetect (as 15)
    - /proc/bus/pnp enable
    - acpi export-obj

    HELP needed: per Alan's request we should get rid of
    the APM GDT hack. But this isn't as easy as below.
    This hangs on insmod pnpbios!
    Perhaps GDT isn't free from 0x60 !?

    Regards, Gunther

    P.S.
    1st try to get rid of APM GDT hack:

    --- pnp_bios.c-orig Sun Mar 11 23:07:45 2001
    +++ pnp_bios.c Sun Mar 11 23:08:06 2001
    @@ -91,7 +91,7 @@
     static union pnpbios * pnp_bios_inst_struc = NULL;
     
     /* The PnP entries in the GDT */
    -#define PNP_GDT 0x0038
    +#define PNP_GDT 0x0060
     #define PNP_CS32 (PNP_GDT+0x00) /* segment for calling fn */
     #define PNP_CS16 (PNP_GDT+0x08) /* code segment for bios */
     #define PNP_DS (PNP_GDT+0x10) /* data segment for bios */

    AND

    --- linux-2.4.2-orig/arch/i386/kernel/head.S Tue Feb 27 20:30:41 2001
    +++ linux/arch/i386/kernel/head.S Sun Mar 11 22:31:06 2001
    @@ -464,6 +464,13 @@
            .quad 0x00409a0000000000 /* 0x48 APM CS code */
            .quad 0x00009a0000000000 /* 0x50 APM CS 16 code (16 bit) */
            .quad 0x0040920000000000 /* 0x58 APM DS data */
    +
    + /* PNPBIOS segments */
    + .quad 0x00c09a0000000000 /* 0x60 32-bit code */
    + .quad 0x00809a0000000000 /* 16-bit code */
    + .quad 0x0080920000000000 /* 16-bit data */
    + .quad 0x0080920000000000 /* 16-bit data */
    + .quad 0x0080920000000000 /* 0x80 16-bit data */
            .fill NR_CPUS*4,8,0 /* space for TSS's and LDT's */

     /*

    And


    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Sun Mar 11 2001 - 17:20:35 EST