Subversion Repositories freemyipod

Rev

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

Rev 171 Rev 172
Line 267... Line 267...
267
        resp = self.lib.monitorcommand(struct.pack("IIIIIIII", 19, nameptr, entrypoint, stackptr, stacksize, threadtype, priority, state), "III", (id, None, None))
267
        resp = self.lib.monitorcommand(struct.pack("IIIIIIII", 19, nameptr, entrypoint, stackptr, stacksize, threadtype, priority, state), "III", (id, None, None))
268
        if resp.id < 0:
268
        if resp.id < 0:
269
            raise DeviceError("The device returned the error code "+str(resp.id))
269
            raise DeviceError("The device returned the error code "+str(resp.id))
270
        return resp
270
        return resp
271
    
271
    
272
    def flushcpucache(self):
272
    def flushcaches(self):
273
        """ Flushes the CPU instruction and data cache """
273
        """ Flushes the CPU instruction and data cache """
274
        return self.lib.monitorcommand(struct.pack("IIII", 20, 0, 0, 0), "III", (None, None, None))
274
        return self.lib.monitorcommand(struct.pack("IIII", 20, 0, 0, 0), "III", (None, None, None))
275
    
275
    
276
    def run(self, addr):
276
    def execimage(self, addr):
277
        """ Runs the emBIOS app at 'addr' """
277
        """ Runs the emBIOS app at 'addr' """
278
        return self.lib.monitorcommand(struct.pack("IIII", 21, addr, 0, 0), "III", ("excecimage", None, None))
278
        return self.lib.monitorcommand(struct.pack("IIII", 21, addr, 0, 0), "III", ("excecimage", None, None))
279
    
279
    
280
    def bootflashread(self, memaddr, flashaddr, size):
280
    def bootflashread(self, memaddr, flashaddr, size):
281
        """ Copies the data in the bootflash at 'flashaddr' of the specified size
281
        """ Copies the data in the bootflash at 'flashaddr' of the specified size