kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: carver <carver.lio@hotmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: How to understand the comment of macro *compute_indices*?
Date: Tue, 14 Jul 2020 07:54:04 +0800	[thread overview]
Message-ID: <KL1PR03MB49840A52005FD59C2D2FE6999A600@KL1PR03MB4984.apcprd03.prod.outlook.com> (raw)

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@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2020-07-13 23:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-13 23:54 carver [this message]
2020-07-14  2:21 ` How to understand the comment of macro *compute_indices*? Valdis Klētnieks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=KL1PR03MB49840A52005FD59C2D2FE6999A600@KL1PR03MB4984.apcprd03.prod.outlook.com \
    --to=carver.lio@hotmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).