1 #ifndef _ASM_X8664_PROTO_H
2 #define _ASM_X8664_PROTO_H 1
6 /* misc architecture specific prototypes */
11 extern void get_cpu_vendor(struct cpuinfo_x86
*);
12 extern void start_kernel(void);
13 extern void pda_init(int);
15 extern void early_idt_handler(void);
17 extern void mcheck_init(struct cpuinfo_x86
*c
);
18 extern void init_memory_mapping(unsigned long start
, unsigned long end
);
20 extern void system_call(void);
21 extern int kernel_syscall(void);
22 extern void syscall_init(void);
24 extern void ia32_syscall(void);
25 extern void ia32_cstar_target(void);
26 extern void ia32_sysenter_target(void);
28 extern void config_acpi_tables(void);
29 extern void ia32_syscall(void);
30 extern void iommu_hole_init(void);
32 extern void time_init_gtod(void);
34 extern void do_softirq_thunk(void);
36 extern int numa_setup(char *opt
);
38 extern int setup_early_printk(char *);
39 extern void early_printk(const char *fmt
, ...) __attribute__((format(printf
,1,2)));
41 extern void early_identify_cpu(struct cpuinfo_x86
*c
);
43 extern int k8_scan_nodes(unsigned long start
, unsigned long end
);
45 extern void numa_initmem_init(unsigned long start_pfn
, unsigned long end_pfn
);
46 extern unsigned long numa_free_all_bootmem(void);
48 extern void reserve_bootmem_generic(unsigned long phys
, unsigned len
);
49 extern void free_bootmem_generic(unsigned long phys
, unsigned len
);
51 extern void load_gs_index(unsigned gs
);
53 extern unsigned long end_pfn_map
;
55 extern cpumask_t cpu_initialized
;
57 extern void show_trace(unsigned long * rsp
);
58 extern void show_registers(struct pt_regs
*regs
);
60 extern void exception_table_check(void);
62 extern void acpi_reserve_bootmem(void);
64 extern void swap_low_mappings(void);
66 extern void oops_begin(void);
67 extern void die(const char *,struct pt_regs
*,long);
68 extern void __die(const char * str
, struct pt_regs
* regs
, long err
);
69 extern void __show_regs(struct pt_regs
* regs
);
70 extern void show_regs(struct pt_regs
* regs
);
72 extern char *syscall32_page
;
73 extern void syscall32_cpu_init(void);
75 extern void setup_node_bootmem(int nodeid
, unsigned long start
, unsigned long end
);
77 extern void check_ioapic(void);
78 extern void check_efer(void);
80 extern int unhandled_signal(struct task_struct
*tsk
, int sig
);
82 extern void select_idle_routine(const struct cpuinfo_x86
*c
);
83 extern void swiotlb_init(void);
85 extern unsigned long max_mapnr
;
86 extern unsigned long end_pfn
;
87 extern unsigned long table_start
, table_end
;
89 extern int exception_trace
;
90 extern int force_iommu
, no_iommu
;
91 extern int using_apic_timer
;
92 extern int disable_apic
;
93 extern unsigned cpu_khz
;
94 extern int ioapic_force
;
95 extern int skip_ioapic_setup
;
97 extern int acpi_disabled
;
99 extern int fallback_aper_order
;
100 extern int fallback_aper_force
;
101 extern int iommu_aperture
;
102 extern int iommu_aperture_disabled
;
103 extern int iommu_aperture_allowed
;
104 extern int fix_aperture
;
105 extern int force_iommu
;
107 extern int reboot_force
;
109 extern void smp_local_timer_interrupt(struct pt_regs
* regs
);
111 long do_arch_prctl(struct task_struct
*task
, int code
, unsigned long addr
);
113 #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
114 #define round_down(x,y) ((x) & ~((y)-1))