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 | |
| 54 | extern unsigned long end_pfn_map; |
| 55 | |
Jan Beulich | b538ed2 | 2006-06-26 13:57:32 +0200 | [diff] [blame] | 56 | 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] | 57 | extern void show_registers(struct pt_regs *regs); |
| 58 | |
| 59 | extern void exception_table_check(void); |
| 60 | |
| 61 | extern void acpi_reserve_bootmem(void); |
| 62 | |
| 63 | extern void swap_low_mappings(void); |
| 64 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | extern void __show_regs(struct pt_regs * regs); |
| 66 | extern void show_regs(struct pt_regs * regs); |
| 67 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | extern void syscall32_cpu_init(void); |
| 69 | |
| 70 | extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); |
| 71 | |
Andi Kleen | dfa4698 | 2006-09-26 10:52:30 +0200 | [diff] [blame] | 72 | extern void early_quirks(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | extern void check_efer(void); |
| 74 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | extern void select_idle_routine(const struct cpuinfo_x86 *c); |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 76 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | extern unsigned long table_start, table_end; |
| 78 | |
| 79 | extern int exception_trace; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | extern unsigned cpu_khz; |
Joerg Roedel | 6b37f5a | 2007-05-02 19:27:06 +0200 | [diff] [blame] | 81 | extern unsigned tsc_khz; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | extern int reboot_force; |
Andi Kleen | 7fd6784 | 2006-02-16 23:42:07 +0100 | [diff] [blame] | 84 | extern int notsc_setup(char *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | |
Andi Kleen | e70ea8c | 2006-10-21 18:37:03 +0200 | [diff] [blame] | 86 | extern int timer_over_8254; |
| 87 | |
Andi Kleen | 91cd444 | 2006-09-26 10:52:33 +0200 | [diff] [blame] | 88 | extern int gsi_irq_sharing(int gsi); |
| 89 | |
Andi Kleen | f039b75 | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 90 | extern int force_mwait; |
| 91 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
| 93 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
| 95 | #define round_down(x,y) ((x) & ~((y)-1)) |
| 96 | |
| 97 | #endif |