Re: memory consumed by kernel

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

 



Hi Arun,

>        i = virt_to_phys(0xc0000000);
>        i >>= PAGE_SHIFT;

I just thought I'd point out that not all kernels start at 0xc000000.
I've worked with MIPS kernels that start at 0x80000000

0xc0000000 is pretty common, but not gospel. Perhaps you should use
CONFIG_PAGE_OFFSET instead.

It also appears that CONFIG_PAGE_OFFSET can move around even on ARM
and x86, if other options like CONFIG_VMSPLIT_2G is defined (linux
2.6.34).

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[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