x86, boot: Carve out early cmdline parsing function
authorBorislav Petkov <bp@suse.de>
Mon, 19 May 2014 18:59:16 +0000 (20:59 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 7 Jan 2018 01:46:51 +0000 (01:46 +0000)
commitcbc1d40044e0104bb4be32d6f9336bdc58a3d0ff
treea165241cae4624e5d36a0ffc8bf13894281b454e
parentc1d23a9da91c884a7cb13a5c238ac279f3635c58
x86, boot: Carve out early cmdline parsing function

commit 1b1ded57a4f2f4420b4de7c395d1b841d8b3c41a upstream.

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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/include/asm/cmdline.h [new file with mode: 0644]
arch/x86/lib/Makefile
arch/x86/lib/cmdline.c [new file with mode: 0644]