diff options
author | Borislav Petkov <bp@suse.de> | 2014-05-19 14:59:16 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-05-20 23:21:24 -0400 |
commit | 1b1ded57a4f2f4420b4de7c395d1b841d8b3c41a (patch) | |
tree | 1d532435cf6dbff969a3abc80457ae52d9c0a1e5 /arch/x86/include | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) |
x86, boot: Carve out early cmdline parsing function
Carve out early cmdline parsing function into .../lib/cmdline.c so it
can be used by early code in the kernel proper as well.
Adapted from arch/x86/boot/cmdline.c.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1400525957-11525-2-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/cmdline.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cmdline.h b/arch/x86/include/asm/cmdline.h new file mode 100644 index 000000000000..e01f7f7ccb0c --- /dev/null +++ b/arch/x86/include/asm/cmdline.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _ASM_X86_CMDLINE_H | ||
2 | #define _ASM_X86_CMDLINE_H | ||
3 | |||
4 | int cmdline_find_option_bool(const char *cmdline_ptr, const char *option); | ||
5 | |||
6 | #endif /* _ASM_X86_CMDLINE_H */ | ||