Subversion Repositories freemyipod

Rev

Rev 689 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 689 Rev 704
Line 373... Line 373...
373
    @command()
373
    @command()
374
    def getprocinfo(self):
374
    def getprocinfo(self):
375
        """ Gets current state of the scheduler """
375
        """ Gets current state of the scheduler """
376
        schedulerstate = self.lockscheduler()
376
        schedulerstate = self.lockscheduler()
377
        resp = self.lib.monitorcommand(struct.pack("<IIII", 15, 0, 0, 0), "III", ("structver", "structptr", None))
377
        resp = self.lib.monitorcommand(struct.pack("<IIII", 15, 0, 0, 0), "III", ("structver", "structptr", None))
378
        if resp.structver != 2:
378
        if resp.structver != 3:
379
            raise DeviceError("Unsupported thread struct version!")
379
            raise DeviceError("Unsupported thread struct version!")
380
        
380
        
381
        threads = []
381
        threads = []
382
        structptr = resp.structptr
382
        structptr = resp.structptr
383
        id = 0
383
        id = 0
Line 1143... Line 1143...
1143
        emcore.free(addr)
1143
        emcore.free(addr)
1144
        logger.write("Allocating 1000 bytes of memory aligned to 100 bytes: ")
1144
        logger.write("Allocating 1000 bytes of memory aligned to 100 bytes: ")
1145
        addr = emcore.memalign(100, 1000)
1145
        addr = emcore.memalign(100, 1000)
1146
        logger.write("0x%X\n" % addr)
1146
        logger.write("0x%X\n" % addr)
1147
        logger.write("Freeing 0x%X\n" % addr)
1147
        logger.write("Freeing 0x%X\n" % addr)
1148
        emcore.free(addr)
-
 
1149
1148
        emcore.free(addr)
-
 
1149