aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/boot.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/boot.h')
-rw-r--r--arch/x86/boot/boot.h35
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
203static inline int isdigit(int ch) 203#include "isdigit.h"
204{
205 return (ch >= '0') && (ch <= '9');
206}
207
208static 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. */
220extern char _end[]; 206extern char _end[];
@@ -300,8 +286,18 @@ struct biosregs {
300void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg); 286void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg);
301 287
302/* cmdline.c */ 288/* cmdline.c */
303int cmdline_find_option(const char *option, char *buffer, int bufsize); 289int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int bufsize);
304int cmdline_find_option_bool(const char *option); 290int __cmdline_find_option_bool(u32 cmdline_ptr, const char *option);
291static 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
296static 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 */
307struct cpu_features { 303struct cpu_features {
@@ -313,6 +309,10 @@ extern struct cpu_features cpu;
313int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr); 309int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr);
314int validate_cpu(void); 310int validate_cpu(void);
315 311
312/* early_serial_console.c */
313extern int early_serial_base;
314void console_init(void);
315
316/* edd.c */ 316/* edd.c */
317void query_edd(void); 317void query_edd(void);
318 318
@@ -348,7 +348,6 @@ unsigned int atou(const char *s);
348unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); 348unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base);
349 349
350/* tty.c */ 350/* tty.c */
351void console_init(void);
352void puts(const char *); 351void puts(const char *);
353void putchar(int); 352void putchar(int);
354int getchar(void); 353int getchar(void);