blob: f54f3abf93ce5a575d0d2b7dc5d4f26776335c71 [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 Kleen73dea472006-02-03 21:50:50 +010048extern int nohpet;
Linus Torvalds1da177e2005-04-16 15:20:36 -070049
Linus Torvalds1da177e2005-04-16 15:20:36 -070050extern 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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
61extern void load_gs_index(unsigned gs);
62
Andi Kleen73dea472006-02-03 21:50:50 +010063extern void stop_timer_interrupt(void);
David Howells7d12e782006-10-05 14:55:46 +010064extern void main_timer_handler(void);
Andi Kleen73dea472006-02-03 21:50:50 +010065
Linus Torvalds1da177e2005-04-16 15:20:36 -070066extern unsigned long end_pfn_map;
67
Jan Beulichb538ed22006-06-26 13:57:32 +020068extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070069extern 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 void syscall32_cpu_init(void);
81
82extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
83
Andi Kleendfa46982006-09-26 10:52:30 +020084extern void early_quirks(void);
Siddha, Suresh Bb0d0a4b2006-12-07 02:14:10 +010085extern void quirk_intel_irqbalance(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070086extern 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);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010091
Linus Torvalds1da177e2005-04-16 15:20:36 -070092extern unsigned long table_start, table_end;
93
94extern int exception_trace;
Linus Torvalds1da177e2005-04-16 15:20:36 -070095extern unsigned cpu_khz;
Linus Torvalds1da177e2005-04-16 15:20:36 -070096
Jon Mason0dc243a2006-06-26 13:58:11 +020097extern void no_iommu_init(void);
98extern int force_iommu, no_iommu;
Jon Mason8d4f6b92006-06-26 13:58:05 +020099extern int iommu_detected;
Andi Kleena813ce42006-06-26 13:57:22 +0200100#ifdef CONFIG_IOMMU
Jon Mason0dc243a2006-06-26 13:58:11 +0200101extern void gart_iommu_init(void);
102extern void gart_parse_options(char *);
103extern void iommu_hole_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104extern int fallback_aper_order;
105extern int fallback_aper_force;
106extern int iommu_aperture;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107extern int iommu_aperture_allowed;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100108extern int iommu_aperture_disabled;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109extern int fix_aperture;
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +0100110#else
111#define iommu_aperture 0
112#define iommu_aperture_allowed 0
113#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114
115extern int reboot_force;
Andi Kleen7fd67842006-02-16 23:42:07 +0100116extern int notsc_setup(char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117
Andi Kleene70ea8c2006-10-21 18:37:03 +0200118extern int timer_over_8254;
119
Andi Kleen91cd4442006-09-26 10:52:33 +0200120extern int gsi_irq_sharing(int gsi);
121
David Howells7d12e782006-10-05 14:55:46 +0100122extern void smp_local_timer_interrupt(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123
124long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
125
126#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
127#define round_down(x,y) ((x) & ~((y)-1))
128
129#endif