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