1 #ifndef _ASM_X8664_PROTO_H
2 #define _ASM_X8664_PROTO_H 1
6 /* misc architecture specific prototypes */
11 extern void start_kernel(void);
12 extern void pda_init(int);
14 extern void zap_low_mappings(int cpu);
16 extern void early_idt_handler(void);
18 extern void mcheck_init(struct cpuinfo_x86 *c);
20 extern void mtrr_ap_init(void);
21 extern void mtrr_bp_init(void);
23 #define mtrr_ap_init() do {} while (0)
24 #define mtrr_bp_init() do {} while (0)
26 extern void init_memory_mapping(unsigned long start, unsigned long end);
27 extern void size_zones(unsigned long *z, unsigned long *h,
28 unsigned long start_pfn, unsigned long end_pfn);
30 extern void system_call(void);
31 extern int kernel_syscall(void);
32 extern void syscall_init(void);
34 extern void ia32_syscall(void);
35 extern void ia32_cstar_target(void);
36 extern void ia32_sysenter_target(void);
38 extern void config_acpi_tables(void);
39 extern void ia32_syscall(void);
41 extern int pmtimer_mark_offset(void);
42 extern void pmtimer_resume(void);
43 extern void pmtimer_wait(unsigned);
44 extern unsigned int do_gettimeoffset_pm(void);
45 #ifdef CONFIG_X86_PM_TIMER
46 extern u32 pmtmr_ioport;
48 #define pmtmr_ioport 0
50 extern unsigned long long monotonic_base;
51 extern int sysctl_vsyscall;
53 extern unsigned long vxtime_hz;
55 extern int numa_setup(char *opt);
57 extern int setup_early_printk(char *);
58 extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
60 extern void early_identify_cpu(struct cpuinfo_x86 *c);
62 extern int k8_scan_nodes(unsigned long start, unsigned long end);
64 extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
65 extern unsigned long numa_free_all_bootmem(void);
67 extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
68 extern void free_bootmem_generic(unsigned long phys, unsigned len);
70 extern void load_gs_index(unsigned gs);
72 extern void stop_timer_interrupt(void);
73 extern void main_timer_handler(struct pt_regs *regs);
75 extern unsigned long end_pfn_map;
77 extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp);
78 extern void show_registers(struct pt_regs *regs);
80 extern void exception_table_check(void);
82 extern void acpi_reserve_bootmem(void);
84 extern void swap_low_mappings(void);
86 extern void __show_regs(struct pt_regs * regs);
87 extern void show_regs(struct pt_regs * regs);
89 extern char *syscall32_page;
90 extern void syscall32_cpu_init(void);
92 extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
94 extern void check_ioapic(void);
95 extern void check_efer(void);
97 extern int unhandled_signal(struct task_struct *tsk, int sig);
99 extern int unsynchronized_tsc(void);
101 extern void select_idle_routine(const struct cpuinfo_x86 *c);
103 extern unsigned long table_start, table_end;
105 extern int exception_trace;
106 extern int using_apic_timer;
107 extern int disable_apic;
108 extern unsigned cpu_khz;
109 extern int ioapic_force;
110 extern int skip_ioapic_setup;
112 extern int acpi_disabled;
114 extern void no_iommu_init(void);
115 extern int force_iommu, no_iommu;
116 extern int iommu_detected;
118 extern void gart_iommu_init(void);
119 extern void gart_parse_options(char *);
120 extern void iommu_hole_init(void);
121 extern int fallback_aper_order;
122 extern int fallback_aper_force;
123 extern int iommu_aperture;
124 extern int iommu_aperture_allowed;
125 extern int iommu_aperture_disabled;
126 extern int fix_aperture;
128 #define iommu_aperture 0
129 #define iommu_aperture_allowed 0
132 extern int reboot_force;
133 extern int notsc_setup(char *);
134 extern int setup_additional_cpus(char *);
136 extern void smp_local_timer_interrupt(struct pt_regs * regs);
138 long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
140 #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
141 #define round_down(x,y) ((x) & ~((y)-1))