Re: error_code asm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Brennan wrote:

error_code:
 pushl %ds
 pushl %eax
 xorl %eax, %eax
 pushl %ebp
 pushl %edi
 pushl %esi
 pushl %edx
 decl %eax   # eax = -1
 pushl %ecx
 pushl %ebx

My question is why the 'decl %eax' is 4 lines after the clearing of eax 'xorl %eax %eax'. Can't it just be put right after xorl?

It's for CPU pipeline optimization.

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux