setup.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef _ASM_X86_SETUP_H
  2. #define _ASM_X86_SETUP_H
  3. #define COMMAND_LINE_SIZE 2048
  4. #ifndef __ASSEMBLY__
  5. /* Interrupt control for vSMPowered x86_64 systems */
  6. void vsmp_init(void);
  7. #ifdef CONFIG_X86_VISWS
  8. extern void visws_early_detect(void);
  9. extern int is_visws_box(void);
  10. #else
  11. static inline void visws_early_detect(void) { }
  12. static inline int is_visws_box(void) { return 0; }
  13. #endif
  14. /*
  15. * Any setup quirks to be performed?
  16. */
  17. extern int (*arch_time_init_quirk)(void);
  18. extern int (*arch_pre_intr_init_quirk)(void);
  19. extern int (*arch_intr_init_quirk)(void);
  20. extern int (*arch_trap_init_quirk)(void);
  21. extern char * (*arch_memory_setup_quirk)(void);
  22. extern int (*mach_get_smp_config_quirk)(unsigned int early);
  23. extern int (*mach_find_smp_config_quirk)(unsigned int reserve);
  24. #ifndef CONFIG_PARAVIRT
  25. #define paravirt_post_allocator_init() do {} while (0)
  26. #endif
  27. #endif /* __ASSEMBLY__ */
  28. #ifdef __KERNEL__
  29. #ifdef __i386__
  30. #include <linux/pfn.h>
  31. /*
  32. * Reserved space for vmalloc and iomap - defined in asm/page.h
  33. */
  34. #define MAXMEM_PFN PFN_DOWN(MAXMEM)
  35. #define MAX_NONPAE_PFN (1 << 20)
  36. #endif /* __i386__ */
  37. #define PARAM_SIZE 4096 /* sizeof(struct boot_params) */
  38. #define OLD_CL_MAGIC 0xA33F
  39. #define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */
  40. #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
  41. #ifndef __ASSEMBLY__
  42. #include <asm/bootparam.h>
  43. #ifndef _SETUP
  44. /*
  45. * This is set up by the setup-routine at boot-time
  46. */
  47. extern struct boot_params boot_params;
  48. /*
  49. * Do NOT EVER look at the BIOS memory size location.
  50. * It does not work on many machines.
  51. */
  52. #define LOWMEMSIZE() (0x9f000)
  53. #ifdef __i386__
  54. void __init i386_start_kernel(void);
  55. extern void probe_roms(void);
  56. extern unsigned long init_pg_tables_start;
  57. extern unsigned long init_pg_tables_end;
  58. #else
  59. void __init x86_64_start_kernel(char *real_mode);
  60. void __init x86_64_start_reservations(char *real_mode_data);
  61. #endif /* __i386__ */
  62. #endif /* _SETUP */
  63. #endif /* __ASSEMBLY__ */
  64. #endif /* __KERNEL__ */
  65. #endif /* _ASM_X86_SETUP_H */