]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg/counter.c
Wkesden in grubload
[netwatch.git] / aseg / counter.c
index 2b1d6ead45c953b80326be92bd7d8294a4ff62e4..d52316843f1c2f41b4459ff3b33548c251a91d8f 100644 (file)
@@ -19,7 +19,7 @@ void pci_dump() {
        cts = inl(0x84C);
        
        outl(0x848, 0x0);
-       
+       outl(0x840, 0x0);
        switch(cts&0xF0000)
        {
        case 0x20000:
@@ -52,6 +52,9 @@ void pci_dump() {
        default:
                dolog("Unhandled PCI cycle");
        }
+       
+       outl(0x848, 0x1000);
+       outl(0x840, 0x0100);
 }
 
 void __start (void)
@@ -82,15 +85,13 @@ void __start (void)
                if (inl(0x844) & 0x1000)        /* devact_sts */
                {
                        pci_dump();
-                       outl(0x848, 0x1000);
-                       outl(0x844, 0x1000);
+                       outl(0x844, 0x1000);    /* ack it */
                }
        }
        if (inl(0x834) & 0x4000)
                dolog("Long periodic timer");
        if (inl(0x840) & 0x1000)
        {
-               dolog("Caught device monitor trap");
                pci_dump();
                outl(0x840, 0x1100);
                outl(0x840, 0x0100);
This page took 0.024163 seconds and 4 git commands to generate.