blob: d0f8f8b4c3944011da8a295517bf30a58d5eb93a [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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
34extern void do_softirq_thunk(void);
35
36extern int numa_setup(char *opt);
37
38extern int setup_early_printk(char *);
39extern void early_printk(const char *fmt, ...) __attribute__((format(printf,1,2)));
40
41extern void early_identify_cpu(struct cpuinfo_x86 *c);
42
43extern int k8_scan_nodes(unsigned long start, unsigned long end);
44
45extern void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn);
46extern unsigned long numa_free_all_bootmem(void);
47
48extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
49extern void free_bootmem_generic(unsigned long phys, unsigned len);
50
51extern void load_gs_index(unsigned gs);
52
53extern unsigned long end_pfn_map;
54
55extern cpumask_t cpu_initialized;
56
57extern void show_trace(unsigned long * rsp);
58extern void show_registers(struct pt_regs *regs);
59
60extern void exception_table_check(void);
61
62extern void acpi_reserve_bootmem(void);
63
64extern void swap_low_mappings(void);
65
66extern void oops_begin(void);
67extern void die(const char *,struct pt_regs *,long);
68extern void __die(const char * str, struct pt_regs * regs, long err);
69extern void __show_regs(struct pt_regs * regs);
70extern void show_regs(struct pt_regs * regs);
71
Linus Torvalds1da177e2005-04-16 15:20:36 -070072extern char *syscall32_page;
73extern void syscall32_cpu_init(void);
74
75extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
76
77extern void check_ioapic(void);
78extern void check_efer(void);
79
80extern int unhandled_signal(struct task_struct *tsk, int sig);
81
82extern void select_idle_routine(const struct cpuinfo_x86 *c);
83extern void swiotlb_init(void);
84
85extern unsigned long max_mapnr;
86extern unsigned long end_pfn;
87extern unsigned long table_start, table_end;
88
89extern int exception_trace;
90extern int force_iommu, no_iommu;
91extern int using_apic_timer;
92extern int disable_apic;
93extern unsigned cpu_khz;
94extern int ioapic_force;
95extern int skip_ioapic_setup;
96extern int acpi_ht;
97extern int acpi_disabled;
98
99extern int fallback_aper_order;
100extern int fallback_aper_force;
101extern int iommu_aperture;
102extern int iommu_aperture_disabled;
103extern int iommu_aperture_allowed;
104extern int fix_aperture;
105extern int force_iommu;
106
107extern int reboot_force;
108
109extern void smp_local_timer_interrupt(struct pt_regs * regs);
110
111long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
112
113#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
114#define round_down(x,y) ((x) & ~((y)-1))
115
116#endif