hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl
[linux/fpc-iii.git] / arch / x86 / boot / compressed / cmdline.c
blobbffd73b45b1f27a4dc6cdd2ab6ee5451cd1bbd0d
1 #include "misc.h"
3 #ifdef CONFIG_EARLY_PRINTK
5 static unsigned long fs;
6 static inline void set_fs(unsigned long seg)
8 fs = seg << 4; /* shift it back */
10 typedef unsigned long addr_t;
11 static inline char rdfs8(addr_t addr)
13 return *((char *)(fs + addr));
15 #include "../cmdline.c"
16 static unsigned long get_cmd_line_ptr(void)
18 unsigned long cmd_line_ptr = real_mode->hdr.cmd_line_ptr;
20 cmd_line_ptr |= (u64)real_mode->ext_cmd_line_ptr << 32;
22 return cmd_line_ptr;
24 int cmdline_find_option(const char *option, char *buffer, int bufsize)
26 return __cmdline_find_option(get_cmd_line_ptr(), option, buffer, bufsize);
28 int cmdline_find_option_bool(const char *option)
30 return __cmdline_find_option_bool(get_cmd_line_ptr(), option);
33 #endif