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 | |
| 11 | extern void get_cpu_vendor(struct cpuinfo_x86*); |
| 12 | extern void start_kernel(void); |
| 13 | extern void pda_init(int); |
| 14 | |
| 15 | extern void early_idt_handler(void); |
| 16 | |
| 17 | extern void mcheck_init(struct cpuinfo_x86 *c); |
| 18 | extern void init_memory_mapping(unsigned long start, unsigned long end); |
| 19 | |
| 20 | extern void system_call(void); |
| 21 | extern int kernel_syscall(void); |
| 22 | extern void syscall_init(void); |
| 23 | |
| 24 | extern void ia32_syscall(void); |
| 25 | extern void ia32_cstar_target(void); |
| 26 | extern void ia32_sysenter_target(void); |
| 27 | |
| 28 | extern void config_acpi_tables(void); |
| 29 | extern void ia32_syscall(void); |
| 30 | extern void iommu_hole_init(void); |
| 31 | |
Andi Kleen | a8ab26f | 2005-04-16 15:25:19 -0700 | [diff] [blame] | 32 | extern void time_init_gtod(void); |
Andi Kleen | 312df5f | 2005-05-16 21:53:28 -0700 | [diff] [blame^] | 33 | extern int pmtimer_mark_offset(void); |
| 34 | extern unsigned int do_gettimeoffset_pm(void); |
| 35 | extern u32 pmtmr_ioport; |
| 36 | extern unsigned long long monotonic_base; |
| 37 | extern int sysctl_vsyscall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
| 39 | extern void do_softirq_thunk(void); |
| 40 | |
| 41 | extern int numa_setup(char *opt); |
| 42 | |
| 43 | extern int setup_early_printk(char *); |
| 44 | extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2))); |
| 45 | |
| 46 | extern void early_identify_cpu(struct cpuinfo_x86 *c); |
| 47 | |
| 48 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
| 49 | |
| 50 | extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); |
| 51 | extern unsigned long numa_free_all_bootmem(void); |
| 52 | |
| 53 | extern void reserve_bootmem_generic(unsigned long phys, unsigned len); |
| 54 | extern void free_bootmem_generic(unsigned long phys, unsigned len); |
| 55 | |
| 56 | extern void load_gs_index(unsigned gs); |
| 57 | |
| 58 | extern unsigned long end_pfn_map; |
| 59 | |
| 60 | extern cpumask_t cpu_initialized; |
| 61 | |
| 62 | extern void show_trace(unsigned long * rsp); |
| 63 | extern void show_registers(struct pt_regs *regs); |
| 64 | |
| 65 | extern void exception_table_check(void); |
| 66 | |
| 67 | extern void acpi_reserve_bootmem(void); |
| 68 | |
| 69 | extern void swap_low_mappings(void); |
| 70 | |
| 71 | extern void oops_begin(void); |
| 72 | extern void die(const char *,struct pt_regs *,long); |
| 73 | extern void __die(const char * str, struct pt_regs * regs, long err); |
| 74 | extern void __show_regs(struct pt_regs * regs); |
| 75 | extern void show_regs(struct pt_regs * regs); |
| 76 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | extern char *syscall32_page; |
| 78 | extern void syscall32_cpu_init(void); |
| 79 | |
| 80 | extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); |
| 81 | |
| 82 | extern void check_ioapic(void); |
| 83 | extern void check_efer(void); |
| 84 | |
| 85 | extern int unhandled_signal(struct task_struct *tsk, int sig); |
| 86 | |
| 87 | extern void select_idle_routine(const struct cpuinfo_x86 *c); |
| 88 | extern void swiotlb_init(void); |
| 89 | |
| 90 | extern unsigned long max_mapnr; |
| 91 | extern unsigned long end_pfn; |
| 92 | extern unsigned long table_start, table_end; |
| 93 | |
| 94 | extern int exception_trace; |
| 95 | extern int force_iommu, no_iommu; |
| 96 | extern int using_apic_timer; |
| 97 | extern int disable_apic; |
| 98 | extern unsigned cpu_khz; |
| 99 | extern int ioapic_force; |
| 100 | extern int skip_ioapic_setup; |
| 101 | extern int acpi_ht; |
| 102 | extern int acpi_disabled; |
| 103 | |
| 104 | extern int fallback_aper_order; |
| 105 | extern int fallback_aper_force; |
| 106 | extern int iommu_aperture; |
| 107 | extern int iommu_aperture_disabled; |
| 108 | extern int iommu_aperture_allowed; |
| 109 | extern int fix_aperture; |
| 110 | extern int force_iommu; |
| 111 | |
| 112 | extern int reboot_force; |
| 113 | |
| 114 | extern void smp_local_timer_interrupt(struct pt_regs * regs); |
| 115 | |
| 116 | long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); |
| 117 | |
| 118 | #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
| 119 | #define round_down(x,y) ((x) & ~((y)-1)) |
| 120 | |
| 121 | #endif |