blob: dbb37b0adb43df3f2ea20d62bc4e398c9bd469be [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_X8664_PROTO_H
2#define _ASM_X8664_PROTO_H 1
3
4#include <asm/ldt.h>
5
6/* misc architecture specific prototypes */
7
8struct cpuinfo_x86;
9struct pt_regs;
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011extern void start_kernel(void);
12extern void pda_init(int);
13
14extern void early_idt_handler(void);
15
16extern void mcheck_init(struct cpuinfo_x86 *c);
Shaohua Li3b520b22005-07-07 17:56:38 -070017#ifdef CONFIG_MTRR
18extern void mtrr_ap_init(void);
19extern void mtrr_bp_init(void);
20#else
21#define mtrr_ap_init() do {} while (0)
22#define mtrr_bp_init() do {} while (0)
23#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070024extern void init_memory_mapping(unsigned long start, unsigned long end);
25
26extern void system_call(void);
27extern int kernel_syscall(void);
28extern void syscall_init(void);
29
30extern void ia32_syscall(void);
31extern void ia32_cstar_target(void);
32extern void ia32_sysenter_target(void);
33
34extern void config_acpi_tables(void);
35extern void ia32_syscall(void);
36extern void iommu_hole_init(void);
37
Andi Kleena8ab26f2005-04-16 15:25:19 -070038extern void time_init_gtod(void);
Andi Kleen312df5f2005-05-16 21:53:28 -070039extern int pmtimer_mark_offset(void);
40extern unsigned int do_gettimeoffset_pm(void);
41extern u32 pmtmr_ioport;
42extern unsigned long long monotonic_base;
43extern int sysctl_vsyscall;
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
45extern void do_softirq_thunk(void);
46
47extern int numa_setup(char *opt);
48
49extern int setup_early_printk(char *);
50extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
51
52extern void early_identify_cpu(struct cpuinfo_x86 *c);
53
54extern int k8_scan_nodes(unsigned long start, unsigned long end);
55
56extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
57extern unsigned long numa_free_all_bootmem(void);
58
59extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
60extern void free_bootmem_generic(unsigned long phys, unsigned len);
61
62extern void load_gs_index(unsigned gs);
63
64extern unsigned long end_pfn_map;
65
66extern cpumask_t cpu_initialized;
67
68extern void show_trace(unsigned long * rsp);
69extern void show_registers(struct pt_regs *regs);
70
71extern void exception_table_check(void);
72
73extern void acpi_reserve_bootmem(void);
74
75extern void swap_low_mappings(void);
76
Linus Torvalds1da177e2005-04-16 15:20:36 -070077extern void __show_regs(struct pt_regs * regs);
78extern void show_regs(struct pt_regs * regs);
79
Linus Torvalds1da177e2005-04-16 15:20:36 -070080extern char *syscall32_page;
81extern void syscall32_cpu_init(void);
82
83extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
84
85extern void check_ioapic(void);
86extern void check_efer(void);
87
88extern int unhandled_signal(struct task_struct *tsk, int sig);
89
90extern void select_idle_routine(const struct cpuinfo_x86 *c);
91extern void swiotlb_init(void);
92
Linus Torvalds1da177e2005-04-16 15:20:36 -070093extern unsigned long table_start, table_end;
94
95extern int exception_trace;
96extern int force_iommu, no_iommu;
97extern int using_apic_timer;
98extern int disable_apic;
99extern unsigned cpu_khz;
100extern int ioapic_force;
101extern int skip_ioapic_setup;
102extern int acpi_ht;
103extern int acpi_disabled;
104
105extern int fallback_aper_order;
106extern int fallback_aper_force;
107extern int iommu_aperture;
108extern int iommu_aperture_disabled;
109extern int iommu_aperture_allowed;
110extern int fix_aperture;
111extern int force_iommu;
112
113extern int reboot_force;
114
115extern void smp_local_timer_interrupt(struct pt_regs * regs);
116
117long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
118
119#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
120#define round_down(x,y) ((x) & ~((y)-1))
121
122#endif