diff options
Diffstat (limited to 'arch/x86/boot/boot.h')
-rw-r--r-- | arch/x86/boot/boot.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index 46c4c5c71af7..00cf51cfc2e6 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h | |||
@@ -200,21 +200,7 @@ static inline int memcmp_gs(const void *s1, addr_t s2, size_t len) | |||
200 | return diff; | 200 | return diff; |
201 | } | 201 | } |
202 | 202 | ||
203 | static inline int isdigit(int ch) | 203 | #include "isdigit.h" |
204 | { | ||
205 | return (ch >= '0') && (ch <= '9'); | ||
206 | } | ||
207 | |||
208 | static inline int isxdigit(int ch) | ||
209 | { | ||
210 | if (isdigit(ch)) | ||
211 | return true; | ||
212 | |||
213 | if ((ch >= 'a') && (ch <= 'f')) | ||
214 | return true; | ||
215 | |||
216 | return (ch >= 'A') && (ch <= 'F'); | ||
217 | } | ||
218 | 204 | ||
219 | /* Heap -- available for dynamic lists. */ | 205 | /* Heap -- available for dynamic lists. */ |
220 | extern char _end[]; | 206 | extern char _end[]; |
@@ -300,8 +286,18 @@ struct biosregs { | |||
300 | void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg); | 286 | void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg); |
301 | 287 | ||
302 | /* cmdline.c */ | 288 | /* cmdline.c */ |
303 | int cmdline_find_option(const char *option, char *buffer, int bufsize); | 289 | int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int bufsize); |
304 | int cmdline_find_option_bool(const char *option); | 290 | int __cmdline_find_option_bool(u32 cmdline_ptr, const char *option); |
291 | static inline int cmdline_find_option(const char *option, char *buffer, int bufsize) | ||
292 | { | ||
293 | return __cmdline_find_option(boot_params.hdr.cmd_line_ptr, option, buffer, bufsize); | ||
294 | } | ||
295 | |||
296 | static inline int cmdline_find_option_bool(const char *option) | ||
297 | { | ||
298 | return __cmdline_find_option_bool(boot_params.hdr.cmd_line_ptr, option); | ||
299 | } | ||
300 | |||
305 | 301 | ||
306 | /* cpu.c, cpucheck.c */ | 302 | /* cpu.c, cpucheck.c */ |
307 | struct cpu_features { | 303 | struct cpu_features { |
@@ -313,6 +309,10 @@ extern struct cpu_features cpu; | |||
313 | int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr); | 309 | int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr); |
314 | int validate_cpu(void); | 310 | int validate_cpu(void); |
315 | 311 | ||
312 | /* early_serial_console.c */ | ||
313 | extern int early_serial_base; | ||
314 | void console_init(void); | ||
315 | |||
316 | /* edd.c */ | 316 | /* edd.c */ |
317 | void query_edd(void); | 317 | void query_edd(void); |
318 | 318 | ||
@@ -348,7 +348,6 @@ unsigned int atou(const char *s); | |||
348 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); | 348 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); |
349 | 349 | ||
350 | /* tty.c */ | 350 | /* tty.c */ |
351 | void console_init(void); | ||
352 | void puts(const char *); | 351 | void puts(const char *); |
353 | void putchar(int); | 352 | void putchar(int); |
354 | int getchar(void); | 353 | int getchar(void); |