diff options
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/bios_ebda.h | 2 | ||||
-rw-r--r-- | include/asm-x86/io_apic.h | 6 | ||||
-rw-r--r-- | include/asm-x86/mach-default/smpboot_hooks.h | 2 | ||||
-rw-r--r-- | include/asm-x86/pgtable_32.h | 8 | ||||
-rw-r--r-- | include/asm-x86/posix_types.h | 8 | ||||
-rw-r--r-- | include/asm-x86/processor.h | 1 | ||||
-rw-r--r-- | include/asm-x86/ptrace.h | 2 | ||||
-rw-r--r-- | include/asm-x86/rio.h | 11 | ||||
-rw-r--r-- | include/asm-x86/unistd.h | 8 |
9 files changed, 27 insertions, 21 deletions
diff --git a/include/asm-x86/bios_ebda.h b/include/asm-x86/bios_ebda.h index 9cbd9a668af8..b4a46b7be794 100644 --- a/include/asm-x86/bios_ebda.h +++ b/include/asm-x86/bios_ebda.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _MACH_BIOS_EBDA_H | 1 | #ifndef _MACH_BIOS_EBDA_H |
2 | #define _MACH_BIOS_EBDA_H | 2 | #define _MACH_BIOS_EBDA_H |
3 | 3 | ||
4 | #include <asm/io.h> | ||
5 | |||
4 | /* | 6 | /* |
5 | * there is a real-mode segmented pointer pointing to the | 7 | * there is a real-mode segmented pointer pointing to the |
6 | * 4K EBDA area at 0x40E. | 8 | * 4K EBDA area at 0x40E. |
diff --git a/include/asm-x86/io_apic.h b/include/asm-x86/io_apic.h index 0c9e17c73e05..d593e14f0341 100644 --- a/include/asm-x86/io_apic.h +++ b/include/asm-x86/io_apic.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __ASM_IO_APIC_H | 1 | #ifndef __ASM_IO_APIC_H |
2 | #define __ASM_IO_APIC_H | 2 | #define __ASM_IO_APIC_H |
3 | 3 | ||
4 | #include <asm/types.h> | 4 | #include <linux/types.h> |
5 | #include <asm/mpspec.h> | 5 | #include <asm/mpspec.h> |
6 | #include <asm/apicdef.h> | 6 | #include <asm/apicdef.h> |
7 | 7 | ||
@@ -110,11 +110,13 @@ extern int nr_ioapic_registers[MAX_IO_APICS]; | |||
110 | * MP-BIOS irq configuration table structures: | 110 | * MP-BIOS irq configuration table structures: |
111 | */ | 111 | */ |
112 | 112 | ||
113 | #define MP_MAX_IOAPIC_PIN 127 | ||
114 | |||
113 | struct mp_ioapic_routing { | 115 | struct mp_ioapic_routing { |
114 | int apic_id; | 116 | int apic_id; |
115 | int gsi_base; | 117 | int gsi_base; |
116 | int gsi_end; | 118 | int gsi_end; |
117 | u32 pin_programmed[4]; | 119 | DECLARE_BITMAP(pin_programmed, MP_MAX_IOAPIC_PIN + 1); |
118 | }; | 120 | }; |
119 | 121 | ||
120 | /* I/O APIC entries */ | 122 | /* I/O APIC entries */ |
diff --git a/include/asm-x86/mach-default/smpboot_hooks.h b/include/asm-x86/mach-default/smpboot_hooks.h index 3ff2c5bff93a..56d0e1fa0258 100644 --- a/include/asm-x86/mach-default/smpboot_hooks.h +++ b/include/asm-x86/mach-default/smpboot_hooks.h | |||
@@ -33,7 +33,7 @@ static inline void smpboot_restore_warm_reset_vector(void) | |||
33 | *((volatile long *) phys_to_virt(0x467)) = 0; | 33 | *((volatile long *) phys_to_virt(0x467)) = 0; |
34 | } | 34 | } |
35 | 35 | ||
36 | static inline void smpboot_setup_io_apic(void) | 36 | static inline void __init smpboot_setup_io_apic(void) |
37 | { | 37 | { |
38 | /* | 38 | /* |
39 | * Here we can be sure that there is an IO-APIC in the system. Let's | 39 | * Here we can be sure that there is an IO-APIC in the system. Let's |
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index 168b6447cf18..577ab79c4c27 100644 --- a/include/asm-x86/pgtable_32.h +++ b/include/asm-x86/pgtable_32.h | |||
@@ -198,16 +198,16 @@ do { \ | |||
198 | */ | 198 | */ |
199 | #define update_mmu_cache(vma, address, pte) do { } while (0) | 199 | #define update_mmu_cache(vma, address, pte) do { } while (0) |
200 | 200 | ||
201 | void native_pagetable_setup_start(pgd_t *base); | 201 | extern void native_pagetable_setup_start(pgd_t *base); |
202 | void native_pagetable_setup_done(pgd_t *base); | 202 | extern void native_pagetable_setup_done(pgd_t *base); |
203 | 203 | ||
204 | #ifndef CONFIG_PARAVIRT | 204 | #ifndef CONFIG_PARAVIRT |
205 | static inline void paravirt_pagetable_setup_start(pgd_t *base) | 205 | static inline void __init paravirt_pagetable_setup_start(pgd_t *base) |
206 | { | 206 | { |
207 | native_pagetable_setup_start(base); | 207 | native_pagetable_setup_start(base); |
208 | } | 208 | } |
209 | 209 | ||
210 | static inline void paravirt_pagetable_setup_done(pgd_t *base) | 210 | static inline void __init paravirt_pagetable_setup_done(pgd_t *base) |
211 | { | 211 | { |
212 | native_pagetable_setup_done(base); | 212 | native_pagetable_setup_done(base); |
213 | } | 213 | } |
diff --git a/include/asm-x86/posix_types.h b/include/asm-x86/posix_types.h index fe312a5ba204..bb7133dc155d 100644 --- a/include/asm-x86/posix_types.h +++ b/include/asm-x86/posix_types.h | |||
@@ -1,5 +1,11 @@ | |||
1 | #ifdef __KERNEL__ | 1 | #ifdef __KERNEL__ |
2 | # if defined(CONFIG_X86_32) || defined(__i386__) | 2 | # ifdef CONFIG_X86_32 |
3 | # include "posix_types_32.h" | ||
4 | # else | ||
5 | # include "posix_types_64.h" | ||
6 | # endif | ||
7 | #else | ||
8 | # ifdef __i386__ | ||
3 | # include "posix_types_32.h" | 9 | # include "posix_types_32.h" |
4 | # else | 10 | # else |
5 | # include "posix_types_64.h" | 11 | # include "posix_types_64.h" |
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index e6bf92ddeb21..117343b0c271 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -118,7 +118,6 @@ struct cpuinfo_x86 { | |||
118 | #define X86_VENDOR_CYRIX 1 | 118 | #define X86_VENDOR_CYRIX 1 |
119 | #define X86_VENDOR_AMD 2 | 119 | #define X86_VENDOR_AMD 2 |
120 | #define X86_VENDOR_UMC 3 | 120 | #define X86_VENDOR_UMC 3 |
121 | #define X86_VENDOR_NEXGEN 4 | ||
122 | #define X86_VENDOR_CENTAUR 5 | 121 | #define X86_VENDOR_CENTAUR 5 |
123 | #define X86_VENDOR_TRANSMETA 7 | 122 | #define X86_VENDOR_TRANSMETA 7 |
124 | #define X86_VENDOR_NSC 8 | 123 | #define X86_VENDOR_NSC 8 |
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 24ec061566c5..9f922b0b95d6 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -231,6 +231,8 @@ extern int do_get_thread_area(struct task_struct *p, int idx, | |||
231 | extern int do_set_thread_area(struct task_struct *p, int idx, | 231 | extern int do_set_thread_area(struct task_struct *p, int idx, |
232 | struct user_desc __user *info, int can_allocate); | 232 | struct user_desc __user *info, int can_allocate); |
233 | 233 | ||
234 | #define __ARCH_WANT_COMPAT_SYS_PTRACE | ||
235 | |||
234 | #endif /* __KERNEL__ */ | 236 | #endif /* __KERNEL__ */ |
235 | 237 | ||
236 | #endif /* !__ASSEMBLY__ */ | 238 | #endif /* !__ASSEMBLY__ */ |
diff --git a/include/asm-x86/rio.h b/include/asm-x86/rio.h index 3451c576e6af..c9448bd8968f 100644 --- a/include/asm-x86/rio.h +++ b/include/asm-x86/rio.h | |||
@@ -60,15 +60,4 @@ enum { | |||
60 | ALT_CALGARY = 5, /* Second Planar Calgary */ | 60 | ALT_CALGARY = 5, /* Second Planar Calgary */ |
61 | }; | 61 | }; |
62 | 62 | ||
63 | /* | ||
64 | * there is a real-mode segmented pointer pointing to the | ||
65 | * 4K EBDA area at 0x40E. | ||
66 | */ | ||
67 | static inline unsigned long get_bios_ebda(void) | ||
68 | { | ||
69 | unsigned long address = *(unsigned short *)phys_to_virt(0x40EUL); | ||
70 | address <<= 4; | ||
71 | return address; | ||
72 | } | ||
73 | |||
74 | #endif /* __ASM_RIO_H */ | 63 | #endif /* __ASM_RIO_H */ |
diff --git a/include/asm-x86/unistd.h b/include/asm-x86/unistd.h index effc7ad8e12f..2a58ed3e51d8 100644 --- a/include/asm-x86/unistd.h +++ b/include/asm-x86/unistd.h | |||
@@ -1,5 +1,11 @@ | |||
1 | #ifdef __KERNEL__ | 1 | #ifdef __KERNEL__ |
2 | # if defined(CONFIG_X86_32) || defined(__i386__) | 2 | # ifdef CONFIG_X86_32 |
3 | # include "unistd_32.h" | ||
4 | # else | ||
5 | # include "unistd_64.h" | ||
6 | # endif | ||
7 | #else | ||
8 | # ifdef __i386__ | ||
3 | # include "unistd_32.h" | 9 | # include "unistd_32.h" |
4 | # else | 10 | # else |
5 | # include "unistd_64.h" | 11 | # include "unistd_64.h" |