blob: 6d324b83897207f56f9e348bc6ef6feae8c553ef [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);
27
28extern void system_call(void);
29extern int kernel_syscall(void);
30extern void syscall_init(void);
31
32extern void ia32_syscall(void);
33extern void ia32_cstar_target(void);
34extern void ia32_sysenter_target(void);
35
36extern void config_acpi_tables(void);
37extern void ia32_syscall(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Andi Kleen312df5f2005-05-16 21:53:28 -070039extern int pmtimer_mark_offset(void);
Shaohua Li0dd2ea92006-02-03 21:50:56 +010040extern void pmtimer_resume(void);
Andi Kleen0c3749c2006-02-03 21:51:41 +010041extern void pmtimer_wait(unsigned);
Andi Kleen312df5f2005-05-16 21:53:28 -070042extern unsigned int do_gettimeoffset_pm(void);
Andi Kleen226d7802006-02-03 21:50:44 +010043#ifdef CONFIG_X86_PM_TIMER
Andi Kleen312df5f2005-05-16 21:53:28 -070044extern u32 pmtmr_ioport;
Andi Kleen226d7802006-02-03 21:50:44 +010045#else
46#define pmtmr_ioport 0
47#endif
Andi Kleen312df5f2005-05-16 21:53:28 -070048extern unsigned long long monotonic_base;
49extern int sysctl_vsyscall;
Andi Kleen73dea472006-02-03 21:50:50 +010050extern int nohpet;
51extern unsigned long vxtime_hz;
Vojtech Pavlika670fad2006-09-26 10:52:28 +020052extern void time_init_gtod(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070053
Linus Torvalds1da177e2005-04-16 15:20:36 -070054extern 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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070064
65extern void load_gs_index(unsigned gs);
66
Andi Kleen73dea472006-02-03 21:50:50 +010067extern void stop_timer_interrupt(void);
David Howells7d12e782006-10-05 14:55:46 +010068extern void main_timer_handler(void);
Andi Kleen73dea472006-02-03 21:50:50 +010069
Linus Torvalds1da177e2005-04-16 15:20:36 -070070extern unsigned long end_pfn_map;
71
Jan Beulichb538ed22006-06-26 13:57:32 +020072extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070073extern void show_registers(struct pt_regs *regs);
74
75extern void exception_table_check(void);
76
77extern void acpi_reserve_bootmem(void);
78
79extern void swap_low_mappings(void);
80
Linus Torvalds1da177e2005-04-16 15:20:36 -070081extern void __show_regs(struct pt_regs * regs);
82extern void show_regs(struct pt_regs * regs);
83
Linus Torvalds1da177e2005-04-16 15:20:36 -070084extern char *syscall32_page;
85extern void syscall32_cpu_init(void);
86
87extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
88
Andi Kleendfa46982006-09-26 10:52:30 +020089extern void early_quirks(void);
Siddha, Suresh Bb0d0a4b2006-12-07 02:14:10 +010090extern void quirk_intel_irqbalance(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070091extern void check_efer(void);
92
93extern int unhandled_signal(struct task_struct *tsk, int sig);
94
Andi Kleen737c5c32006-01-11 22:45:15 +010095extern int unsynchronized_tsc(void);
96
Linus Torvalds1da177e2005-04-16 15:20:36 -070097extern void select_idle_routine(const struct cpuinfo_x86 *c);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010098
Linus Torvalds1da177e2005-04-16 15:20:36 -070099extern unsigned long table_start, table_end;
100
101extern int exception_trace;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102extern unsigned cpu_khz;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103
Jon Mason0dc243a2006-06-26 13:58:11 +0200104extern void no_iommu_init(void);
105extern int force_iommu, no_iommu;
Jon Mason8d4f6b92006-06-26 13:58:05 +0200106extern int iommu_detected;
Andi Kleena813ce42006-06-26 13:57:22 +0200107#ifdef CONFIG_IOMMU
Jon Mason0dc243a2006-06-26 13:58:11 +0200108extern void gart_iommu_init(void);
109extern void gart_parse_options(char *);
110extern void iommu_hole_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111extern int fallback_aper_order;
112extern int fallback_aper_force;
113extern int iommu_aperture;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114extern int iommu_aperture_allowed;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100115extern int iommu_aperture_disabled;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116extern int fix_aperture;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100117#else
118#define iommu_aperture 0
119#define iommu_aperture_allowed 0
120#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121
122extern int reboot_force;
Andi Kleen7fd67842006-02-16 23:42:07 +0100123extern int notsc_setup(char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124
Andi Kleene70ea8c2006-10-21 18:37:03 +0200125extern int timer_over_8254;
126
Andi Kleen91cd4442006-09-26 10:52:33 +0200127extern int gsi_irq_sharing(int gsi);
128
David Howells7d12e782006-10-05 14:55:46 +0100129extern void smp_local_timer_interrupt(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130
131long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
132
133#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
134#define round_down(x,y) ((x) & ~((y)-1))
135
136#endif