···11+#ifndef _ASM_X86_SETUP_H22+#define _ASM_X86_SETUP_H33+44+#define COMMAND_LINE_SIZE 204855+16#ifdef __KERNEL__22-# ifdef CONFIG_X86_3233-# include "setup_32.h"44-# else55-# include "setup_64.h"66-# endif77-#else88-# ifdef __i386__99-# include "setup_32.h"1010-# else1111-# include "setup_64.h"1212-# endif77+88+#ifdef __i386__99+1010+#include <linux/pfn.h>1111+/*1212+ * Reserved space for vmalloc and iomap - defined in asm/page.h1313+ */1414+#define MAXMEM_PFN PFN_DOWN(MAXMEM)1515+#define MAX_NONPAE_PFN (1 << 20)1616+1717+#define PARAM_SIZE 40961818+1919+#define OLD_CL_MAGIC_ADDR 0x900202020+#define OLD_CL_MAGIC 0xA33F2121+#define OLD_CL_BASE_ADDR 0x900002222+#define OLD_CL_OFFSET 0x900222323+#define NEW_CL_POINTER 0x228 /* Relative to real mode data */2424+2525+#endif /* __i386__ */2626+2727+#ifndef __ASSEMBLY__2828+#include <asm/bootparam.h>2929+3030+/*3131+ * This is set up by the setup-routine at boot-time3232+ */3333+extern struct boot_params boot_params;3434+3535+#ifdef __i386__3636+/*3737+ * Do NOT EVER look at the BIOS memory size location.3838+ * It does not work on many machines.3939+ */4040+#define LOWMEMSIZE() (0x9f000)4141+4242+struct e820entry;4343+4444+char * __init machine_specific_memory_setup(void);4545+char *memory_setup(void);4646+4747+int __init copy_e820_map(struct e820entry * biosmap, int nr_map);4848+int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map);4949+void __init add_memory_region(unsigned long long start,5050+ unsigned long long size, int type);5151+5252+extern unsigned long init_pg_tables_end;5353+5454+#ifndef CONFIG_PARAVIRT5555+#define paravirt_post_allocator_init() do {} while (0)1356#endif5757+5858+#endif /* __i386__ */5959+#endif /* __ASSEMBLY__ */6060+#endif /* __KERNEL__ */6161+6262+#endif /* _ASM_X86_SETUP_H */
-63
include/asm-x86/setup_32.h
···11-/*22- * Just a place holder. We don't want to have to test x86 before33- * we include stuff44- */55-66-#ifndef _i386_SETUP_H77-#define _i386_SETUP_H88-99-#define COMMAND_LINE_SIZE 20481010-1111-#ifdef __KERNEL__1212-#include <linux/pfn.h>1313-1414-/*1515- * Reserved space for vmalloc and iomap - defined in asm/page.h1616- */1717-#define MAXMEM_PFN PFN_DOWN(MAXMEM)1818-#define MAX_NONPAE_PFN (1 << 20)1919-2020-#define PARAM_SIZE 40962121-2222-#define OLD_CL_MAGIC_ADDR 0x900202323-#define OLD_CL_MAGIC 0xA33F2424-#define OLD_CL_BASE_ADDR 0x900002525-#define OLD_CL_OFFSET 0x900222626-#define NEW_CL_POINTER 0x228 /* Relative to real mode data */2727-2828-#ifndef __ASSEMBLY__2929-3030-#include <asm/bootparam.h>3131-3232-/*3333- * This is set up by the setup-routine at boot-time3434- */3535-extern struct boot_params boot_params;3636-3737-/*3838- * Do NOT EVER look at the BIOS memory size location.3939- * It does not work on many machines.4040- */4141-#define LOWMEMSIZE() (0x9f000)4242-4343-struct e820entry;4444-4545-char * __init machine_specific_memory_setup(void);4646-char *memory_setup(void);4747-4848-int __init copy_e820_map(struct e820entry * biosmap, int nr_map);4949-int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map);5050-void __init add_memory_region(unsigned long long start,5151- unsigned long long size, int type);5252-5353-extern unsigned long init_pg_tables_end;5454-5555-#ifndef CONFIG_PARAVIRT5656-#define paravirt_post_allocator_init() do {} while (0)5757-#endif5858-5959-#endif /* __ASSEMBLY__ */6060-6161-#endif /* __KERNEL__ */6262-6363-#endif /* _i386_SETUP_H */
-19
include/asm-x86/setup_64.h
···11-#ifndef _x8664_SETUP_H22-#define _x8664_SETUP_H33-44-#define COMMAND_LINE_SIZE 204855-66-#ifdef __KERNEL__77-88-#ifndef __ASSEMBLY__99-#include <asm/bootparam.h>1010-1111-/*1212- * This is set up by the setup-routine at boot-time1313- */1414-extern struct boot_params boot_params;1515-1616-#endif /* not __ASSEMBLY__ */1717-#endif /* __KERNEL__ */1818-1919-#endif