How to understand the comment of macro *compute_indices*?

carver carver.lio at hotmail.com
Mon Jul 13 19:54:04 EDT 2020


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



More information about the Kernelnewbies mailing list