diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 21:20:47 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 21:20:47 +0400 |
commit | a417fb99dea8ee47e72060fb36e5f3ff4ea54a5b (patch) | |
tree | 788cf90966768c270db150f06917728937150da4 /arch/x86/boot/compressed/cmdline.c | |
parent | 9faa1e5942fd647b0dd2fbbdcc04988841cacaf3 (diff) | |
parent | 6238b47b58480cd9c092600c05338dbe261b71ce (diff) | |
download | linux-a417fb99dea8ee47e72060fb36e5f3ff4ea54a5b.tar.xz |
Merge branch 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86, setup: move isdigit.h to ctype.h, header files on top.
x86, setup: enable early console output from the decompressor
x86, setup: reorganize the early console setup
x86, setup: Allow global variables and functions in the decompressor
x86, setup: Only set early_serial_base after port is initialized
x86, setup: Make the setup code also accept console=uart8250
x86, setup: Early-boot serial I/O support
Diffstat (limited to 'arch/x86/boot/compressed/cmdline.c')
-rw-r--r-- | arch/x86/boot/compressed/cmdline.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/cmdline.c b/arch/x86/boot/compressed/cmdline.c new file mode 100644 index 000000000000..cb62f786990d --- /dev/null +++ b/arch/x86/boot/compressed/cmdline.c @@ -0,0 +1,21 @@ +#include "misc.h" + +static unsigned long fs; +static inline void set_fs(unsigned long seg) +{ + fs = seg << 4; /* shift it back */ +} +typedef unsigned long addr_t; +static inline char rdfs8(addr_t addr) +{ + return *((char *)(fs + addr)); +} +#include "../cmdline.c" +int cmdline_find_option(const char *option, char *buffer, int bufsize) +{ + return __cmdline_find_option(real_mode->hdr.cmd_line_ptr, option, buffer, bufsize); +} +int cmdline_find_option_bool(const char *option) +{ + return __cmdline_find_option_bool(real_mode->hdr.cmd_line_ptr, option); +} |