sparc: Fix /proc/kcore
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2015 02:15:28 +0000 (19:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2015 02:15:28 +0000 (19:15 -0700)
commit3c08158e0ef5d6a2d4ae21d9eda218c468bc774f
tree624811cf9c565d1bc71f2debbac02b8fa1c00eb5
parent53eb2516972b8c4628651dfcb926cb9ef8b2864a
sparc: Fix /proc/kcore

/proc/kcore investigates the "System RAM" elements in /proc/iomem to
initialize it's memory tables.  Therefore we have to register them
before it tries to do so.  kcore uses device_initcall() so let's
use arch_initcall() for the registry.

Also we need ARCH_PROC_KCORE_TEXT to get the virtual addresses of
the kernel image correct.

Reported-by: David Ahern <david.ahern@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig
arch/sparc/mm/init_64.c