about arm_add_memory

wangjun wj_nwpu at 163.com
Tue Jan 11 09:19:56 EST 2011


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>


More information about the linux-arm-kernel mailing list