aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:31:58 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:58 -0500
commitaca46ba29298810b329518b96f97ace985027b59 (patch)
treec333df7ec7aa9cac3a1ed30a522d8f75757aec2a /include
parent2f66dcc933f012cd487c5ebf5d400e50b1d5c488 (diff)
x86: remove unused include/asm-x86/processor_32/64.h
remove unused include/asm-x86/processor_32/64.h. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/processor_32.h97
-rw-r--r--include/asm-x86/processor_64.h66
2 files changed, 0 insertions, 163 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
deleted file mode 100644
index 0d6a430b2bc3..000000000000
--- a/include/asm-x86/processor_32.h
+++ /dev/null
@@ -1,97 +0,0 @@
1/*
2 * Copyright (C) 1994 Linus Torvalds
3 */
4
5#ifndef __ASM_I386_PROCESSOR_H
6#define __ASM_I386_PROCESSOR_H
7
8#include <asm/vm86.h>
9#include <asm/math_emu.h>
10#include <asm/segment.h>
11#include <asm/page.h>
12#include <asm/types.h>
13#include <asm/sigcontext.h>
14#include <asm/cpufeature.h>
15#include <asm/msr.h>
16#include <asm/system.h>
17#include <linux/threads.h>
18#include <linux/init.h>
19#include <asm/desc_defs.h>
20
21/*
22 * the following now lives in the per cpu area:
23 * extern int cpu_llc_id[NR_CPUS];
24 */
25DECLARE_PER_CPU(u8, cpu_llc_id);
26
27/*
28 * User space process size: 3GB (default).
29 */
30#define TASK_SIZE (PAGE_OFFSET)
31
32#define INIT_THREAD { \
33 .sp0 = sizeof(init_stack) + (long)&init_stack, \
34 .vm86_info = NULL, \
35 .sysenter_cs = __KERNEL_CS, \
36 .io_bitmap_ptr = NULL, \
37 .fs = __KERNEL_PERCPU, \
38}
39
40/*
41 * Note that the .io_bitmap member must be extra-big. This is because
42 * the CPU will access an additional byte beyond the end of the IO
43 * permission bitmap. The extra byte must be all 1 bits, and must
44 * be within the limit.
45 */
46#define INIT_TSS { \
47 .x86_tss = { \
48 .sp0 = sizeof(init_stack) + (long)&init_stack, \
49 .ss0 = __KERNEL_DS, \
50 .ss1 = __KERNEL_CS, \
51 .io_bitmap_base = INVALID_IO_BITMAP_OFFSET, \
52 }, \
53 .io_bitmap = { [ 0 ... IO_BITMAP_LONGS] = ~0 }, \
54}
55
56#define start_thread(regs, new_eip, new_esp) do { \
57 __asm__("movl %0,%%gs": :"r" (0)); \
58 regs->fs = 0; \
59 set_fs(USER_DS); \
60 regs->ds = __USER_DS; \
61 regs->es = __USER_DS; \
62 regs->ss = __USER_DS; \
63 regs->cs = __USER_CS; \
64 regs->ip = new_eip; \
65 regs->sp = new_esp; \
66} while (0)
67
68
69extern unsigned long thread_saved_pc(struct task_struct *tsk);
70
71#define THREAD_SIZE_LONGS (THREAD_SIZE/sizeof(unsigned long))
72#define KSTK_TOP(info) \
73({ \
74 unsigned long *__ptr = (unsigned long *)(info); \
75 (unsigned long)(&__ptr[THREAD_SIZE_LONGS]); \
76})
77
78/*
79 * The below -8 is to reserve 8 bytes on top of the ring0 stack.
80 * This is necessary to guarantee that the entire "struct pt_regs"
81 * is accessable even if the CPU haven't stored the SS/ESP registers
82 * on the stack (interrupt gate does not save these registers
83 * when switching to the same priv ring).
84 * Therefore beware: accessing the ss/esp fields of the
85 * "struct pt_regs" is possible, but they may contain the
86 * completely wrong values.
87 */
88#define task_pt_regs(task) \
89({ \
90 struct pt_regs *__regs__; \
91 __regs__ = (struct pt_regs *)(KSTK_TOP(task_stack_page(task))-8); \
92 __regs__ - 1; \
93})
94
95#define KSTK_ESP(task) (task_pt_regs(task)->sp)
96
97#endif /* __ASM_I386_PROCESSOR_H */
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h
deleted file mode 100644
index 04ce823ea7e6..000000000000
--- a/include/asm-x86/processor_64.h
+++ /dev/null
@@ -1,66 +0,0 @@
1/*
2 * Copyright (C) 1994 Linus Torvalds
3 */
4
5#ifndef __ASM_X86_64_PROCESSOR_H
6#define __ASM_X86_64_PROCESSOR_H
7
8#include <asm/segment.h>
9#include <asm/page.h>
10#include <asm/types.h>
11#include <asm/sigcontext.h>
12#include <asm/cpufeature.h>
13#include <linux/threads.h>
14#include <asm/msr.h>
15#include <asm/current.h>
16#include <asm/system.h>
17#include <linux/personality.h>
18#include <asm/desc_defs.h>
19
20/*
21 * User space process size. 47bits minus one guard page.
22 */
23#define TASK_SIZE64 (0x800000000000UL - 4096)
24
25/* This decides where the kernel will search for a free chunk of vm
26 * space during mmap's.
27 */
28#define IA32_PAGE_OFFSET ((current->personality & ADDR_LIMIT_3GB) ? 0xc0000000 : 0xFFFFe000)
29
30#define TASK_SIZE (test_thread_flag(TIF_IA32) ? IA32_PAGE_OFFSET : TASK_SIZE64)
31#define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_IA32)) ? IA32_PAGE_OFFSET : TASK_SIZE64)
32
33
34
35DECLARE_PER_CPU(struct orig_ist, orig_ist);
36
37#define INIT_THREAD { \
38 .sp0 = (unsigned long)&init_stack + sizeof(init_stack) \
39}
40
41#define INIT_TSS { \
42 .x86_tss.sp0 = (unsigned long)&init_stack + sizeof(init_stack) \
43}
44
45#define start_thread(regs,new_rip,new_rsp) do { \
46 asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \
47 load_gs_index(0); \
48 (regs)->ip = (new_rip); \
49 (regs)->sp = (new_rsp); \
50 write_pda(oldrsp, (new_rsp)); \
51 (regs)->cs = __USER_CS; \
52 (regs)->ss = __USER_DS; \
53 (regs)->flags = 0x200; \
54 set_fs(USER_DS); \
55} while(0)
56
57/*
58 * Return saved PC of a blocked thread.
59 * What is this good for? it will be always the scheduler or ret_from_fork.
60 */
61#define thread_saved_pc(t) (*(unsigned long *)((t)->thread.sp - 8))
62
63#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1)
64#define KSTK_ESP(tsk) -1 /* sorry. doesn't work for syscall. */
65
66#endif /* __ASM_X86_64_PROCESSOR_H */