Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #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 | |
| 8 | struct cpuinfo_x86; |
| 9 | struct pt_regs; |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | extern void start_kernel(void); |
| 12 | extern void pda_init(int); |
| 13 | |
| 14 | extern void early_idt_handler(void); |
| 15 | |
| 16 | extern void mcheck_init(struct cpuinfo_x86 *c); |
| 17 | extern void init_memory_mapping(unsigned long start, unsigned long end); |
| 18 | |
| 19 | extern void system_call(void); |
| 20 | extern int kernel_syscall(void); |
| 21 | extern void syscall_init(void); |
| 22 | |
| 23 | extern void ia32_syscall(void); |
| 24 | extern void ia32_cstar_target(void); |
| 25 | extern void ia32_sysenter_target(void); |
| 26 | |
| 27 | extern void config_acpi_tables(void); |
| 28 | extern void ia32_syscall(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 30 | extern int pmtimer_mark_offset(void); |
Shaohua Li | 0dd2ea9 | 2006-02-03 21:50:56 +0100 | [diff] [blame] | 31 | extern void pmtimer_resume(void); |
Andi Kleen | 0c3749c | 2006-02-03 21:51:41 +0100 | [diff] [blame] | 32 | extern void pmtimer_wait(unsigned); |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 33 | extern unsigned int do_gettimeoffset_pm(void); |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 34 | #ifdef CONFIG_X86_PM_TIMER |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame] | 35 | extern u32 pmtmr_ioport; |
Andi Kleen | 226d780 | 2006-02-03 21:50:44 +0100 | [diff] [blame] | 36 | #else |
| 37 | #define pmtmr_ioport 0 |
| 38 | #endif |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 39 | extern int nohpet; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2))); |
| 42 | |
| 43 | extern void early_identify_cpu(struct cpuinfo_x86 *c); |
| 44 | |
| 45 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
| 46 | |
| 47 | extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); |
| 48 | extern unsigned long numa_free_all_bootmem(void); |
| 49 | |
| 50 | extern void reserve_bootmem_generic(unsigned long phys, unsigned len); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
| 52 | extern void load_gs_index(unsigned gs); |
| 53 | |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 54 | extern void stop_timer_interrupt(void); |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 55 | extern void main_timer_handler(void); |
Andi Kleen | 73dea47 | 2006-02-03 21:50:50 +0100 | [diff] [blame] | 56 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | extern unsigned long end_pfn_map; |
| 58 | |
Jan Beulich | b538ed2 | 2006-06-26 13:57:32 +0200 | [diff] [blame] | 59 | extern void show_trace(struct task_struct *, struct pt_regs *, unsigned long * rsp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | extern void show_registers(struct pt_regs *regs); |
| 61 | |
| 62 | extern void exception_table_check(void); |
| 63 | |
| 64 | extern void acpi_reserve_bootmem(void); |
| 65 | |
| 66 | extern void swap_low_mappings(void); |
| 67 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | extern void __show_regs(struct pt_regs * regs); |
| 69 | extern void show_regs(struct pt_regs * regs); |
| 70 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | extern void syscall32_cpu_init(void); |
| 72 | |
| 73 | extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); |
| 74 | |
Andi Kleen | dfa4698 | 2006-09-26 10:52:30 +0200 | [diff] [blame] | 75 | extern void early_quirks(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | extern void check_efer(void); |
| 77 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | extern void select_idle_routine(const struct cpuinfo_x86 *c); |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 79 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | extern unsigned long table_start, table_end; |
| 81 | |
| 82 | extern int exception_trace; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | extern unsigned cpu_khz; |
Joerg Roedel | 6b37f5a | 2007-05-02 19:27:06 +0200 | [diff] [blame] | 84 | extern unsigned tsc_khz; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | extern int reboot_force; |
Andi Kleen | 7fd6784 | 2006-02-16 23:42:07 +0100 | [diff] [blame] | 87 | extern int notsc_setup(char *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | |
Andi Kleen | e70ea8c | 2006-10-21 18:37:03 +0200 | [diff] [blame] | 89 | extern int timer_over_8254; |
| 90 | |
Andi Kleen | 91cd444 | 2006-09-26 10:52:33 +0200 | [diff] [blame] | 91 | extern int gsi_irq_sharing(int gsi); |
| 92 | |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 93 | extern void smp_local_timer_interrupt(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | |
Andi Kleen | f039b75 | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 95 | extern int force_mwait; |
| 96 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
| 98 | |
Andi Kleen | 803d80f | 2007-05-02 19:27:05 +0200 | [diff] [blame] | 99 | void i8254_timer_resume(void); |
| 100 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 101 | #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
| 102 | #define round_down(x,y) ((x) & ~((y)-1)) |
| 103 | |
| 104 | #endif |