| Yinghai Lu | 8fee13a | 2010-08-02 16:21:22 -0700 | [diff] [blame] | 1 | #include "misc.h" | 
|  | 2 |  | 
| Gokul Caushik | bd448d4 | 2012-07-19 18:04:42 -0700 | [diff] [blame] | 3 | #ifdef CONFIG_EARLY_PRINTK | 
|  | 4 |  | 
| Yinghai Lu | 8fee13a | 2010-08-02 16:21:22 -0700 | [diff] [blame] | 5 | static unsigned long fs; | 
|  | 6 | static inline void set_fs(unsigned long seg) | 
|  | 7 | { | 
|  | 8 | fs = seg << 4;  /* shift it back */ | 
|  | 9 | } | 
|  | 10 | typedef unsigned long addr_t; | 
|  | 11 | static inline char rdfs8(addr_t addr) | 
|  | 12 | { | 
|  | 13 | return *((char *)(fs + addr)); | 
|  | 14 | } | 
|  | 15 | #include "../cmdline.c" | 
|  | 16 | int cmdline_find_option(const char *option, char *buffer, int bufsize) | 
|  | 17 | { | 
|  | 18 | return __cmdline_find_option(real_mode->hdr.cmd_line_ptr, option, buffer, bufsize); | 
|  | 19 | } | 
|  | 20 | int cmdline_find_option_bool(const char *option) | 
|  | 21 | { | 
|  | 22 | return __cmdline_find_option_bool(real_mode->hdr.cmd_line_ptr, option); | 
|  | 23 | } | 
| Gokul Caushik | bd448d4 | 2012-07-19 18:04:42 -0700 | [diff] [blame] | 24 |  | 
|  | 25 | #endif |