Index: embios/trunk/tools/libembios.py |
— | — | @@ -772,37 +772,37 @@ |
773 | 773 |
|
774 | 774 | retval[process_n]['regs'] = struct.unpack("<IIIIIIIIIIIIIIII", processinfo[ptr:ptr + 64])
|
775 | 775 | ptr += 16 * 0x4
|
776 | | - retval[process_n]['cpsr'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 776 | + retval[process_n]['cpsr'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
777 | 777 | ptr += 1 * 0x4
|
778 | | - retval[process_n]['state'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 778 | + retval[process_n]['state'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
779 | 779 | ptr += 1 * 0x4
|
780 | | - retval[process_n]['name_ptr'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 780 | + retval[process_n]['name_ptr'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
781 | 781 | ptr += 1 * 0x4
|
782 | | - retval[process_n]['cputime_current'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 782 | + retval[process_n]['cputime_current'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
783 | 783 | ptr += 1 * 0x4
|
784 | 784 | retval[process_n]['cputime_total'] = struct.unpack("<Q", processinfo[ptr:ptr + 8])[0]
|
785 | 785 | ptr += 1 * 0x8
|
786 | | - retval[process_n]['startusec'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 786 | + retval[process_n]['startusec'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
787 | 787 | ptr += 1 * 0x4
|
788 | | - retval[process_n]['queue_next_ptr'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 788 | + retval[process_n]['queue_next_ptr'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
789 | 789 | ptr += 1 * 0x4
|
790 | | - retval[process_n]['timeout'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 790 | + retval[process_n]['timeout'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
791 | 791 | ptr += 1 * 0x4
|
792 | | - retval[process_n]['blocked_since'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 792 | + retval[process_n]['blocked_since'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
793 | 793 | ptr += 1 * 0x4
|
794 | | - retval[process_n]['blocked_by_ptr'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 794 | + retval[process_n]['blocked_by_ptr'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
795 | 795 | ptr += 1 * 0x4
|
796 | | - retval[process_n]['stack_ptr'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 796 | + retval[process_n]['stack_ptr'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
797 | 797 | ptr += 1 * 0x4
|
798 | | - retval[process_n]['err_no'] = struct.unpack("<I", processinfo[ptr:ptr + 4])[0]
|
| 798 | + retval[process_n]['err_no'] = int(struct.unpack("<I", processinfo[ptr:ptr + 4])[0])
|
799 | 799 | ptr += 1 * 0x4
|
800 | | - retval[process_n]['block_type'] = struct.unpack("<B", processinfo[ptr:ptr + 1])[0]
|
| 800 | + retval[process_n]['block_type'] = int(struct.unpack("<B", processinfo[ptr:ptr + 1])[0])
|
801 | 801 | ptr += 1 * 0x1
|
802 | | - retval[process_n]['thread_type'] = struct.unpack("<B", processinfo[ptr:ptr + 1])[0]
|
| 802 | + retval[process_n]['thread_type'] = int(struct.unpack("<B", processinfo[ptr:ptr + 1])[0])
|
803 | 803 | ptr += 1 * 0x1
|
804 | | - retval[process_n]['priority'] = struct.unpack("<B", processinfo[ptr:ptr + 1])[0]
|
| 804 | + retval[process_n]['priority'] = int(struct.unpack("<B", processinfo[ptr:ptr + 1])[0])
|
805 | 805 | ptr += 1 * 0x1
|
806 | | - retval[process_n]['cpuload'] = struct.unpack("<B", processinfo[ptr:ptr + 1])[0]
|
| 806 | + retval[process_n]['cpuload'] = int(struct.unpack("<B", processinfo[ptr:ptr + 1])[0])
|
807 | 807 | ptr += 1 * 0x1
|
808 | 808 |
|
809 | 809 | process_n += 1
|