blob: 8abf2a43c944dc937a845cc5870e4e98e41900ed [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 Kleen312df5f2005-05-16 21:53:28 -070042extern int pmtimer_mark_offset(void);
Shaohua Li0dd2ea92006-02-03 21:50:56 +010043extern void pmtimer_resume(void);
Andi Kleen0c3749c2006-02-03 21:51:41 +010044extern void pmtimer_wait(unsigned);
Andi Kleen312df5f2005-05-16 21:53:28 -070045extern unsigned int do_gettimeoffset_pm(void);
Andi Kleen226d7802006-02-03 21:50:44 +010046#ifdef CONFIG_X86_PM_TIMER
Andi Kleen312df5f2005-05-16 21:53:28 -070047extern u32 pmtmr_ioport;
Andi Kleen226d7802006-02-03 21:50:44 +010048#else
49#define pmtmr_ioport 0
50#endif
Andi Kleen312df5f2005-05-16 21:53:28 -070051extern unsigned long long monotonic_base;
52extern int sysctl_vsyscall;
Andi Kleen73dea472006-02-03 21:50:50 +010053extern int nohpet;
54extern unsigned long vxtime_hz;
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
Linus Torvalds1da177e2005-04-16 15:20:36 -070056extern int numa_setup(char *opt);
57
58extern int setup_early_printk(char *);
59extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
60
61extern void early_identify_cpu(struct cpuinfo_x86 *c);
62
63extern int k8_scan_nodes(unsigned long start, unsigned long end);
64
65extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
66extern unsigned long numa_free_all_bootmem(void);
67
68extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
69extern void free_bootmem_generic(unsigned long phys, unsigned len);
70
71extern void load_gs_index(unsigned gs);
72
Andi Kleen73dea472006-02-03 21:50:50 +010073extern void stop_timer_interrupt(void);
74extern void main_timer_handler(struct pt_regs *regs);
75
Linus Torvalds1da177e2005-04-16 15:20:36 -070076extern unsigned long end_pfn_map;
77
Linus Torvalds1da177e2005-04-16 15:20:36 -070078extern void show_trace(unsigned long * rsp);
79extern void show_registers(struct pt_regs *regs);
80
81extern void exception_table_check(void);
82
83extern void acpi_reserve_bootmem(void);
84
85extern void swap_low_mappings(void);
86
Linus Torvalds1da177e2005-04-16 15:20:36 -070087extern void __show_regs(struct pt_regs * regs);
88extern void show_regs(struct pt_regs * regs);
89
Linus Torvalds1da177e2005-04-16 15:20:36 -070090extern char *syscall32_page;
91extern void syscall32_cpu_init(void);
92
93extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
94
95extern void check_ioapic(void);
96extern void check_efer(void);
97
98extern int unhandled_signal(struct task_struct *tsk, int sig);
99
Andi Kleen737c5c32006-01-11 22:45:15 +0100100extern int unsynchronized_tsc(void);
101
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102extern void select_idle_routine(const struct cpuinfo_x86 *c);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100103
104extern void gart_parse_options(char *);
105extern void __init no_iommu_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107extern unsigned long table_start, table_end;
108
109extern int exception_trace;
110extern int force_iommu, no_iommu;
111extern int using_apic_timer;
112extern int disable_apic;
113extern unsigned cpu_khz;
114extern int ioapic_force;
115extern int skip_ioapic_setup;
116extern int acpi_ht;
117extern int acpi_disabled;
118
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100119#ifdef CONFIG_GART_IOMMU
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120extern int fallback_aper_order;
121extern int fallback_aper_force;
122extern int iommu_aperture;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123extern int iommu_aperture_allowed;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100124extern int iommu_aperture_disabled;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125extern int fix_aperture;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100126#else
127#define iommu_aperture 0
128#define iommu_aperture_allowed 0
129#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130
131extern int reboot_force;
Andi Kleen7fd67842006-02-16 23:42:07 +0100132extern int notsc_setup(char *);
Andi Kleene2c03882006-02-26 04:18:46 +0100133extern int setup_additional_cpus(char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134
135extern void smp_local_timer_interrupt(struct pt_regs * regs);
136
137long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
138
139#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
140#define round_down(x,y) ((x) & ~((y)-1))
141
142#endif