blob: 115e496c613951bd0ebd5667e18c075e76d5bf60 [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
Siddha, Suresh Bf6c2e332005-11-05 17:25:53 +010014extern void zap_low_mappings(int cpu);
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern void early_idt_handler(void);
17
18extern void mcheck_init(struct cpuinfo_x86 *c);
Shaohua Li3b520b22005-07-07 17:56:38 -070019#ifdef CONFIG_MTRR
20extern void mtrr_ap_init(void);
21extern void mtrr_bp_init(void);
22#else
23#define mtrr_ap_init() do {} while (0)
24#define mtrr_bp_init() do {} while (0)
25#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070026extern void init_memory_mapping(unsigned long start, unsigned long end);
Andi Kleena2f1b422005-11-05 17:25:53 +010027extern void size_zones(unsigned long *z, unsigned long *h,
28 unsigned long start_pfn, unsigned long end_pfn);
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
30extern void system_call(void);
31extern int kernel_syscall(void);
32extern void syscall_init(void);
33
34extern void ia32_syscall(void);
35extern void ia32_cstar_target(void);
36extern void ia32_sysenter_target(void);
37
38extern void config_acpi_tables(void);
39extern void ia32_syscall(void);
40extern void iommu_hole_init(void);
41
Andi Kleena8ab26f2005-04-16 15:25:19 -070042extern void time_init_gtod(void);
Andi Kleen312df5f2005-05-16 21:53:28 -070043extern int pmtimer_mark_offset(void);
44extern unsigned int do_gettimeoffset_pm(void);
45extern u32 pmtmr_ioport;
46extern unsigned long long monotonic_base;
47extern int sysctl_vsyscall;
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49extern void do_softirq_thunk(void);
50
51extern int numa_setup(char *opt);
52
53extern int setup_early_printk(char *);
54extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
55
56extern void early_identify_cpu(struct cpuinfo_x86 *c);
57
58extern int k8_scan_nodes(unsigned long start, unsigned long end);
59
60extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
61extern unsigned long numa_free_all_bootmem(void);
62
63extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
64extern void free_bootmem_generic(unsigned long phys, unsigned len);
65
66extern void load_gs_index(unsigned gs);
67
68extern unsigned long end_pfn_map;
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070extern void show_trace(unsigned long * rsp);
71extern void show_registers(struct pt_regs *regs);
72
73extern void exception_table_check(void);
74
75extern void acpi_reserve_bootmem(void);
76
77extern void swap_low_mappings(void);
78
Linus Torvalds1da177e2005-04-16 15:20:36 -070079extern void __show_regs(struct pt_regs * regs);
80extern void show_regs(struct pt_regs * regs);
81
Linus Torvalds1da177e2005-04-16 15:20:36 -070082extern char *syscall32_page;
83extern void syscall32_cpu_init(void);
84
85extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
86
87extern void check_ioapic(void);
88extern void check_efer(void);
89
90extern int unhandled_signal(struct task_struct *tsk, int sig);
91
Andi Kleen737c5c32006-01-11 22:45:15 +010092extern int unsynchronized_tsc(void);
93
Linus Torvalds1da177e2005-04-16 15:20:36 -070094extern void select_idle_routine(const struct cpuinfo_x86 *c);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010095
96extern void gart_parse_options(char *);
97extern void __init no_iommu_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070098
Linus Torvalds1da177e2005-04-16 15:20:36 -070099extern unsigned long table_start, table_end;
100
101extern int exception_trace;
102extern int force_iommu, no_iommu;
103extern int using_apic_timer;
104extern int disable_apic;
105extern unsigned cpu_khz;
106extern int ioapic_force;
107extern int skip_ioapic_setup;
108extern int acpi_ht;
109extern int acpi_disabled;
110
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100111#ifdef CONFIG_GART_IOMMU
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112extern int fallback_aper_order;
113extern int fallback_aper_force;
114extern int iommu_aperture;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115extern int iommu_aperture_allowed;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100116extern int iommu_aperture_disabled;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117extern int fix_aperture;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100118#else
119#define iommu_aperture 0
120#define iommu_aperture_allowed 0
121#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122extern int force_iommu;
123
124extern int reboot_force;
125
126extern void smp_local_timer_interrupt(struct pt_regs * regs);
127
128long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
129
130#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
131#define round_down(x,y) ((x) & ~((y)-1))
132
133#endif