|
这一段代码应该就是探测GPT分区的.
- cmpb $0xee, 4(%esi)
- jne 100f
- movl $1,%eax
- call 101f
- testl %eax, %eax
- jz 9f
- movl $PART_TABLE_TMPBUF,%esi
- cmpl $0x20494645,(%esi)
- jne 9f
- movl 72(%esi),%eax
- movl %eax,PART_TABLE_BUF + 0xC
- 110:
- movl PART_TABLE_BUF + 0xC,%eax
- incl PART_TABLE_BUF + 0xC
- call 101f
- testl %eax, %eax
- jz 9f
- movl $PART_TABLE_TMPBUF,%esi
- movl $3,%ecx
- 111:
- movl 32(%esi),%eax
- testl %eax,%eax
- jz 9f
- stosl
- subl %eax,40(%esi)
- movl 40(%esi),%eax
- stosl
- xorb %al,%al
- stosb
- movb $0xee,%al
- stosb
- incb -4(%ebp)
- movl -4(%ebp), %eax
- stosw
- xorl %eax,%eax
- stosl
- addl $0x80,%esi
- loop 111b
- jmp 110b
复制代码 |
|