]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Double words solved
authorhades <hades>
Sat, 27 May 2000 16:56:34 +0000 (16:56 +0000)
committerhades <hades>
Sat, 27 May 2000 16:56:34 +0000 (16:56 +0000)
hadaq/hwtip.c

index fc34e9956dc06981a44025c2602edfd164b28aa2..4cd14ca202986341e4d8d3a205f26792f5772cd1 100644 (file)
@@ -28,11 +28,28 @@ void sigbusHandler(int sig)
 
 static LVme_L berrGetL(LVme * my, unsigned long offset)
 {
-       LVme_L retVal;
+       volatile LVme_L retVal;
+       static LVme_L oldWord = 0xffffffff;
+       static LVme_L oldOff = 0xffffffff;
+
        do {
                ourVmeAccessOK = 1;
                retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
+               retVal = LVme_getL(my, offset);
        } while (!ourVmeAccessOK);
+       if (oldOff != offset && oldWord == retVal) {
+               msglog(LOG_ERR, "wird twice: 0x%08x on 0x%08x\n", retVal, offset);
+       }
+       oldOff = offset;
+       oldWord = retVal;
        return retVal;
 }