How to understand the comment of macro *compute_indices*?

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

 



Hello,

Macro *compute_indices* in arch/arm64/kernel/head.S have a comment
as shown below:
	mov     \istart, \ptrs
	mul     \istart, \istart, \count
	add     \iend, \iend, \istart   // iend += (count - 1) * ptrs

I am wondering whether this comment should be change to 
"iend += count * ptrs".

Or am I misunderstanding this code?

Thanks

-Lio

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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