diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-01-01 18:56:46 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-02-04 08:21:03 -0500 |
commit | 4cd9d6f774c7e0578bbc4409d4490d8f2097d40a (patch) | |
tree | c910cfc0def573a681fe8c75e1e35abd93496151 /arch/arm/Kconfig | |
parent | ae9458d6a0956aa21cb49e1251e35a8d4dacbe6e (diff) |
[ARM] 4736/1: Export atags to userspace and allow kexec to use customised atags
Currently, the atags used by kexec are fixed to the ones originally used
to boot the kernel. This is less than ideal as changing the commandline,
initrd and other options would be a useful feature.
This patch exports the atags used for the current kernel to userspace
through an "atags" file in procfs. The presence of the file is
controlled by its own Kconfig option and cleans up several ifdef blocks
into a separate file. The tags for the new kernel are assumed to be at
a fixed location before the kernel image itself. The location of the
tags used to boot the original kernel is unimportant and no longer
saved.
Based on a patch from Uli Luckas <u.luckas@road.de>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Uli Luckas <u.luckas@road.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4b1a8e3d292c..4bd8952eef9a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -894,6 +894,13 @@ config KEXEC | |||
894 | initially work for you. It may help to enable device hotplugging | 894 | initially work for you. It may help to enable device hotplugging |
895 | support. | 895 | support. |
896 | 896 | ||
897 | config ATAGS_PROC | ||
898 | bool "Export atags in procfs" | ||
899 | default n | ||
900 | help | ||
901 | Should the atags used to boot the kernel be exported in an "atags" | ||
902 | file in procfs. Useful with kexec. | ||
903 | |||
897 | endmenu | 904 | endmenu |
898 | 905 | ||
899 | if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP || ARCH_IMX || ARCH_PXA) | 906 | if (ARCH_SA1100 || ARCH_INTEGRATOR || ARCH_OMAP || ARCH_IMX || ARCH_PXA) |