blob: c44a3a93b5a49f06c686eed86d508377b0156f49 [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);
17extern void init_memory_mapping(unsigned long start, unsigned long end);
18
19extern void system_call(void);
20extern int kernel_syscall(void);
21extern void syscall_init(void);
22
23extern void ia32_syscall(void);
24extern void ia32_cstar_target(void);
25extern void ia32_sysenter_target(void);
26
27extern void config_acpi_tables(void);
28extern void ia32_syscall(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Andi Kleen312df5f2005-05-16 21:53:28 -070030extern int pmtimer_mark_offset(void);
Shaohua Li0dd2ea92006-02-03 21:50:56 +010031extern void pmtimer_resume(void);
Andi Kleen0c3749c2006-02-03 21:51:41 +010032extern void pmtimer_wait(unsigned);
Andi Kleen312df5f2005-05-16 21:53:28 -070033extern unsigned int do_gettimeoffset_pm(void);
Andi Kleen226d7802006-02-03 21:50:44 +010034#ifdef CONFIG_X86_PM_TIMER
Andi Kleen312df5f2005-05-16 21:53:28 -070035extern u32 pmtmr_ioport;
Andi Kleen226d7802006-02-03 21:50:44 +010036#else
37#define pmtmr_ioport 0
38#endif
Andi Kleen73dea472006-02-03 21:50:50 +010039extern int nohpet;
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Linus Torvalds1da177e2005-04-16 15:20:36 -070041extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
42
43extern void early_identify_cpu(struct cpuinfo_x86 *c);
44
45extern int k8_scan_nodes(unsigned long start, unsigned long end);
46
47extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
48extern unsigned long numa_free_all_bootmem(void);
49
50extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
52extern void load_gs_index(unsigned gs);
53
54extern unsigned long end_pfn_map;
55
Jan Beulichb538ed22006-06-26 13:57:32 +020056extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp);
Linus Torvalds1da177e2005-04-16 15:20:36 -070057extern void show_registers(struct pt_regs *regs);
58
59extern void exception_table_check(void);
60
61extern void acpi_reserve_bootmem(void);
62
63extern void swap_low_mappings(void);
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065extern void __show_regs(struct pt_regs * regs);
66extern void show_regs(struct pt_regs * regs);
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068extern void syscall32_cpu_init(void);
69
70extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
71
Andi Kleendfa46982006-09-26 10:52:30 +020072extern void early_quirks(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070073extern void check_efer(void);
74
Linus Torvalds1da177e2005-04-16 15:20:36 -070075extern void select_idle_routine(const struct cpuinfo_x86 *c);
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +010076
Linus Torvalds1da177e2005-04-16 15:20:36 -070077extern unsigned long table_start, table_end;
78
79extern int exception_trace;
Linus Torvalds1da177e2005-04-16 15:20:36 -070080extern unsigned cpu_khz;
Joerg Roedel6b37f5a2007-05-02 19:27:06 +020081extern unsigned tsc_khz;
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
Linus Torvalds1da177e2005-04-16 15:20:36 -070083extern int reboot_force;
Andi Kleen7fd67842006-02-16 23:42:07 +010084extern int notsc_setup(char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070085
Andi Kleene70ea8c2006-10-21 18:37:03 +020086extern int timer_over_8254;
87
Andi Kleen91cd4442006-09-26 10:52:33 +020088extern int gsi_irq_sharing(int gsi);
89
Andi Kleenf039b752007-05-02 19:27:12 +020090extern int force_mwait;
91
Linus Torvalds1da177e2005-04-16 15:20:36 -070092long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
93
Linus Torvalds1da177e2005-04-16 15:20:36 -070094#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
95#define round_down(x,y) ((x) & ~((y)-1))
96
97#endif