Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: wj_nwpu@163.com (wangjun)
To: linux-arm-kernel@lists.infradead.org
Subject: about arm_add_memory
Date: Tue, 11 Jan 2011 22:19:56 +0800 (CST)	[thread overview]
Message-ID: <7ce5e8c1.b773.12d757289fc.Coremail.wj_nwpu@163.com> (raw)

in  /arch/arm/kernel/setup.c


static int __init arm_add_memory(unsigned long start, unsigned long size)
...
size -= start & ~PAGE_MASK;
bank->start = PAGE_ALIGN(start);
bank->size  = size & PAGE_MASK;
bank->node  = PHYS_TO_NID(start);
.....

what   size -= start & ~PAGE_MASK  to do ?
thanks!













-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110111/92fda902/attachment-0001.html>

             reply	other threads:[~2011-01-11 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11 14:19 wangjun [this message]
2011-01-16 18:39 ` about arm_add_memory Dave Hylands

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=7ce5e8c1.b773.12d757289fc.Coremail.wj_nwpu@163.com \
    --to=wj_nwpu@163.com \
    --cc=linux-arm-kernel@lists.infradead.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