bios/dataflow: use freeze register
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 4 Aug 2012 21:39:29 +0000 (23:39 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 4 Aug 2012 21:39:29 +0000 (23:39 +0200)
software/bios/dataflow.c

index b3c64a2c8410a535cb4c20c79ce23a072ecc0e4e..d9aaa6ab23a8e4170c354e10caf212c1b828ec78 100644 (file)
@@ -19,9 +19,8 @@ void print_isd_info(unsigned int baseaddr)
        neps = regs[2];
        nbytes = (regs[3] + 7)/8;
        
-       // regs[4] is reset
-       
-       offset = 5;
+       regs[4] = 1; // freeze
+       offset = 6; // regs[5] is reset
        for(i=0;i<neps;i++) {
                ack_count = 0;
                for(j=0;j<nbytes;j++) {
@@ -39,4 +38,5 @@ void print_isd_info(unsigned int baseaddr)
                        cur_status & 1 ? "stb" : "   ",
                        cur_status & 2 ? "ack" : "   ");
        }
+       regs[4] = 0; // unfreeze
 }