diff options
107 files changed, 4441 insertions, 2283 deletions
diff --git a/Documentation/i386/IO-APIC.txt b/Documentation/i386/IO-APIC.txt index 435e69e6e9aa..f95166645d29 100644 --- a/Documentation/i386/IO-APIC.txt +++ b/Documentation/i386/IO-APIC.txt | |||
@@ -1,12 +1,14 @@ | |||
1 | Most (all) Intel-MP compliant SMP boards have the so-called 'IO-APIC', | 1 | Most (all) Intel-MP compliant SMP boards have the so-called 'IO-APIC', |
2 | which is an enhanced interrupt controller, it enables us to route | 2 | which is an enhanced interrupt controller. It enables us to route |
3 | hardware interrupts to multiple CPUs, or to CPU groups. | 3 | hardware interrupts to multiple CPUs, or to CPU groups. Without an |
4 | IO-APIC, interrupts from hardware will be delivered only to the | ||
5 | CPU which boots the operating system (usually CPU#0). | ||
4 | 6 | ||
5 | Linux supports all variants of compliant SMP boards, including ones with | 7 | Linux supports all variants of compliant SMP boards, including ones with |
6 | multiple IO-APICs. (multiple IO-APICs are used in high-end servers to | 8 | multiple IO-APICs. Multiple IO-APICs are used in high-end servers to |
7 | distribute IRQ load further). | 9 | distribute IRQ load further. |
8 | 10 | ||
9 | There are (a few) known breakages in certain older boards, which bugs are | 11 | There are (a few) known breakages in certain older boards, such bugs are |
10 | usually worked around by the kernel. If your MP-compliant SMP board does | 12 | usually worked around by the kernel. If your MP-compliant SMP board does |
11 | not boot Linux, then consult the linux-smp mailing list archives first. | 13 | not boot Linux, then consult the linux-smp mailing list archives first. |
12 | 14 | ||
@@ -28,18 +30,18 @@ If your box boots fine with enabled IO-APIC IRQs, then your | |||
28 | hell:~> | 30 | hell:~> |
29 | <---------------------------- | 31 | <---------------------------- |
30 | 32 | ||
31 | some interrupts are still listed as 'XT PIC', but this is not a problem, | 33 | Some interrupts are still listed as 'XT PIC', but this is not a problem; |
32 | none of those IRQ sources is performance-critical. | 34 | none of those IRQ sources is performance-critical. |
33 | 35 | ||
34 | 36 | ||
35 | in the unlikely case that your board does not create a working mp-table, | 37 | In the unlikely case that your board does not create a working mp-table, |
36 | you can use the pirq= boot parameter to 'hand-construct' IRQ entries. This | 38 | you can use the pirq= boot parameter to 'hand-construct' IRQ entries. This |
37 | is nontrivial though and cannot be automated. One sample /etc/lilo.conf | 39 | is non-trivial though and cannot be automated. One sample /etc/lilo.conf |
38 | entry: | 40 | entry: |
39 | 41 | ||
40 | append="pirq=15,11,10" | 42 | append="pirq=15,11,10" |
41 | 43 | ||
42 | the actual numbers depend on your system, on your PCI cards and on their | 44 | The actual numbers depend on your system, on your PCI cards and on their |
43 | PCI slot position. Usually PCI slots are 'daisy chained' before they are | 45 | PCI slot position. Usually PCI slots are 'daisy chained' before they are |
44 | connected to the PCI chipset IRQ routing facility (the incoming PIRQ1-4 | 46 | connected to the PCI chipset IRQ routing facility (the incoming PIRQ1-4 |
45 | lines): | 47 | lines): |
@@ -54,7 +56,7 @@ lines): | |||
54 | PIRQ1 ----| |- `----| |- `----| |- `----| |--------| | | 56 | PIRQ1 ----| |- `----| |- `----| |- `----| |--------| | |
55 | `-' `-' `-' `-' `-' | 57 | `-' `-' `-' `-' `-' |
56 | 58 | ||
57 | every PCI card emits a PCI IRQ, which can be INTA,INTB,INTC,INTD: | 59 | Every PCI card emits a PCI IRQ, which can be INTA, INTB, INTC or INTD: |
58 | 60 | ||
59 | ,-. | 61 | ,-. |
60 | INTD--| | | 62 | INTD--| | |
@@ -95,21 +97,21 @@ card (IRQ11) in Slot3, and have Slot1 empty: | |||
95 | [value '0' is a generic 'placeholder', reserved for empty (or non-IRQ emitting) | 97 | [value '0' is a generic 'placeholder', reserved for empty (or non-IRQ emitting) |
96 | slots.] | 98 | slots.] |
97 | 99 | ||
98 | generally, it's always possible to find out the correct pirq= settings, just | 100 | Generally, it's always possible to find out the correct pirq= settings, just |
99 | permute all IRQ numbers properly ... it will take some time though. An | 101 | permute all IRQ numbers properly ... it will take some time though. An |
100 | 'incorrect' pirq line will cause the booting process to hang, or a device | 102 | 'incorrect' pirq line will cause the booting process to hang, or a device |
101 | won't function properly (if it's inserted as eg. a module). | 103 | won't function properly (e.g. if it's inserted as a module). |
102 | 104 | ||
103 | If you have 2 PCI buses, then you can use up to 8 pirq values. Although such | 105 | If you have 2 PCI buses, then you can use up to 8 pirq values, although such |
104 | boards tend to have a good configuration. | 106 | boards tend to have a good configuration. |
105 | 107 | ||
106 | Be prepared that it might happen that you need some strange pirq line: | 108 | Be prepared that it might happen that you need some strange pirq line: |
107 | 109 | ||
108 | append="pirq=0,0,0,0,0,0,9,11" | 110 | append="pirq=0,0,0,0,0,0,9,11" |
109 | 111 | ||
110 | use smart try-and-err techniques to find out the correct pirq line ... | 112 | Use smart trial-and-error techniques to find out the correct pirq line ... |
111 | 113 | ||
112 | good luck and mail to linux-smp@vger.kernel.org or | 114 | Good luck and mail to linux-smp@vger.kernel.org or |
113 | linux-kernel@vger.kernel.org if you have any problems that are not covered | 115 | linux-kernel@vger.kernel.org if you have any problems that are not covered |
114 | by this document. | 116 | by this document. |
115 | 117 | ||
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index a4fc7fc21439..7278295f94d2 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1056,8 +1056,6 @@ and is between 256 and 4096 characters. It is defined in the file | |||
1056 | [SCSI] Maximum number of LUNs received. | 1056 | [SCSI] Maximum number of LUNs received. |
1057 | Should be between 1 and 16384. | 1057 | Should be between 1 and 16384. |
1058 | 1058 | ||
1059 | mca-pentium [BUGS=X86-32] | ||
1060 | |||
1061 | mcatest= [IA-64] | 1059 | mcatest= [IA-64] |
1062 | 1060 | ||
1063 | mce [X86-32] Machine Check Exception | 1061 | mce [X86-32] Machine Check Exception |
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c index 1b6b0fa5028f..8d36f186890e 100644 --- a/arch/mips/bcm47xx/setup.c +++ b/arch/mips/bcm47xx/setup.c | |||
@@ -92,17 +92,17 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus, | |||
92 | iv->sprom.revision = 3; | 92 | iv->sprom.revision = 3; |
93 | 93 | ||
94 | if (cfe_getenv("et0macaddr", buf, sizeof(buf)) >= 0) | 94 | if (cfe_getenv("et0macaddr", buf, sizeof(buf)) >= 0) |
95 | str2eaddr(buf, iv->sprom.r1.et0mac); | 95 | str2eaddr(buf, iv->sprom.et0mac); |
96 | if (cfe_getenv("et1macaddr", buf, sizeof(buf)) >= 0) | 96 | if (cfe_getenv("et1macaddr", buf, sizeof(buf)) >= 0) |
97 | str2eaddr(buf, iv->sprom.r1.et1mac); | 97 | str2eaddr(buf, iv->sprom.et1mac); |
98 | if (cfe_getenv("et0phyaddr", buf, sizeof(buf)) >= 0) | 98 | if (cfe_getenv("et0phyaddr", buf, sizeof(buf)) >= 0) |
99 | iv->sprom.r1.et0phyaddr = simple_strtoul(buf, NULL, 10); | 99 | iv->sprom.et0phyaddr = simple_strtoul(buf, NULL, 10); |
100 | if (cfe_getenv("et1phyaddr", buf, sizeof(buf)) >= 0) | 100 | if (cfe_getenv("et1phyaddr", buf, sizeof(buf)) >= 0) |
101 | iv->sprom.r1.et1phyaddr = simple_strtoul(buf, NULL, 10); | 101 | iv->sprom.et1phyaddr = simple_strtoul(buf, NULL, 10); |
102 | if (cfe_getenv("et0mdcport", buf, sizeof(buf)) >= 0) | 102 | if (cfe_getenv("et0mdcport", buf, sizeof(buf)) >= 0) |
103 | iv->sprom.r1.et0mdcport = simple_strtoul(buf, NULL, 10); | 103 | iv->sprom.et0mdcport = simple_strtoul(buf, NULL, 10); |
104 | if (cfe_getenv("et1mdcport", buf, sizeof(buf)) >= 0) | 104 | if (cfe_getenv("et1mdcport", buf, sizeof(buf)) >= 0) |
105 | iv->sprom.r1.et1mdcport = simple_strtoul(buf, NULL, 10); | 105 | iv->sprom.et1mdcport = simple_strtoul(buf, NULL, 10); |
106 | 106 | ||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
diff --git a/arch/mips/bcm47xx/wgt634u.c b/arch/mips/bcm47xx/wgt634u.c index 5a017eaee712..d1d90c9ef2fa 100644 --- a/arch/mips/bcm47xx/wgt634u.c +++ b/arch/mips/bcm47xx/wgt634u.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/platform_device.h> | 9 | #include <linux/platform_device.h> |
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/leds.h> | 11 | #include <linux/leds.h> |
12 | #include <linux/mtd/physmap.h> | ||
12 | #include <linux/ssb/ssb.h> | 13 | #include <linux/ssb/ssb.h> |
13 | #include <asm/mach-bcm47xx/bcm47xx.h> | 14 | #include <asm/mach-bcm47xx/bcm47xx.h> |
14 | 15 | ||
@@ -43,6 +44,61 @@ static struct platform_device wgt634u_gpio_leds = { | |||
43 | } | 44 | } |
44 | }; | 45 | }; |
45 | 46 | ||
47 | |||
48 | /* 8MiB flash. The struct mtd_partition matches original Netgear WGT634U | ||
49 | firmware. */ | ||
50 | static struct mtd_partition wgt634u_partitions[] = { | ||
51 | { | ||
52 | .name = "cfe", | ||
53 | .offset = 0, | ||
54 | .size = 0x60000, /* 384k */ | ||
55 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
56 | }, | ||
57 | { | ||
58 | .name = "config", | ||
59 | .offset = 0x60000, | ||
60 | .size = 0x20000 /* 128k */ | ||
61 | }, | ||
62 | { | ||
63 | .name = "linux", | ||
64 | .offset = 0x80000, | ||
65 | .size = 0x140000 /* 1280k */ | ||
66 | }, | ||
67 | { | ||
68 | .name = "jffs", | ||
69 | .offset = 0x1c0000, | ||
70 | .size = 0x620000 /* 6272k */ | ||
71 | }, | ||
72 | { | ||
73 | .name = "nvram", | ||
74 | .offset = 0x7e0000, | ||
75 | .size = 0x20000 /* 128k */ | ||
76 | }, | ||
77 | }; | ||
78 | |||
79 | static struct physmap_flash_data wgt634u_flash_data = { | ||
80 | .parts = wgt634u_partitions, | ||
81 | .nr_parts = ARRAY_SIZE(wgt634u_partitions) | ||
82 | }; | ||
83 | |||
84 | static struct resource wgt634u_flash_resource = { | ||
85 | .flags = IORESOURCE_MEM, | ||
86 | }; | ||
87 | |||
88 | static struct platform_device wgt634u_flash = { | ||
89 | .name = "physmap-flash", | ||
90 | .id = 0, | ||
91 | .dev = { .platform_data = &wgt634u_flash_data, }, | ||
92 | .resource = &wgt634u_flash_resource, | ||
93 | .num_resources = 1, | ||
94 | }; | ||
95 | |||
96 | /* Platform devices */ | ||
97 | static struct platform_device *wgt634u_devices[] __initdata = { | ||
98 | &wgt634u_flash, | ||
99 | &wgt634u_gpio_leds, | ||
100 | }; | ||
101 | |||
46 | static int __init wgt634u_init(void) | 102 | static int __init wgt634u_init(void) |
47 | { | 103 | { |
48 | /* There is no easy way to detect that we are running on a WGT634U | 104 | /* There is no easy way to detect that we are running on a WGT634U |
@@ -50,13 +106,20 @@ static int __init wgt634u_init(void) | |||
50 | * been allocated ranges 00:09:5b:xx:xx:xx and 00:0f:b5:xx:xx:xx. | 106 | * been allocated ranges 00:09:5b:xx:xx:xx and 00:0f:b5:xx:xx:xx. |
51 | */ | 107 | */ |
52 | 108 | ||
53 | u8 *et0mac = ssb_bcm47xx.sprom.r1.et0mac; | 109 | u8 *et0mac = ssb_bcm47xx.sprom.et0mac; |
54 | 110 | ||
55 | if (et0mac[0] == 0x00 && | 111 | if (et0mac[0] == 0x00 && |
56 | ((et0mac[1] == 0x09 && et0mac[2] == 0x5b) || | 112 | ((et0mac[1] == 0x09 && et0mac[2] == 0x5b) || |
57 | (et0mac[1] == 0x0f && et0mac[2] == 0xb5))) | 113 | (et0mac[1] == 0x0f && et0mac[2] == 0xb5))) { |
58 | return platform_device_register(&wgt634u_gpio_leds); | 114 | struct ssb_mipscore *mcore = &ssb_bcm47xx.mipscore; |
59 | else | 115 | wgt634u_flash_data.width = mcore->flash_buswidth; |
116 | wgt634u_flash_resource.start = mcore->flash_window; | ||
117 | wgt634u_flash_resource.end = mcore->flash_window | ||
118 | + mcore->flash_window_size | ||
119 | - 1; | ||
120 | return platform_add_devices(wgt634u_devices, | ||
121 | ARRAY_SIZE(wgt634u_devices)); | ||
122 | } else | ||
60 | return -ENODEV; | 123 | return -ENODEV; |
61 | } | 124 | } |
62 | 125 | ||
diff --git a/arch/mips/configs/bcm47xx_defconfig b/arch/mips/configs/bcm47xx_defconfig new file mode 100644 index 000000000000..c0e42e74dfbd --- /dev/null +++ b/arch/mips/configs/bcm47xx_defconfig | |||
@@ -0,0 +1,1939 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.25-rc2 | ||
4 | # Mon Feb 18 11:55:24 2008 | ||
5 | # | ||
6 | CONFIG_MIPS=y | ||
7 | |||
8 | # | ||
9 | # Machine selection | ||
10 | # | ||
11 | # CONFIG_MACH_ALCHEMY is not set | ||
12 | # CONFIG_BASLER_EXCITE is not set | ||
13 | CONFIG_BCM47XX=y | ||
14 | # CONFIG_MIPS_COBALT is not set | ||
15 | # CONFIG_MACH_DECSTATION is not set | ||
16 | # CONFIG_MACH_JAZZ is not set | ||
17 | # CONFIG_LASAT is not set | ||
18 | # CONFIG_LEMOTE_FULONG is not set | ||
19 | # CONFIG_MIPS_ATLAS is not set | ||
20 | # CONFIG_MIPS_MALTA is not set | ||
21 | # CONFIG_MIPS_SEAD is not set | ||
22 | # CONFIG_MIPS_SIM is not set | ||
23 | # CONFIG_MARKEINS is not set | ||
24 | # CONFIG_MACH_VR41XX is not set | ||
25 | # CONFIG_PNX8550_JBS is not set | ||
26 | # CONFIG_PNX8550_STB810 is not set | ||
27 | # CONFIG_PMC_MSP is not set | ||
28 | # CONFIG_PMC_YOSEMITE is not set | ||
29 | # CONFIG_SGI_IP22 is not set | ||
30 | # CONFIG_SGI_IP27 is not set | ||
31 | # CONFIG_SGI_IP28 is not set | ||
32 | # CONFIG_SGI_IP32 is not set | ||
33 | # CONFIG_SIBYTE_CRHINE is not set | ||
34 | # CONFIG_SIBYTE_CARMEL is not set | ||
35 | # CONFIG_SIBYTE_CRHONE is not set | ||
36 | # CONFIG_SIBYTE_RHONE is not set | ||
37 | # CONFIG_SIBYTE_SWARM is not set | ||
38 | # CONFIG_SIBYTE_LITTLESUR is not set | ||
39 | # CONFIG_SIBYTE_SENTOSA is not set | ||
40 | # CONFIG_SIBYTE_BIGSUR is not set | ||
41 | # CONFIG_SNI_RM is not set | ||
42 | # CONFIG_TOSHIBA_JMR3927 is not set | ||
43 | # CONFIG_TOSHIBA_RBTX4927 is not set | ||
44 | # CONFIG_TOSHIBA_RBTX4938 is not set | ||
45 | # CONFIG_WR_PPMC is not set | ||
46 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
47 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
48 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
49 | CONFIG_ARCH_SUPPORTS_OPROFILE=y | ||
50 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
51 | CONFIG_GENERIC_HWEIGHT=y | ||
52 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
53 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
54 | CONFIG_GENERIC_TIME=y | ||
55 | CONFIG_GENERIC_CMOS_UPDATE=y | ||
56 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
57 | # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set | ||
58 | CONFIG_CEVT_R4K=y | ||
59 | CONFIG_CSRC_R4K=y | ||
60 | CONFIG_CFE=y | ||
61 | CONFIG_DMA_NONCOHERENT=y | ||
62 | CONFIG_DMA_NEED_PCI_MAP_STATE=y | ||
63 | CONFIG_EARLY_PRINTK=y | ||
64 | CONFIG_SYS_HAS_EARLY_PRINTK=y | ||
65 | # CONFIG_HOTPLUG_CPU is not set | ||
66 | # CONFIG_NO_IOPORT is not set | ||
67 | CONFIG_GENERIC_GPIO=y | ||
68 | # CONFIG_CPU_BIG_ENDIAN is not set | ||
69 | CONFIG_CPU_LITTLE_ENDIAN=y | ||
70 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y | ||
71 | CONFIG_IRQ_CPU=y | ||
72 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | ||
73 | |||
74 | # | ||
75 | # CPU selection | ||
76 | # | ||
77 | # CONFIG_CPU_LOONGSON2 is not set | ||
78 | CONFIG_CPU_MIPS32_R1=y | ||
79 | # CONFIG_CPU_MIPS32_R2 is not set | ||
80 | # CONFIG_CPU_MIPS64_R1 is not set | ||
81 | # CONFIG_CPU_MIPS64_R2 is not set | ||
82 | # CONFIG_CPU_R3000 is not set | ||
83 | # CONFIG_CPU_TX39XX is not set | ||
84 | # CONFIG_CPU_VR41XX is not set | ||
85 | # CONFIG_CPU_R4300 is not set | ||
86 | # CONFIG_CPU_R4X00 is not set | ||
87 | # CONFIG_CPU_TX49XX is not set | ||
88 | # CONFIG_CPU_R5000 is not set | ||
89 | # CONFIG_CPU_R5432 is not set | ||
90 | # CONFIG_CPU_R6000 is not set | ||
91 | # CONFIG_CPU_NEVADA is not set | ||
92 | # CONFIG_CPU_R8000 is not set | ||
93 | # CONFIG_CPU_R10000 is not set | ||
94 | # CONFIG_CPU_RM7000 is not set | ||
95 | # CONFIG_CPU_RM9000 is not set | ||
96 | # CONFIG_CPU_SB1 is not set | ||
97 | CONFIG_SYS_HAS_CPU_MIPS32_R1=y | ||
98 | CONFIG_CPU_MIPS32=y | ||
99 | CONFIG_CPU_MIPSR1=y | ||
100 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | ||
101 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||
102 | |||
103 | # | ||
104 | # Kernel type | ||
105 | # | ||
106 | CONFIG_32BIT=y | ||
107 | # CONFIG_64BIT is not set | ||
108 | CONFIG_PAGE_SIZE_4KB=y | ||
109 | # CONFIG_PAGE_SIZE_8KB is not set | ||
110 | # CONFIG_PAGE_SIZE_16KB is not set | ||
111 | # CONFIG_PAGE_SIZE_64KB is not set | ||
112 | CONFIG_CPU_HAS_PREFETCH=y | ||
113 | CONFIG_MIPS_MT_DISABLED=y | ||
114 | # CONFIG_MIPS_MT_SMP is not set | ||
115 | # CONFIG_MIPS_MT_SMTC is not set | ||
116 | CONFIG_CPU_HAS_LLSC=y | ||
117 | CONFIG_CPU_HAS_SYNC=y | ||
118 | CONFIG_GENERIC_HARDIRQS=y | ||
119 | CONFIG_GENERIC_IRQ_PROBE=y | ||
120 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||
121 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
122 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
123 | CONFIG_SELECT_MEMORY_MODEL=y | ||
124 | CONFIG_FLATMEM_MANUAL=y | ||
125 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
126 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
127 | CONFIG_FLATMEM=y | ||
128 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
129 | # CONFIG_SPARSEMEM_STATIC is not set | ||
130 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
131 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
132 | # CONFIG_RESOURCES_64BIT is not set | ||
133 | CONFIG_ZONE_DMA_FLAG=0 | ||
134 | CONFIG_VIRT_TO_BUS=y | ||
135 | CONFIG_TICK_ONESHOT=y | ||
136 | CONFIG_NO_HZ=y | ||
137 | CONFIG_HIGH_RES_TIMERS=y | ||
138 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
139 | # CONFIG_HZ_48 is not set | ||
140 | # CONFIG_HZ_100 is not set | ||
141 | # CONFIG_HZ_128 is not set | ||
142 | CONFIG_HZ_250=y | ||
143 | # CONFIG_HZ_256 is not set | ||
144 | # CONFIG_HZ_1000 is not set | ||
145 | # CONFIG_HZ_1024 is not set | ||
146 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
147 | CONFIG_HZ=250 | ||
148 | CONFIG_PREEMPT_NONE=y | ||
149 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
150 | # CONFIG_PREEMPT is not set | ||
151 | CONFIG_RCU_TRACE=y | ||
152 | CONFIG_KEXEC=y | ||
153 | # CONFIG_SECCOMP is not set | ||
154 | CONFIG_LOCKDEP_SUPPORT=y | ||
155 | CONFIG_STACKTRACE_SUPPORT=y | ||
156 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
157 | |||
158 | # | ||
159 | # General setup | ||
160 | # | ||
161 | CONFIG_EXPERIMENTAL=y | ||
162 | CONFIG_BROKEN_ON_SMP=y | ||
163 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
164 | CONFIG_LOCALVERSION="" | ||
165 | # CONFIG_LOCALVERSION_AUTO is not set | ||
166 | CONFIG_SWAP=y | ||
167 | CONFIG_SYSVIPC=y | ||
168 | CONFIG_SYSVIPC_SYSCTL=y | ||
169 | CONFIG_POSIX_MQUEUE=y | ||
170 | CONFIG_BSD_PROCESS_ACCT=y | ||
171 | CONFIG_BSD_PROCESS_ACCT_V3=y | ||
172 | CONFIG_TASKSTATS=y | ||
173 | CONFIG_TASK_DELAY_ACCT=y | ||
174 | CONFIG_TASK_XACCT=y | ||
175 | CONFIG_TASK_IO_ACCOUNTING=y | ||
176 | CONFIG_AUDIT=y | ||
177 | # CONFIG_IKCONFIG is not set | ||
178 | CONFIG_LOG_BUF_SHIFT=17 | ||
179 | CONFIG_CGROUPS=y | ||
180 | # CONFIG_CGROUP_DEBUG is not set | ||
181 | CONFIG_CGROUP_NS=y | ||
182 | CONFIG_GROUP_SCHED=y | ||
183 | CONFIG_FAIR_GROUP_SCHED=y | ||
184 | # CONFIG_RT_GROUP_SCHED is not set | ||
185 | CONFIG_USER_SCHED=y | ||
186 | # CONFIG_CGROUP_SCHED is not set | ||
187 | CONFIG_CGROUP_CPUACCT=y | ||
188 | # CONFIG_RESOURCE_COUNTERS is not set | ||
189 | CONFIG_SYSFS_DEPRECATED=y | ||
190 | CONFIG_RELAY=y | ||
191 | # CONFIG_NAMESPACES is not set | ||
192 | CONFIG_BLK_DEV_INITRD=y | ||
193 | CONFIG_INITRAMFS_SOURCE="" | ||
194 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
195 | CONFIG_SYSCTL=y | ||
196 | CONFIG_EMBEDDED=y | ||
197 | CONFIG_SYSCTL_SYSCALL=y | ||
198 | CONFIG_KALLSYMS=y | ||
199 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
200 | CONFIG_HOTPLUG=y | ||
201 | CONFIG_PRINTK=y | ||
202 | CONFIG_BUG=y | ||
203 | CONFIG_ELF_CORE=y | ||
204 | CONFIG_COMPAT_BRK=y | ||
205 | CONFIG_BASE_FULL=y | ||
206 | CONFIG_FUTEX=y | ||
207 | CONFIG_ANON_INODES=y | ||
208 | CONFIG_EPOLL=y | ||
209 | CONFIG_SIGNALFD=y | ||
210 | CONFIG_TIMERFD=y | ||
211 | CONFIG_EVENTFD=y | ||
212 | CONFIG_SHMEM=y | ||
213 | CONFIG_VM_EVENT_COUNTERS=y | ||
214 | CONFIG_SLAB=y | ||
215 | # CONFIG_SLUB is not set | ||
216 | # CONFIG_SLOB is not set | ||
217 | # CONFIG_PROFILING is not set | ||
218 | # CONFIG_MARKERS is not set | ||
219 | CONFIG_HAVE_OPROFILE=y | ||
220 | # CONFIG_HAVE_KPROBES is not set | ||
221 | CONFIG_PROC_PAGE_MONITOR=y | ||
222 | CONFIG_SLABINFO=y | ||
223 | CONFIG_RT_MUTEXES=y | ||
224 | # CONFIG_TINY_SHMEM is not set | ||
225 | CONFIG_BASE_SMALL=0 | ||
226 | CONFIG_MODULES=y | ||
227 | CONFIG_MODULE_UNLOAD=y | ||
228 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
229 | CONFIG_MODVERSIONS=y | ||
230 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
231 | CONFIG_KMOD=y | ||
232 | CONFIG_BLOCK=y | ||
233 | CONFIG_LBD=y | ||
234 | CONFIG_BLK_DEV_IO_TRACE=y | ||
235 | CONFIG_LSF=y | ||
236 | # CONFIG_BLK_DEV_BSG is not set | ||
237 | |||
238 | # | ||
239 | # IO Schedulers | ||
240 | # | ||
241 | CONFIG_IOSCHED_NOOP=y | ||
242 | CONFIG_IOSCHED_AS=y | ||
243 | CONFIG_IOSCHED_DEADLINE=y | ||
244 | CONFIG_IOSCHED_CFQ=y | ||
245 | # CONFIG_DEFAULT_AS is not set | ||
246 | # CONFIG_DEFAULT_DEADLINE is not set | ||
247 | CONFIG_DEFAULT_CFQ=y | ||
248 | # CONFIG_DEFAULT_NOOP is not set | ||
249 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
250 | CONFIG_CLASSIC_RCU=y | ||
251 | # CONFIG_PREEMPT_RCU is not set | ||
252 | |||
253 | # | ||
254 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | ||
255 | # | ||
256 | CONFIG_HW_HAS_PCI=y | ||
257 | CONFIG_PCI=y | ||
258 | CONFIG_PCI_DOMAINS=y | ||
259 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
260 | CONFIG_PCI_LEGACY=y | ||
261 | CONFIG_MMU=y | ||
262 | # CONFIG_PCCARD is not set | ||
263 | # CONFIG_HOTPLUG_PCI is not set | ||
264 | |||
265 | # | ||
266 | # Executable file formats | ||
267 | # | ||
268 | CONFIG_BINFMT_ELF=y | ||
269 | CONFIG_BINFMT_MISC=m | ||
270 | CONFIG_TRAD_SIGNALS=y | ||
271 | |||
272 | # | ||
273 | # Power management options | ||
274 | # | ||
275 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
276 | # CONFIG_PM is not set | ||
277 | |||
278 | # | ||
279 | # Networking | ||
280 | # | ||
281 | CONFIG_NET=y | ||
282 | |||
283 | # | ||
284 | # Networking options | ||
285 | # | ||
286 | CONFIG_PACKET=y | ||
287 | CONFIG_PACKET_MMAP=y | ||
288 | CONFIG_UNIX=y | ||
289 | CONFIG_XFRM=y | ||
290 | CONFIG_XFRM_USER=m | ||
291 | # CONFIG_XFRM_SUB_POLICY is not set | ||
292 | # CONFIG_XFRM_MIGRATE is not set | ||
293 | # CONFIG_XFRM_STATISTICS is not set | ||
294 | CONFIG_NET_KEY=m | ||
295 | # CONFIG_NET_KEY_MIGRATE is not set | ||
296 | CONFIG_INET=y | ||
297 | CONFIG_IP_MULTICAST=y | ||
298 | CONFIG_IP_ADVANCED_ROUTER=y | ||
299 | CONFIG_ASK_IP_FIB_HASH=y | ||
300 | # CONFIG_IP_FIB_TRIE is not set | ||
301 | CONFIG_IP_FIB_HASH=y | ||
302 | CONFIG_IP_MULTIPLE_TABLES=y | ||
303 | CONFIG_IP_ROUTE_MULTIPATH=y | ||
304 | CONFIG_IP_ROUTE_VERBOSE=y | ||
305 | # CONFIG_IP_PNP is not set | ||
306 | CONFIG_NET_IPIP=m | ||
307 | CONFIG_NET_IPGRE=m | ||
308 | CONFIG_NET_IPGRE_BROADCAST=y | ||
309 | CONFIG_IP_MROUTE=y | ||
310 | CONFIG_IP_PIMSM_V1=y | ||
311 | CONFIG_IP_PIMSM_V2=y | ||
312 | # CONFIG_ARPD is not set | ||
313 | CONFIG_SYN_COOKIES=y | ||
314 | CONFIG_INET_AH=m | ||
315 | CONFIG_INET_ESP=m | ||
316 | CONFIG_INET_IPCOMP=m | ||
317 | CONFIG_INET_XFRM_TUNNEL=m | ||
318 | CONFIG_INET_TUNNEL=m | ||
319 | CONFIG_INET_XFRM_MODE_TRANSPORT=m | ||
320 | CONFIG_INET_XFRM_MODE_TUNNEL=m | ||
321 | CONFIG_INET_XFRM_MODE_BEET=m | ||
322 | CONFIG_INET_LRO=m | ||
323 | CONFIG_INET_DIAG=m | ||
324 | CONFIG_INET_TCP_DIAG=m | ||
325 | CONFIG_TCP_CONG_ADVANCED=y | ||
326 | CONFIG_TCP_CONG_BIC=y | ||
327 | CONFIG_TCP_CONG_CUBIC=m | ||
328 | CONFIG_TCP_CONG_WESTWOOD=m | ||
329 | CONFIG_TCP_CONG_HTCP=m | ||
330 | CONFIG_TCP_CONG_HSTCP=m | ||
331 | CONFIG_TCP_CONG_HYBLA=m | ||
332 | CONFIG_TCP_CONG_VEGAS=m | ||
333 | CONFIG_TCP_CONG_SCALABLE=m | ||
334 | CONFIG_TCP_CONG_LP=m | ||
335 | CONFIG_TCP_CONG_VENO=m | ||
336 | CONFIG_TCP_CONG_YEAH=m | ||
337 | CONFIG_TCP_CONG_ILLINOIS=m | ||
338 | CONFIG_DEFAULT_BIC=y | ||
339 | # CONFIG_DEFAULT_CUBIC is not set | ||
340 | # CONFIG_DEFAULT_HTCP is not set | ||
341 | # CONFIG_DEFAULT_VEGAS is not set | ||
342 | # CONFIG_DEFAULT_WESTWOOD is not set | ||
343 | # CONFIG_DEFAULT_RENO is not set | ||
344 | CONFIG_DEFAULT_TCP_CONG="bic" | ||
345 | # CONFIG_TCP_MD5SIG is not set | ||
346 | CONFIG_IP_VS=m | ||
347 | # CONFIG_IP_VS_DEBUG is not set | ||
348 | CONFIG_IP_VS_TAB_BITS=12 | ||
349 | |||
350 | # | ||
351 | # IPVS transport protocol load balancing support | ||
352 | # | ||
353 | CONFIG_IP_VS_PROTO_TCP=y | ||
354 | CONFIG_IP_VS_PROTO_UDP=y | ||
355 | CONFIG_IP_VS_PROTO_ESP=y | ||
356 | CONFIG_IP_VS_PROTO_AH=y | ||
357 | |||
358 | # | ||
359 | # IPVS scheduler | ||
360 | # | ||
361 | CONFIG_IP_VS_RR=m | ||
362 | CONFIG_IP_VS_WRR=m | ||
363 | CONFIG_IP_VS_LC=m | ||
364 | CONFIG_IP_VS_WLC=m | ||
365 | CONFIG_IP_VS_LBLC=m | ||
366 | CONFIG_IP_VS_LBLCR=m | ||
367 | CONFIG_IP_VS_DH=m | ||
368 | CONFIG_IP_VS_SH=m | ||
369 | CONFIG_IP_VS_SED=m | ||
370 | CONFIG_IP_VS_NQ=m | ||
371 | |||
372 | # | ||
373 | # IPVS application helper | ||
374 | # | ||
375 | CONFIG_IP_VS_FTP=m | ||
376 | CONFIG_IPV6=m | ||
377 | CONFIG_IPV6_PRIVACY=y | ||
378 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
379 | # CONFIG_IPV6_OPTIMISTIC_DAD is not set | ||
380 | CONFIG_INET6_AH=m | ||
381 | CONFIG_INET6_ESP=m | ||
382 | CONFIG_INET6_IPCOMP=m | ||
383 | # CONFIG_IPV6_MIP6 is not set | ||
384 | CONFIG_INET6_XFRM_TUNNEL=m | ||
385 | CONFIG_INET6_TUNNEL=m | ||
386 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
387 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
388 | CONFIG_INET6_XFRM_MODE_BEET=m | ||
389 | CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m | ||
390 | CONFIG_IPV6_SIT=m | ||
391 | CONFIG_IPV6_TUNNEL=m | ||
392 | CONFIG_IPV6_MULTIPLE_TABLES=y | ||
393 | CONFIG_IPV6_SUBTREES=y | ||
394 | CONFIG_NETWORK_SECMARK=y | ||
395 | CONFIG_NETFILTER=y | ||
396 | # CONFIG_NETFILTER_DEBUG is not set | ||
397 | CONFIG_NETFILTER_ADVANCED=y | ||
398 | CONFIG_BRIDGE_NETFILTER=y | ||
399 | |||
400 | # | ||
401 | # Core Netfilter Configuration | ||
402 | # | ||
403 | CONFIG_NETFILTER_NETLINK=m | ||
404 | CONFIG_NETFILTER_NETLINK_QUEUE=m | ||
405 | CONFIG_NETFILTER_NETLINK_LOG=m | ||
406 | CONFIG_NF_CONNTRACK=m | ||
407 | CONFIG_NF_CT_ACCT=y | ||
408 | CONFIG_NF_CONNTRACK_MARK=y | ||
409 | CONFIG_NF_CONNTRACK_SECMARK=y | ||
410 | CONFIG_NF_CONNTRACK_EVENTS=y | ||
411 | CONFIG_NF_CT_PROTO_GRE=m | ||
412 | CONFIG_NF_CT_PROTO_SCTP=m | ||
413 | CONFIG_NF_CT_PROTO_UDPLITE=m | ||
414 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
415 | CONFIG_NF_CONNTRACK_FTP=m | ||
416 | CONFIG_NF_CONNTRACK_H323=m | ||
417 | CONFIG_NF_CONNTRACK_IRC=m | ||
418 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m | ||
419 | CONFIG_NF_CONNTRACK_PPTP=m | ||
420 | CONFIG_NF_CONNTRACK_SANE=m | ||
421 | CONFIG_NF_CONNTRACK_SIP=m | ||
422 | CONFIG_NF_CONNTRACK_TFTP=m | ||
423 | CONFIG_NF_CT_NETLINK=m | ||
424 | CONFIG_NETFILTER_XTABLES=m | ||
425 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | ||
426 | CONFIG_NETFILTER_XT_TARGET_CONNMARK=m | ||
427 | CONFIG_NETFILTER_XT_TARGET_DSCP=m | ||
428 | CONFIG_NETFILTER_XT_TARGET_MARK=m | ||
429 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | ||
430 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | ||
431 | CONFIG_NETFILTER_XT_TARGET_NOTRACK=m | ||
432 | # CONFIG_NETFILTER_XT_TARGET_RATEEST is not set | ||
433 | CONFIG_NETFILTER_XT_TARGET_TRACE=m | ||
434 | CONFIG_NETFILTER_XT_TARGET_SECMARK=m | ||
435 | CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=m | ||
436 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m | ||
437 | # CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set | ||
438 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
439 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m | ||
440 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m | ||
441 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
442 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | ||
443 | CONFIG_NETFILTER_XT_MATCH_DCCP=m | ||
444 | CONFIG_NETFILTER_XT_MATCH_DSCP=m | ||
445 | CONFIG_NETFILTER_XT_MATCH_ESP=m | ||
446 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | ||
447 | # CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set | ||
448 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | ||
449 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | ||
450 | CONFIG_NETFILTER_XT_MATCH_MAC=m | ||
451 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
452 | # CONFIG_NETFILTER_XT_MATCH_OWNER is not set | ||
453 | CONFIG_NETFILTER_XT_MATCH_POLICY=m | ||
454 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | ||
455 | CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m | ||
456 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | ||
457 | CONFIG_NETFILTER_XT_MATCH_QUOTA=m | ||
458 | # CONFIG_NETFILTER_XT_MATCH_RATEEST is not set | ||
459 | CONFIG_NETFILTER_XT_MATCH_REALM=m | ||
460 | CONFIG_NETFILTER_XT_MATCH_SCTP=m | ||
461 | CONFIG_NETFILTER_XT_MATCH_STATE=m | ||
462 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m | ||
463 | CONFIG_NETFILTER_XT_MATCH_STRING=m | ||
464 | CONFIG_NETFILTER_XT_MATCH_TCPMSS=m | ||
465 | CONFIG_NETFILTER_XT_MATCH_TIME=m | ||
466 | CONFIG_NETFILTER_XT_MATCH_U32=m | ||
467 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m | ||
468 | |||
469 | # | ||
470 | # IP: Netfilter Configuration | ||
471 | # | ||
472 | CONFIG_NF_CONNTRACK_IPV4=m | ||
473 | CONFIG_NF_CONNTRACK_PROC_COMPAT=y | ||
474 | CONFIG_IP_NF_QUEUE=m | ||
475 | CONFIG_IP_NF_IPTABLES=m | ||
476 | CONFIG_IP_NF_MATCH_RECENT=m | ||
477 | CONFIG_IP_NF_MATCH_ECN=m | ||
478 | CONFIG_IP_NF_MATCH_AH=m | ||
479 | CONFIG_IP_NF_MATCH_TTL=m | ||
480 | CONFIG_IP_NF_MATCH_ADDRTYPE=m | ||
481 | CONFIG_IP_NF_FILTER=m | ||
482 | CONFIG_IP_NF_TARGET_REJECT=m | ||
483 | CONFIG_IP_NF_TARGET_LOG=m | ||
484 | CONFIG_IP_NF_TARGET_ULOG=m | ||
485 | CONFIG_NF_NAT=m | ||
486 | CONFIG_NF_NAT_NEEDED=y | ||
487 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
488 | CONFIG_IP_NF_TARGET_REDIRECT=m | ||
489 | CONFIG_IP_NF_TARGET_NETMAP=m | ||
490 | CONFIG_NF_NAT_SNMP_BASIC=m | ||
491 | CONFIG_NF_NAT_PROTO_GRE=m | ||
492 | CONFIG_NF_NAT_FTP=m | ||
493 | CONFIG_NF_NAT_IRC=m | ||
494 | CONFIG_NF_NAT_TFTP=m | ||
495 | CONFIG_NF_NAT_AMANDA=m | ||
496 | CONFIG_NF_NAT_PPTP=m | ||
497 | CONFIG_NF_NAT_H323=m | ||
498 | CONFIG_NF_NAT_SIP=m | ||
499 | CONFIG_IP_NF_MANGLE=m | ||
500 | CONFIG_IP_NF_TARGET_ECN=m | ||
501 | CONFIG_IP_NF_TARGET_TTL=m | ||
502 | CONFIG_IP_NF_TARGET_CLUSTERIP=m | ||
503 | CONFIG_IP_NF_RAW=m | ||
504 | CONFIG_IP_NF_ARPTABLES=m | ||
505 | CONFIG_IP_NF_ARPFILTER=m | ||
506 | CONFIG_IP_NF_ARP_MANGLE=m | ||
507 | |||
508 | # | ||
509 | # IPv6: Netfilter Configuration | ||
510 | # | ||
511 | CONFIG_NF_CONNTRACK_IPV6=m | ||
512 | CONFIG_IP6_NF_QUEUE=m | ||
513 | CONFIG_IP6_NF_IPTABLES=m | ||
514 | CONFIG_IP6_NF_MATCH_RT=m | ||
515 | CONFIG_IP6_NF_MATCH_OPTS=m | ||
516 | CONFIG_IP6_NF_MATCH_FRAG=m | ||
517 | CONFIG_IP6_NF_MATCH_HL=m | ||
518 | CONFIG_IP6_NF_MATCH_IPV6HEADER=m | ||
519 | CONFIG_IP6_NF_MATCH_AH=m | ||
520 | CONFIG_IP6_NF_MATCH_MH=m | ||
521 | CONFIG_IP6_NF_MATCH_EUI64=m | ||
522 | CONFIG_IP6_NF_FILTER=m | ||
523 | CONFIG_IP6_NF_TARGET_LOG=m | ||
524 | CONFIG_IP6_NF_TARGET_REJECT=m | ||
525 | CONFIG_IP6_NF_MANGLE=m | ||
526 | CONFIG_IP6_NF_TARGET_HL=m | ||
527 | CONFIG_IP6_NF_RAW=m | ||
528 | |||
529 | # | ||
530 | # Bridge: Netfilter Configuration | ||
531 | # | ||
532 | CONFIG_BRIDGE_NF_EBTABLES=m | ||
533 | CONFIG_BRIDGE_EBT_BROUTE=m | ||
534 | CONFIG_BRIDGE_EBT_T_FILTER=m | ||
535 | CONFIG_BRIDGE_EBT_T_NAT=m | ||
536 | CONFIG_BRIDGE_EBT_802_3=m | ||
537 | CONFIG_BRIDGE_EBT_AMONG=m | ||
538 | CONFIG_BRIDGE_EBT_ARP=m | ||
539 | CONFIG_BRIDGE_EBT_IP=m | ||
540 | CONFIG_BRIDGE_EBT_LIMIT=m | ||
541 | CONFIG_BRIDGE_EBT_MARK=m | ||
542 | CONFIG_BRIDGE_EBT_PKTTYPE=m | ||
543 | CONFIG_BRIDGE_EBT_STP=m | ||
544 | CONFIG_BRIDGE_EBT_VLAN=m | ||
545 | CONFIG_BRIDGE_EBT_ARPREPLY=m | ||
546 | CONFIG_BRIDGE_EBT_DNAT=m | ||
547 | CONFIG_BRIDGE_EBT_MARK_T=m | ||
548 | CONFIG_BRIDGE_EBT_REDIRECT=m | ||
549 | CONFIG_BRIDGE_EBT_SNAT=m | ||
550 | CONFIG_BRIDGE_EBT_LOG=m | ||
551 | CONFIG_BRIDGE_EBT_ULOG=m | ||
552 | CONFIG_IP_DCCP=m | ||
553 | CONFIG_INET_DCCP_DIAG=m | ||
554 | CONFIG_IP_DCCP_ACKVEC=y | ||
555 | |||
556 | # | ||
557 | # DCCP CCIDs Configuration (EXPERIMENTAL) | ||
558 | # | ||
559 | CONFIG_IP_DCCP_CCID2=m | ||
560 | # CONFIG_IP_DCCP_CCID2_DEBUG is not set | ||
561 | CONFIG_IP_DCCP_CCID3=m | ||
562 | # CONFIG_IP_DCCP_CCID3_DEBUG is not set | ||
563 | CONFIG_IP_DCCP_CCID3_RTO=100 | ||
564 | CONFIG_IP_DCCP_TFRC_LIB=m | ||
565 | CONFIG_IP_SCTP=m | ||
566 | # CONFIG_SCTP_DBG_MSG is not set | ||
567 | # CONFIG_SCTP_DBG_OBJCNT is not set | ||
568 | # CONFIG_SCTP_HMAC_NONE is not set | ||
569 | # CONFIG_SCTP_HMAC_SHA1 is not set | ||
570 | CONFIG_SCTP_HMAC_MD5=y | ||
571 | CONFIG_TIPC=m | ||
572 | CONFIG_TIPC_ADVANCED=y | ||
573 | CONFIG_TIPC_ZONES=3 | ||
574 | CONFIG_TIPC_CLUSTERS=1 | ||
575 | CONFIG_TIPC_NODES=255 | ||
576 | CONFIG_TIPC_SLAVE_NODES=0 | ||
577 | CONFIG_TIPC_PORTS=8191 | ||
578 | CONFIG_TIPC_LOG=0 | ||
579 | # CONFIG_TIPC_DEBUG is not set | ||
580 | CONFIG_ATM=m | ||
581 | CONFIG_ATM_CLIP=m | ||
582 | # CONFIG_ATM_CLIP_NO_ICMP is not set | ||
583 | CONFIG_ATM_LANE=m | ||
584 | CONFIG_ATM_MPOA=m | ||
585 | CONFIG_ATM_BR2684=m | ||
586 | # CONFIG_ATM_BR2684_IPFILTER is not set | ||
587 | CONFIG_BRIDGE=m | ||
588 | CONFIG_VLAN_8021Q=m | ||
589 | # CONFIG_DECNET is not set | ||
590 | CONFIG_LLC=m | ||
591 | # CONFIG_LLC2 is not set | ||
592 | # CONFIG_IPX is not set | ||
593 | # CONFIG_ATALK is not set | ||
594 | # CONFIG_X25 is not set | ||
595 | # CONFIG_LAPB is not set | ||
596 | # CONFIG_ECONET is not set | ||
597 | # CONFIG_WAN_ROUTER is not set | ||
598 | CONFIG_NET_SCHED=y | ||
599 | |||
600 | # | ||
601 | # Queueing/Scheduling | ||
602 | # | ||
603 | CONFIG_NET_SCH_CBQ=m | ||
604 | CONFIG_NET_SCH_HTB=m | ||
605 | CONFIG_NET_SCH_HFSC=m | ||
606 | CONFIG_NET_SCH_ATM=m | ||
607 | CONFIG_NET_SCH_PRIO=m | ||
608 | CONFIG_NET_SCH_RR=m | ||
609 | CONFIG_NET_SCH_RED=m | ||
610 | CONFIG_NET_SCH_SFQ=m | ||
611 | CONFIG_NET_SCH_TEQL=m | ||
612 | CONFIG_NET_SCH_TBF=m | ||
613 | CONFIG_NET_SCH_GRED=m | ||
614 | CONFIG_NET_SCH_DSMARK=m | ||
615 | CONFIG_NET_SCH_NETEM=m | ||
616 | CONFIG_NET_SCH_INGRESS=m | ||
617 | |||
618 | # | ||
619 | # Classification | ||
620 | # | ||
621 | CONFIG_NET_CLS=y | ||
622 | CONFIG_NET_CLS_BASIC=m | ||
623 | CONFIG_NET_CLS_TCINDEX=m | ||
624 | CONFIG_NET_CLS_ROUTE4=m | ||
625 | CONFIG_NET_CLS_ROUTE=y | ||
626 | CONFIG_NET_CLS_FW=m | ||
627 | CONFIG_NET_CLS_U32=m | ||
628 | CONFIG_CLS_U32_PERF=y | ||
629 | CONFIG_CLS_U32_MARK=y | ||
630 | CONFIG_NET_CLS_RSVP=m | ||
631 | CONFIG_NET_CLS_RSVP6=m | ||
632 | # CONFIG_NET_CLS_FLOW is not set | ||
633 | CONFIG_NET_EMATCH=y | ||
634 | CONFIG_NET_EMATCH_STACK=32 | ||
635 | CONFIG_NET_EMATCH_CMP=m | ||
636 | CONFIG_NET_EMATCH_NBYTE=m | ||
637 | CONFIG_NET_EMATCH_U32=m | ||
638 | CONFIG_NET_EMATCH_META=m | ||
639 | CONFIG_NET_EMATCH_TEXT=m | ||
640 | CONFIG_NET_CLS_ACT=y | ||
641 | CONFIG_NET_ACT_POLICE=m | ||
642 | CONFIG_NET_ACT_GACT=m | ||
643 | CONFIG_GACT_PROB=y | ||
644 | CONFIG_NET_ACT_MIRRED=m | ||
645 | CONFIG_NET_ACT_IPT=m | ||
646 | CONFIG_NET_ACT_NAT=m | ||
647 | CONFIG_NET_ACT_PEDIT=m | ||
648 | CONFIG_NET_ACT_SIMP=m | ||
649 | CONFIG_NET_CLS_IND=y | ||
650 | CONFIG_NET_SCH_FIFO=y | ||
651 | |||
652 | # | ||
653 | # Network testing | ||
654 | # | ||
655 | CONFIG_NET_PKTGEN=m | ||
656 | # CONFIG_HAMRADIO is not set | ||
657 | # CONFIG_CAN is not set | ||
658 | CONFIG_IRDA=m | ||
659 | |||
660 | # | ||
661 | # IrDA protocols | ||
662 | # | ||
663 | CONFIG_IRLAN=m | ||
664 | CONFIG_IRNET=m | ||
665 | CONFIG_IRCOMM=m | ||
666 | # CONFIG_IRDA_ULTRA is not set | ||
667 | |||
668 | # | ||
669 | # IrDA options | ||
670 | # | ||
671 | CONFIG_IRDA_CACHE_LAST_LSAP=y | ||
672 | CONFIG_IRDA_FAST_RR=y | ||
673 | # CONFIG_IRDA_DEBUG is not set | ||
674 | |||
675 | # | ||
676 | # Infrared-port device drivers | ||
677 | # | ||
678 | |||
679 | # | ||
680 | # SIR device drivers | ||
681 | # | ||
682 | CONFIG_IRTTY_SIR=m | ||
683 | |||
684 | # | ||
685 | # Dongle support | ||
686 | # | ||
687 | CONFIG_DONGLE=y | ||
688 | CONFIG_ESI_DONGLE=m | ||
689 | CONFIG_ACTISYS_DONGLE=m | ||
690 | CONFIG_TEKRAM_DONGLE=m | ||
691 | CONFIG_TOIM3232_DONGLE=m | ||
692 | CONFIG_LITELINK_DONGLE=m | ||
693 | CONFIG_MA600_DONGLE=m | ||
694 | CONFIG_GIRBIL_DONGLE=m | ||
695 | CONFIG_MCP2120_DONGLE=m | ||
696 | CONFIG_OLD_BELKIN_DONGLE=m | ||
697 | CONFIG_ACT200L_DONGLE=m | ||
698 | CONFIG_KINGSUN_DONGLE=m | ||
699 | CONFIG_KSDAZZLE_DONGLE=m | ||
700 | CONFIG_KS959_DONGLE=m | ||
701 | |||
702 | # | ||
703 | # FIR device drivers | ||
704 | # | ||
705 | CONFIG_USB_IRDA=m | ||
706 | CONFIG_SIGMATEL_FIR=m | ||
707 | CONFIG_TOSHIBA_FIR=m | ||
708 | CONFIG_VLSI_FIR=m | ||
709 | CONFIG_MCS_FIR=m | ||
710 | CONFIG_BT=m | ||
711 | # CONFIG_BT_L2CAP is not set | ||
712 | # CONFIG_BT_SCO is not set | ||
713 | |||
714 | # | ||
715 | # Bluetooth device drivers | ||
716 | # | ||
717 | CONFIG_BT_HCIUSB=m | ||
718 | CONFIG_BT_HCIUSB_SCO=y | ||
719 | CONFIG_BT_HCIUART=m | ||
720 | CONFIG_BT_HCIUART_H4=y | ||
721 | CONFIG_BT_HCIUART_BCSP=y | ||
722 | CONFIG_BT_HCIUART_LL=y | ||
723 | CONFIG_BT_HCIBCM203X=m | ||
724 | CONFIG_BT_HCIBPA10X=m | ||
725 | CONFIG_BT_HCIBFUSB=m | ||
726 | CONFIG_BT_HCIVHCI=m | ||
727 | # CONFIG_AF_RXRPC is not set | ||
728 | CONFIG_FIB_RULES=y | ||
729 | |||
730 | # | ||
731 | # Wireless | ||
732 | # | ||
733 | CONFIG_CFG80211=m | ||
734 | CONFIG_NL80211=y | ||
735 | CONFIG_WIRELESS_EXT=y | ||
736 | CONFIG_MAC80211=m | ||
737 | |||
738 | # | ||
739 | # Rate control algorithm selection | ||
740 | # | ||
741 | CONFIG_MAC80211_RC_DEFAULT_PID=y | ||
742 | # CONFIG_MAC80211_RC_DEFAULT_SIMPLE is not set | ||
743 | # CONFIG_MAC80211_RC_DEFAULT_NONE is not set | ||
744 | |||
745 | # | ||
746 | # Selecting 'y' for an algorithm will | ||
747 | # | ||
748 | |||
749 | # | ||
750 | # build the algorithm into mac80211. | ||
751 | # | ||
752 | CONFIG_MAC80211_RC_DEFAULT="pid" | ||
753 | CONFIG_MAC80211_RC_PID=y | ||
754 | # CONFIG_MAC80211_RC_SIMPLE is not set | ||
755 | CONFIG_MAC80211_LEDS=y | ||
756 | # CONFIG_MAC80211_DEBUGFS is not set | ||
757 | # CONFIG_MAC80211_DEBUG_PACKET_ALIGNMENT is not set | ||
758 | # CONFIG_MAC80211_DEBUG is not set | ||
759 | CONFIG_IEEE80211=m | ||
760 | # CONFIG_IEEE80211_DEBUG is not set | ||
761 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
762 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
763 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
764 | CONFIG_IEEE80211_SOFTMAC=m | ||
765 | # CONFIG_IEEE80211_SOFTMAC_DEBUG is not set | ||
766 | CONFIG_RFKILL=m | ||
767 | CONFIG_RFKILL_INPUT=m | ||
768 | CONFIG_RFKILL_LEDS=y | ||
769 | CONFIG_NET_9P=m | ||
770 | CONFIG_NET_9P_FD=m | ||
771 | # CONFIG_NET_9P_DEBUG is not set | ||
772 | |||
773 | # | ||
774 | # Device Drivers | ||
775 | # | ||
776 | |||
777 | # | ||
778 | # Generic Driver Options | ||
779 | # | ||
780 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
781 | CONFIG_STANDALONE=y | ||
782 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
783 | CONFIG_FW_LOADER=m | ||
784 | # CONFIG_SYS_HYPERVISOR is not set | ||
785 | CONFIG_CONNECTOR=m | ||
786 | CONFIG_MTD=y | ||
787 | # CONFIG_MTD_DEBUG is not set | ||
788 | CONFIG_MTD_CONCAT=y | ||
789 | CONFIG_MTD_PARTITIONS=y | ||
790 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
791 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
792 | |||
793 | # | ||
794 | # User Modules And Translation Layers | ||
795 | # | ||
796 | CONFIG_MTD_CHAR=y | ||
797 | CONFIG_MTD_BLKDEVS=y | ||
798 | CONFIG_MTD_BLOCK=y | ||
799 | # CONFIG_FTL is not set | ||
800 | # CONFIG_NFTL is not set | ||
801 | # CONFIG_INFTL is not set | ||
802 | # CONFIG_RFD_FTL is not set | ||
803 | # CONFIG_SSFDC is not set | ||
804 | # CONFIG_MTD_OOPS is not set | ||
805 | |||
806 | # | ||
807 | # RAM/ROM/Flash chip drivers | ||
808 | # | ||
809 | CONFIG_MTD_CFI=y | ||
810 | # CONFIG_MTD_JEDECPROBE is not set | ||
811 | CONFIG_MTD_GEN_PROBE=y | ||
812 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
813 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
814 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
815 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
816 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
817 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
818 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
819 | CONFIG_MTD_CFI_I1=y | ||
820 | CONFIG_MTD_CFI_I2=y | ||
821 | # CONFIG_MTD_CFI_I4 is not set | ||
822 | # CONFIG_MTD_CFI_I8 is not set | ||
823 | CONFIG_MTD_CFI_INTELEXT=y | ||
824 | CONFIG_MTD_CFI_AMDSTD=y | ||
825 | CONFIG_MTD_CFI_STAA=y | ||
826 | CONFIG_MTD_CFI_UTIL=y | ||
827 | CONFIG_MTD_RAM=y | ||
828 | CONFIG_MTD_ROM=y | ||
829 | CONFIG_MTD_ABSENT=y | ||
830 | |||
831 | # | ||
832 | # Mapping drivers for chip access | ||
833 | # | ||
834 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
835 | CONFIG_MTD_PHYSMAP=y | ||
836 | CONFIG_MTD_PHYSMAP_START=0x8000000 | ||
837 | CONFIG_MTD_PHYSMAP_LEN=0x0 | ||
838 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
839 | # CONFIG_MTD_INTEL_VR_NOR is not set | ||
840 | # CONFIG_MTD_PLATRAM is not set | ||
841 | |||
842 | # | ||
843 | # Self-contained MTD device drivers | ||
844 | # | ||
845 | # CONFIG_MTD_PMC551 is not set | ||
846 | # CONFIG_MTD_SLRAM is not set | ||
847 | # CONFIG_MTD_PHRAM is not set | ||
848 | # CONFIG_MTD_MTDRAM is not set | ||
849 | # CONFIG_MTD_BLOCK2MTD is not set | ||
850 | |||
851 | # | ||
852 | # Disk-On-Chip Device Drivers | ||
853 | # | ||
854 | # CONFIG_MTD_DOC2000 is not set | ||
855 | # CONFIG_MTD_DOC2001 is not set | ||
856 | # CONFIG_MTD_DOC2001PLUS is not set | ||
857 | # CONFIG_MTD_NAND is not set | ||
858 | # CONFIG_MTD_ONENAND is not set | ||
859 | |||
860 | # | ||
861 | # UBI - Unsorted block images | ||
862 | # | ||
863 | # CONFIG_MTD_UBI is not set | ||
864 | # CONFIG_PARPORT is not set | ||
865 | CONFIG_BLK_DEV=y | ||
866 | # CONFIG_BLK_CPQ_DA is not set | ||
867 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
868 | # CONFIG_BLK_DEV_DAC960 is not set | ||
869 | # CONFIG_BLK_DEV_UMEM is not set | ||
870 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
871 | CONFIG_BLK_DEV_LOOP=m | ||
872 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
873 | CONFIG_BLK_DEV_NBD=m | ||
874 | # CONFIG_BLK_DEV_SX8 is not set | ||
875 | # CONFIG_BLK_DEV_UB is not set | ||
876 | CONFIG_BLK_DEV_RAM=y | ||
877 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
878 | CONFIG_BLK_DEV_RAM_SIZE=16384 | ||
879 | # CONFIG_BLK_DEV_XIP is not set | ||
880 | # CONFIG_CDROM_PKTCDVD is not set | ||
881 | CONFIG_ATA_OVER_ETH=m | ||
882 | CONFIG_MISC_DEVICES=y | ||
883 | # CONFIG_PHANTOM is not set | ||
884 | # CONFIG_EEPROM_93CX6 is not set | ||
885 | # CONFIG_SGI_IOC4 is not set | ||
886 | # CONFIG_TIFM_CORE is not set | ||
887 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
888 | CONFIG_HAVE_IDE=y | ||
889 | # CONFIG_IDE is not set | ||
890 | |||
891 | # | ||
892 | # SCSI device support | ||
893 | # | ||
894 | CONFIG_RAID_ATTRS=m | ||
895 | CONFIG_SCSI=y | ||
896 | CONFIG_SCSI_DMA=y | ||
897 | CONFIG_SCSI_TGT=m | ||
898 | # CONFIG_SCSI_NETLINK is not set | ||
899 | CONFIG_SCSI_PROC_FS=y | ||
900 | |||
901 | # | ||
902 | # SCSI support type (disk, tape, CD-ROM) | ||
903 | # | ||
904 | CONFIG_BLK_DEV_SD=y | ||
905 | CONFIG_CHR_DEV_ST=m | ||
906 | CONFIG_CHR_DEV_OSST=m | ||
907 | CONFIG_BLK_DEV_SR=m | ||
908 | CONFIG_BLK_DEV_SR_VENDOR=y | ||
909 | CONFIG_CHR_DEV_SG=m | ||
910 | CONFIG_CHR_DEV_SCH=m | ||
911 | |||
912 | # | ||
913 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
914 | # | ||
915 | CONFIG_SCSI_MULTI_LUN=y | ||
916 | CONFIG_SCSI_CONSTANTS=y | ||
917 | CONFIG_SCSI_LOGGING=y | ||
918 | CONFIG_SCSI_SCAN_ASYNC=y | ||
919 | CONFIG_SCSI_WAIT_SCAN=m | ||
920 | |||
921 | # | ||
922 | # SCSI Transports | ||
923 | # | ||
924 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
925 | # CONFIG_SCSI_FC_ATTRS is not set | ||
926 | CONFIG_SCSI_ISCSI_ATTRS=m | ||
927 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
928 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
929 | CONFIG_SCSI_LOWLEVEL=y | ||
930 | CONFIG_ISCSI_TCP=m | ||
931 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
932 | # CONFIG_SCSI_3W_9XXX is not set | ||
933 | # CONFIG_SCSI_ACARD is not set | ||
934 | # CONFIG_SCSI_AACRAID is not set | ||
935 | # CONFIG_SCSI_AIC7XXX is not set | ||
936 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
937 | # CONFIG_SCSI_AIC79XX is not set | ||
938 | # CONFIG_SCSI_AIC94XX is not set | ||
939 | # CONFIG_SCSI_DPT_I2O is not set | ||
940 | # CONFIG_SCSI_ADVANSYS is not set | ||
941 | # CONFIG_SCSI_ARCMSR is not set | ||
942 | # CONFIG_MEGARAID_NEWGEN is not set | ||
943 | # CONFIG_MEGARAID_LEGACY is not set | ||
944 | # CONFIG_MEGARAID_SAS is not set | ||
945 | # CONFIG_SCSI_HPTIOP is not set | ||
946 | # CONFIG_SCSI_DMX3191D is not set | ||
947 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
948 | # CONFIG_SCSI_IPS is not set | ||
949 | # CONFIG_SCSI_INITIO is not set | ||
950 | # CONFIG_SCSI_INIA100 is not set | ||
951 | # CONFIG_SCSI_STEX is not set | ||
952 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
953 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
954 | # CONFIG_SCSI_QLA_FC is not set | ||
955 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
956 | # CONFIG_SCSI_LPFC is not set | ||
957 | # CONFIG_SCSI_DC395x is not set | ||
958 | # CONFIG_SCSI_DC390T is not set | ||
959 | # CONFIG_SCSI_NSP32 is not set | ||
960 | # CONFIG_SCSI_DEBUG is not set | ||
961 | # CONFIG_SCSI_SRP is not set | ||
962 | # CONFIG_ATA is not set | ||
963 | # CONFIG_MD is not set | ||
964 | # CONFIG_FUSION is not set | ||
965 | |||
966 | # | ||
967 | # IEEE 1394 (FireWire) support | ||
968 | # | ||
969 | # CONFIG_FIREWIRE is not set | ||
970 | # CONFIG_IEEE1394 is not set | ||
971 | # CONFIG_I2O is not set | ||
972 | CONFIG_NETDEVICES=y | ||
973 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
974 | # CONFIG_IFB is not set | ||
975 | CONFIG_DUMMY=m | ||
976 | # CONFIG_BONDING is not set | ||
977 | # CONFIG_MACVLAN is not set | ||
978 | CONFIG_EQUALIZER=m | ||
979 | CONFIG_TUN=m | ||
980 | CONFIG_VETH=m | ||
981 | # CONFIG_ARCNET is not set | ||
982 | CONFIG_PHYLIB=m | ||
983 | |||
984 | # | ||
985 | # MII PHY device drivers | ||
986 | # | ||
987 | CONFIG_MARVELL_PHY=m | ||
988 | CONFIG_DAVICOM_PHY=m | ||
989 | CONFIG_QSEMI_PHY=m | ||
990 | CONFIG_LXT_PHY=m | ||
991 | CONFIG_CICADA_PHY=m | ||
992 | CONFIG_VITESSE_PHY=m | ||
993 | CONFIG_SMSC_PHY=m | ||
994 | CONFIG_BROADCOM_PHY=m | ||
995 | CONFIG_ICPLUS_PHY=m | ||
996 | # CONFIG_REALTEK_PHY is not set | ||
997 | # CONFIG_FIXED_PHY is not set | ||
998 | CONFIG_MDIO_BITBANG=m | ||
999 | CONFIG_NET_ETHERNET=y | ||
1000 | CONFIG_MII=y | ||
1001 | # CONFIG_AX88796 is not set | ||
1002 | # CONFIG_HAPPYMEAL is not set | ||
1003 | # CONFIG_SUNGEM is not set | ||
1004 | # CONFIG_CASSINI is not set | ||
1005 | # CONFIG_NET_VENDOR_3COM is not set | ||
1006 | # CONFIG_DM9000 is not set | ||
1007 | # CONFIG_NET_TULIP is not set | ||
1008 | # CONFIG_HP100 is not set | ||
1009 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
1010 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
1011 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
1012 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
1013 | CONFIG_NET_PCI=y | ||
1014 | # CONFIG_PCNET32 is not set | ||
1015 | # CONFIG_AMD8111_ETH is not set | ||
1016 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
1017 | CONFIG_B44=y | ||
1018 | CONFIG_B44_PCI_AUTOSELECT=y | ||
1019 | CONFIG_B44_PCICORE_AUTOSELECT=y | ||
1020 | CONFIG_B44_PCI=y | ||
1021 | # CONFIG_FORCEDETH is not set | ||
1022 | # CONFIG_TC35815 is not set | ||
1023 | # CONFIG_EEPRO100 is not set | ||
1024 | # CONFIG_E100 is not set | ||
1025 | # CONFIG_FEALNX is not set | ||
1026 | # CONFIG_NATSEMI is not set | ||
1027 | # CONFIG_NE2K_PCI is not set | ||
1028 | # CONFIG_8139CP is not set | ||
1029 | # CONFIG_8139TOO is not set | ||
1030 | # CONFIG_R6040 is not set | ||
1031 | # CONFIG_SIS900 is not set | ||
1032 | # CONFIG_EPIC100 is not set | ||
1033 | # CONFIG_SUNDANCE is not set | ||
1034 | # CONFIG_TLAN is not set | ||
1035 | # CONFIG_VIA_RHINE is not set | ||
1036 | # CONFIG_SC92031 is not set | ||
1037 | # CONFIG_NETDEV_1000 is not set | ||
1038 | # CONFIG_NETDEV_10000 is not set | ||
1039 | # CONFIG_TR is not set | ||
1040 | |||
1041 | # | ||
1042 | # Wireless LAN | ||
1043 | # | ||
1044 | # CONFIG_WLAN_PRE80211 is not set | ||
1045 | CONFIG_WLAN_80211=y | ||
1046 | # CONFIG_IPW2100 is not set | ||
1047 | # CONFIG_IPW2200 is not set | ||
1048 | # CONFIG_LIBERTAS is not set | ||
1049 | # CONFIG_HERMES is not set | ||
1050 | # CONFIG_ATMEL is not set | ||
1051 | # CONFIG_PRISM54 is not set | ||
1052 | # CONFIG_USB_ZD1201 is not set | ||
1053 | # CONFIG_USB_NET_RNDIS_WLAN is not set | ||
1054 | # CONFIG_RTL8180 is not set | ||
1055 | # CONFIG_RTL8187 is not set | ||
1056 | # CONFIG_ADM8211 is not set | ||
1057 | # CONFIG_P54_COMMON is not set | ||
1058 | CONFIG_ATH5K=m | ||
1059 | # CONFIG_IWL4965 is not set | ||
1060 | # CONFIG_IWL3945 is not set | ||
1061 | # CONFIG_HOSTAP is not set | ||
1062 | # CONFIG_BCM43XX is not set | ||
1063 | # CONFIG_B43 is not set | ||
1064 | # CONFIG_B43LEGACY is not set | ||
1065 | CONFIG_ZD1211RW=m | ||
1066 | # CONFIG_ZD1211RW_DEBUG is not set | ||
1067 | # CONFIG_RT2X00 is not set | ||
1068 | |||
1069 | # | ||
1070 | # USB Network Adapters | ||
1071 | # | ||
1072 | CONFIG_USB_CATC=m | ||
1073 | CONFIG_USB_KAWETH=m | ||
1074 | CONFIG_USB_PEGASUS=m | ||
1075 | CONFIG_USB_RTL8150=m | ||
1076 | CONFIG_USB_USBNET=m | ||
1077 | CONFIG_USB_NET_AX8817X=m | ||
1078 | CONFIG_USB_NET_CDCETHER=m | ||
1079 | CONFIG_USB_NET_DM9601=m | ||
1080 | CONFIG_USB_NET_GL620A=m | ||
1081 | CONFIG_USB_NET_NET1080=m | ||
1082 | CONFIG_USB_NET_PLUSB=m | ||
1083 | CONFIG_USB_NET_MCS7830=m | ||
1084 | CONFIG_USB_NET_RNDIS_HOST=m | ||
1085 | CONFIG_USB_NET_CDC_SUBSET=m | ||
1086 | CONFIG_USB_ALI_M5632=y | ||
1087 | CONFIG_USB_AN2720=y | ||
1088 | CONFIG_USB_BELKIN=y | ||
1089 | CONFIG_USB_ARMLINUX=y | ||
1090 | CONFIG_USB_EPSON2888=y | ||
1091 | CONFIG_USB_KC2190=y | ||
1092 | CONFIG_USB_NET_ZAURUS=m | ||
1093 | # CONFIG_WAN is not set | ||
1094 | CONFIG_ATM_DRIVERS=y | ||
1095 | CONFIG_ATM_DUMMY=m | ||
1096 | CONFIG_ATM_TCP=m | ||
1097 | # CONFIG_ATM_LANAI is not set | ||
1098 | # CONFIG_ATM_ENI is not set | ||
1099 | # CONFIG_ATM_FIRESTREAM is not set | ||
1100 | # CONFIG_ATM_ZATM is not set | ||
1101 | # CONFIG_ATM_NICSTAR is not set | ||
1102 | # CONFIG_ATM_IDT77252 is not set | ||
1103 | # CONFIG_ATM_AMBASSADOR is not set | ||
1104 | # CONFIG_ATM_HORIZON is not set | ||
1105 | # CONFIG_ATM_IA is not set | ||
1106 | # CONFIG_ATM_FORE200E_MAYBE is not set | ||
1107 | # CONFIG_ATM_HE is not set | ||
1108 | # CONFIG_FDDI is not set | ||
1109 | # CONFIG_HIPPI is not set | ||
1110 | CONFIG_PPP=m | ||
1111 | # CONFIG_PPP_MULTILINK is not set | ||
1112 | # CONFIG_PPP_FILTER is not set | ||
1113 | CONFIG_PPP_ASYNC=m | ||
1114 | # CONFIG_PPP_SYNC_TTY is not set | ||
1115 | CONFIG_PPP_DEFLATE=m | ||
1116 | CONFIG_PPP_BSDCOMP=m | ||
1117 | CONFIG_PPP_MPPE=m | ||
1118 | CONFIG_PPPOE=m | ||
1119 | CONFIG_PPPOATM=m | ||
1120 | # CONFIG_PPPOL2TP is not set | ||
1121 | CONFIG_SLIP=m | ||
1122 | # CONFIG_SLIP_COMPRESSED is not set | ||
1123 | CONFIG_SLHC=m | ||
1124 | # CONFIG_SLIP_SMART is not set | ||
1125 | # CONFIG_SLIP_MODE_SLIP6 is not set | ||
1126 | # CONFIG_NET_FC is not set | ||
1127 | CONFIG_NETCONSOLE=y | ||
1128 | # CONFIG_NETCONSOLE_DYNAMIC is not set | ||
1129 | CONFIG_NETPOLL=y | ||
1130 | # CONFIG_NETPOLL_TRAP is not set | ||
1131 | CONFIG_NET_POLL_CONTROLLER=y | ||
1132 | # CONFIG_ISDN is not set | ||
1133 | # CONFIG_PHONE is not set | ||
1134 | |||
1135 | # | ||
1136 | # Input device support | ||
1137 | # | ||
1138 | CONFIG_INPUT=y | ||
1139 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
1140 | # CONFIG_INPUT_POLLDEV is not set | ||
1141 | |||
1142 | # | ||
1143 | # Userland interfaces | ||
1144 | # | ||
1145 | CONFIG_INPUT_MOUSEDEV=y | ||
1146 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
1147 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
1148 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
1149 | # CONFIG_INPUT_JOYDEV is not set | ||
1150 | CONFIG_INPUT_EVDEV=m | ||
1151 | # CONFIG_INPUT_EVBUG is not set | ||
1152 | |||
1153 | # | ||
1154 | # Input Device Drivers | ||
1155 | # | ||
1156 | # CONFIG_INPUT_KEYBOARD is not set | ||
1157 | # CONFIG_INPUT_MOUSE is not set | ||
1158 | # CONFIG_INPUT_JOYSTICK is not set | ||
1159 | # CONFIG_INPUT_TABLET is not set | ||
1160 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
1161 | # CONFIG_INPUT_MISC is not set | ||
1162 | |||
1163 | # | ||
1164 | # Hardware I/O ports | ||
1165 | # | ||
1166 | # CONFIG_SERIO is not set | ||
1167 | # CONFIG_GAMEPORT is not set | ||
1168 | |||
1169 | # | ||
1170 | # Character devices | ||
1171 | # | ||
1172 | # CONFIG_VT is not set | ||
1173 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
1174 | # CONFIG_NOZOMI is not set | ||
1175 | |||
1176 | # | ||
1177 | # Serial drivers | ||
1178 | # | ||
1179 | CONFIG_SERIAL_8250=y | ||
1180 | CONFIG_SERIAL_8250_CONSOLE=y | ||
1181 | # CONFIG_SERIAL_8250_PCI is not set | ||
1182 | CONFIG_SERIAL_8250_NR_UARTS=2 | ||
1183 | CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
1184 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
1185 | |||
1186 | # | ||
1187 | # Non-8250 serial port support | ||
1188 | # | ||
1189 | CONFIG_SERIAL_CORE=y | ||
1190 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
1191 | # CONFIG_SERIAL_JSM is not set | ||
1192 | CONFIG_UNIX98_PTYS=y | ||
1193 | # CONFIG_LEGACY_PTYS is not set | ||
1194 | # CONFIG_IPMI_HANDLER is not set | ||
1195 | # CONFIG_HW_RANDOM is not set | ||
1196 | # CONFIG_RTC is not set | ||
1197 | # CONFIG_R3964 is not set | ||
1198 | # CONFIG_APPLICOM is not set | ||
1199 | # CONFIG_RAW_DRIVER is not set | ||
1200 | # CONFIG_TCG_TPM is not set | ||
1201 | CONFIG_DEVPORT=y | ||
1202 | # CONFIG_I2C is not set | ||
1203 | |||
1204 | # | ||
1205 | # SPI support | ||
1206 | # | ||
1207 | # CONFIG_SPI is not set | ||
1208 | # CONFIG_SPI_MASTER is not set | ||
1209 | CONFIG_W1=m | ||
1210 | CONFIG_W1_CON=y | ||
1211 | |||
1212 | # | ||
1213 | # 1-wire Bus Masters | ||
1214 | # | ||
1215 | CONFIG_W1_MASTER_MATROX=m | ||
1216 | CONFIG_W1_MASTER_DS2490=m | ||
1217 | # CONFIG_W1_MASTER_GPIO is not set | ||
1218 | |||
1219 | # | ||
1220 | # 1-wire Slaves | ||
1221 | # | ||
1222 | CONFIG_W1_SLAVE_THERM=m | ||
1223 | CONFIG_W1_SLAVE_SMEM=m | ||
1224 | CONFIG_W1_SLAVE_DS2433=m | ||
1225 | # CONFIG_W1_SLAVE_DS2433_CRC is not set | ||
1226 | CONFIG_W1_SLAVE_DS2760=m | ||
1227 | # CONFIG_POWER_SUPPLY is not set | ||
1228 | # CONFIG_HWMON is not set | ||
1229 | CONFIG_THERMAL=y | ||
1230 | # CONFIG_WATCHDOG is not set | ||
1231 | |||
1232 | # | ||
1233 | # Sonics Silicon Backplane | ||
1234 | # | ||
1235 | CONFIG_SSB_POSSIBLE=y | ||
1236 | CONFIG_SSB=y | ||
1237 | CONFIG_SSB_PCIHOST_POSSIBLE=y | ||
1238 | CONFIG_SSB_PCIHOST=y | ||
1239 | # CONFIG_SSB_SILENT is not set | ||
1240 | # CONFIG_SSB_DEBUG is not set | ||
1241 | CONFIG_SSB_SERIAL=y | ||
1242 | CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y | ||
1243 | CONFIG_SSB_DRIVER_PCICORE=y | ||
1244 | CONFIG_SSB_PCICORE_HOSTMODE=y | ||
1245 | CONFIG_SSB_DRIVER_MIPS=y | ||
1246 | CONFIG_SSB_DRIVER_EXTIF=y | ||
1247 | |||
1248 | # | ||
1249 | # Multifunction device drivers | ||
1250 | # | ||
1251 | # CONFIG_MFD_SM501 is not set | ||
1252 | |||
1253 | # | ||
1254 | # Multimedia devices | ||
1255 | # | ||
1256 | # CONFIG_VIDEO_DEV is not set | ||
1257 | # CONFIG_DVB_CORE is not set | ||
1258 | CONFIG_DAB=y | ||
1259 | CONFIG_USB_DABUSB=m | ||
1260 | |||
1261 | # | ||
1262 | # Graphics support | ||
1263 | # | ||
1264 | # CONFIG_DRM is not set | ||
1265 | # CONFIG_VGASTATE is not set | ||
1266 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
1267 | # CONFIG_FB is not set | ||
1268 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
1269 | |||
1270 | # | ||
1271 | # Display device support | ||
1272 | # | ||
1273 | CONFIG_DISPLAY_SUPPORT=m | ||
1274 | |||
1275 | # | ||
1276 | # Display hardware drivers | ||
1277 | # | ||
1278 | |||
1279 | # | ||
1280 | # Sound | ||
1281 | # | ||
1282 | CONFIG_SOUND=m | ||
1283 | |||
1284 | # | ||
1285 | # Advanced Linux Sound Architecture | ||
1286 | # | ||
1287 | CONFIG_SND=m | ||
1288 | CONFIG_SND_TIMER=m | ||
1289 | CONFIG_SND_PCM=m | ||
1290 | CONFIG_SND_HWDEP=m | ||
1291 | CONFIG_SND_RAWMIDI=m | ||
1292 | CONFIG_SND_SEQUENCER=m | ||
1293 | CONFIG_SND_SEQ_DUMMY=m | ||
1294 | CONFIG_SND_OSSEMUL=y | ||
1295 | CONFIG_SND_MIXER_OSS=m | ||
1296 | CONFIG_SND_PCM_OSS=m | ||
1297 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1298 | CONFIG_SND_SEQUENCER_OSS=y | ||
1299 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1300 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1301 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1302 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1303 | # CONFIG_SND_DEBUG is not set | ||
1304 | |||
1305 | # | ||
1306 | # Generic devices | ||
1307 | # | ||
1308 | CONFIG_SND_DUMMY=m | ||
1309 | CONFIG_SND_VIRMIDI=m | ||
1310 | # CONFIG_SND_MTPAV is not set | ||
1311 | # CONFIG_SND_SERIAL_U16550 is not set | ||
1312 | # CONFIG_SND_MPU401 is not set | ||
1313 | |||
1314 | # | ||
1315 | # PCI devices | ||
1316 | # | ||
1317 | # CONFIG_SND_AD1889 is not set | ||
1318 | # CONFIG_SND_ALS300 is not set | ||
1319 | # CONFIG_SND_ALI5451 is not set | ||
1320 | # CONFIG_SND_ATIIXP is not set | ||
1321 | # CONFIG_SND_ATIIXP_MODEM is not set | ||
1322 | # CONFIG_SND_AU8810 is not set | ||
1323 | # CONFIG_SND_AU8820 is not set | ||
1324 | # CONFIG_SND_AU8830 is not set | ||
1325 | # CONFIG_SND_AZT3328 is not set | ||
1326 | # CONFIG_SND_BT87X is not set | ||
1327 | # CONFIG_SND_CA0106 is not set | ||
1328 | # CONFIG_SND_CMIPCI is not set | ||
1329 | # CONFIG_SND_OXYGEN is not set | ||
1330 | # CONFIG_SND_CS4281 is not set | ||
1331 | # CONFIG_SND_CS46XX is not set | ||
1332 | # CONFIG_SND_DARLA20 is not set | ||
1333 | # CONFIG_SND_GINA20 is not set | ||
1334 | # CONFIG_SND_LAYLA20 is not set | ||
1335 | # CONFIG_SND_DARLA24 is not set | ||
1336 | # CONFIG_SND_GINA24 is not set | ||
1337 | # CONFIG_SND_LAYLA24 is not set | ||
1338 | # CONFIG_SND_MONA is not set | ||
1339 | # CONFIG_SND_MIA is not set | ||
1340 | # CONFIG_SND_ECHO3G is not set | ||
1341 | # CONFIG_SND_INDIGO is not set | ||
1342 | # CONFIG_SND_INDIGOIO is not set | ||
1343 | # CONFIG_SND_INDIGODJ is not set | ||
1344 | # CONFIG_SND_EMU10K1 is not set | ||
1345 | # CONFIG_SND_EMU10K1X is not set | ||
1346 | # CONFIG_SND_ENS1370 is not set | ||
1347 | # CONFIG_SND_ENS1371 is not set | ||
1348 | # CONFIG_SND_ES1938 is not set | ||
1349 | # CONFIG_SND_ES1968 is not set | ||
1350 | # CONFIG_SND_FM801 is not set | ||
1351 | # CONFIG_SND_HDA_INTEL is not set | ||
1352 | # CONFIG_SND_HDSP is not set | ||
1353 | # CONFIG_SND_HDSPM is not set | ||
1354 | # CONFIG_SND_HIFIER is not set | ||
1355 | # CONFIG_SND_ICE1712 is not set | ||
1356 | # CONFIG_SND_ICE1724 is not set | ||
1357 | # CONFIG_SND_INTEL8X0 is not set | ||
1358 | # CONFIG_SND_INTEL8X0M is not set | ||
1359 | # CONFIG_SND_KORG1212 is not set | ||
1360 | # CONFIG_SND_MAESTRO3 is not set | ||
1361 | # CONFIG_SND_MIXART is not set | ||
1362 | # CONFIG_SND_NM256 is not set | ||
1363 | # CONFIG_SND_PCXHR is not set | ||
1364 | # CONFIG_SND_RIPTIDE is not set | ||
1365 | # CONFIG_SND_RME32 is not set | ||
1366 | # CONFIG_SND_RME96 is not set | ||
1367 | # CONFIG_SND_RME9652 is not set | ||
1368 | # CONFIG_SND_SONICVIBES is not set | ||
1369 | # CONFIG_SND_TRIDENT is not set | ||
1370 | # CONFIG_SND_VIA82XX is not set | ||
1371 | # CONFIG_SND_VIA82XX_MODEM is not set | ||
1372 | # CONFIG_SND_VIRTUOSO is not set | ||
1373 | # CONFIG_SND_VX222 is not set | ||
1374 | # CONFIG_SND_YMFPCI is not set | ||
1375 | |||
1376 | # | ||
1377 | # ALSA MIPS devices | ||
1378 | # | ||
1379 | |||
1380 | # | ||
1381 | # USB devices | ||
1382 | # | ||
1383 | CONFIG_SND_USB_AUDIO=m | ||
1384 | # CONFIG_SND_USB_CAIAQ is not set | ||
1385 | |||
1386 | # | ||
1387 | # System on Chip audio support | ||
1388 | # | ||
1389 | # CONFIG_SND_SOC is not set | ||
1390 | |||
1391 | # | ||
1392 | # SoC Audio support for SuperH | ||
1393 | # | ||
1394 | |||
1395 | # | ||
1396 | # ALSA SoC audio for Freescale SOCs | ||
1397 | # | ||
1398 | |||
1399 | # | ||
1400 | # Open Sound System | ||
1401 | # | ||
1402 | # CONFIG_SOUND_PRIME is not set | ||
1403 | CONFIG_HID_SUPPORT=y | ||
1404 | CONFIG_HID=m | ||
1405 | # CONFIG_HID_DEBUG is not set | ||
1406 | # CONFIG_HIDRAW is not set | ||
1407 | |||
1408 | # | ||
1409 | # USB Input Devices | ||
1410 | # | ||
1411 | CONFIG_USB_HID=m | ||
1412 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
1413 | # CONFIG_HID_FF is not set | ||
1414 | CONFIG_USB_HIDDEV=y | ||
1415 | |||
1416 | # | ||
1417 | # USB HID Boot Protocol drivers | ||
1418 | # | ||
1419 | # CONFIG_USB_KBD is not set | ||
1420 | # CONFIG_USB_MOUSE is not set | ||
1421 | CONFIG_USB_SUPPORT=y | ||
1422 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1423 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
1424 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
1425 | CONFIG_USB=y | ||
1426 | # CONFIG_USB_DEBUG is not set | ||
1427 | # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set | ||
1428 | |||
1429 | # | ||
1430 | # Miscellaneous USB options | ||
1431 | # | ||
1432 | CONFIG_USB_DEVICEFS=y | ||
1433 | # CONFIG_USB_DEVICE_CLASS is not set | ||
1434 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1435 | # CONFIG_USB_OTG is not set | ||
1436 | |||
1437 | # | ||
1438 | # USB Host Controller Drivers | ||
1439 | # | ||
1440 | CONFIG_USB_EHCI_HCD=y | ||
1441 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | ||
1442 | CONFIG_USB_EHCI_TT_NEWSCHED=y | ||
1443 | # CONFIG_USB_ISP116X_HCD is not set | ||
1444 | CONFIG_USB_OHCI_HCD=y | ||
1445 | # CONFIG_USB_OHCI_HCD_SSB is not set | ||
1446 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
1447 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
1448 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
1449 | # CONFIG_USB_UHCI_HCD is not set | ||
1450 | CONFIG_USB_U132_HCD=m | ||
1451 | # CONFIG_USB_SL811_HCD is not set | ||
1452 | CONFIG_USB_R8A66597_HCD=m | ||
1453 | |||
1454 | # | ||
1455 | # USB Device Class drivers | ||
1456 | # | ||
1457 | CONFIG_USB_ACM=m | ||
1458 | CONFIG_USB_PRINTER=m | ||
1459 | |||
1460 | # | ||
1461 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
1462 | # | ||
1463 | |||
1464 | # | ||
1465 | # may also be needed; see USB_STORAGE Help for more information | ||
1466 | # | ||
1467 | CONFIG_USB_STORAGE=y | ||
1468 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
1469 | CONFIG_USB_STORAGE_DATAFAB=y | ||
1470 | CONFIG_USB_STORAGE_FREECOM=y | ||
1471 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
1472 | CONFIG_USB_STORAGE_DPCM=y | ||
1473 | CONFIG_USB_STORAGE_USBAT=y | ||
1474 | CONFIG_USB_STORAGE_SDDR09=y | ||
1475 | CONFIG_USB_STORAGE_SDDR55=y | ||
1476 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
1477 | CONFIG_USB_STORAGE_ALAUDA=y | ||
1478 | CONFIG_USB_STORAGE_ONETOUCH=y | ||
1479 | CONFIG_USB_STORAGE_KARMA=y | ||
1480 | # CONFIG_USB_LIBUSUAL is not set | ||
1481 | |||
1482 | # | ||
1483 | # USB Imaging devices | ||
1484 | # | ||
1485 | CONFIG_USB_MDC800=m | ||
1486 | CONFIG_USB_MICROTEK=m | ||
1487 | # CONFIG_USB_MON is not set | ||
1488 | |||
1489 | # | ||
1490 | # USB port drivers | ||
1491 | # | ||
1492 | CONFIG_USB_SERIAL=m | ||
1493 | CONFIG_USB_EZUSB=y | ||
1494 | CONFIG_USB_SERIAL_GENERIC=y | ||
1495 | CONFIG_USB_SERIAL_AIRCABLE=m | ||
1496 | CONFIG_USB_SERIAL_AIRPRIME=m | ||
1497 | CONFIG_USB_SERIAL_ARK3116=m | ||
1498 | CONFIG_USB_SERIAL_BELKIN=m | ||
1499 | CONFIG_USB_SERIAL_CH341=m | ||
1500 | # CONFIG_USB_SERIAL_WHITEHEAT is not set | ||
1501 | CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m | ||
1502 | CONFIG_USB_SERIAL_CP2101=m | ||
1503 | CONFIG_USB_SERIAL_CYPRESS_M8=m | ||
1504 | CONFIG_USB_SERIAL_EMPEG=m | ||
1505 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
1506 | CONFIG_USB_SERIAL_FUNSOFT=m | ||
1507 | CONFIG_USB_SERIAL_VISOR=m | ||
1508 | CONFIG_USB_SERIAL_IPAQ=m | ||
1509 | CONFIG_USB_SERIAL_IR=m | ||
1510 | # CONFIG_USB_SERIAL_EDGEPORT is not set | ||
1511 | # CONFIG_USB_SERIAL_EDGEPORT_TI is not set | ||
1512 | CONFIG_USB_SERIAL_GARMIN=m | ||
1513 | CONFIG_USB_SERIAL_IPW=m | ||
1514 | # CONFIG_USB_SERIAL_IUU is not set | ||
1515 | CONFIG_USB_SERIAL_KEYSPAN_PDA=m | ||
1516 | # CONFIG_USB_SERIAL_KEYSPAN is not set | ||
1517 | CONFIG_USB_SERIAL_KLSI=m | ||
1518 | CONFIG_USB_SERIAL_KOBIL_SCT=m | ||
1519 | CONFIG_USB_SERIAL_MCT_U232=m | ||
1520 | CONFIG_USB_SERIAL_MOS7720=m | ||
1521 | CONFIG_USB_SERIAL_MOS7840=m | ||
1522 | CONFIG_USB_SERIAL_NAVMAN=m | ||
1523 | CONFIG_USB_SERIAL_PL2303=m | ||
1524 | CONFIG_USB_SERIAL_OTI6858=m | ||
1525 | CONFIG_USB_SERIAL_HP4X=m | ||
1526 | CONFIG_USB_SERIAL_SAFE=m | ||
1527 | # CONFIG_USB_SERIAL_SAFE_PADDED is not set | ||
1528 | CONFIG_USB_SERIAL_SIERRAWIRELESS=m | ||
1529 | # CONFIG_USB_SERIAL_TI is not set | ||
1530 | CONFIG_USB_SERIAL_CYBERJACK=m | ||
1531 | CONFIG_USB_SERIAL_XIRCOM=m | ||
1532 | CONFIG_USB_SERIAL_OPTION=m | ||
1533 | CONFIG_USB_SERIAL_OMNINET=m | ||
1534 | CONFIG_USB_SERIAL_DEBUG=m | ||
1535 | |||
1536 | # | ||
1537 | # USB Miscellaneous drivers | ||
1538 | # | ||
1539 | # CONFIG_USB_EMI62 is not set | ||
1540 | # CONFIG_USB_EMI26 is not set | ||
1541 | CONFIG_USB_ADUTUX=m | ||
1542 | CONFIG_USB_AUERSWALD=m | ||
1543 | CONFIG_USB_RIO500=m | ||
1544 | CONFIG_USB_LEGOTOWER=m | ||
1545 | CONFIG_USB_LCD=m | ||
1546 | CONFIG_USB_BERRY_CHARGE=m | ||
1547 | CONFIG_USB_LED=m | ||
1548 | CONFIG_USB_CYPRESS_CY7C63=m | ||
1549 | CONFIG_USB_CYTHERM=m | ||
1550 | CONFIG_USB_PHIDGET=m | ||
1551 | CONFIG_USB_PHIDGETKIT=m | ||
1552 | CONFIG_USB_PHIDGETMOTORCONTROL=m | ||
1553 | CONFIG_USB_PHIDGETSERVO=m | ||
1554 | CONFIG_USB_IDMOUSE=m | ||
1555 | CONFIG_USB_FTDI_ELAN=m | ||
1556 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1557 | CONFIG_USB_SISUSBVGA=m | ||
1558 | CONFIG_USB_LD=m | ||
1559 | CONFIG_USB_TRANCEVIBRATOR=m | ||
1560 | CONFIG_USB_IOWARRIOR=m | ||
1561 | CONFIG_USB_TEST=m | ||
1562 | CONFIG_USB_ATM=m | ||
1563 | CONFIG_USB_SPEEDTOUCH=m | ||
1564 | CONFIG_USB_CXACRU=m | ||
1565 | CONFIG_USB_UEAGLEATM=m | ||
1566 | CONFIG_USB_XUSBATM=m | ||
1567 | CONFIG_USB_GADGET=m | ||
1568 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1569 | # CONFIG_USB_GADGET_DEBUG_FS is not set | ||
1570 | CONFIG_USB_GADGET_SELECTED=y | ||
1571 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
1572 | # CONFIG_USB_GADGET_ATMEL_USBA is not set | ||
1573 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
1574 | CONFIG_USB_GADGET_NET2280=y | ||
1575 | CONFIG_USB_NET2280=m | ||
1576 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1577 | # CONFIG_USB_GADGET_M66592 is not set | ||
1578 | # CONFIG_USB_GADGET_GOKU is not set | ||
1579 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1580 | # CONFIG_USB_GADGET_OMAP is not set | ||
1581 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
1582 | # CONFIG_USB_GADGET_AT91 is not set | ||
1583 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1584 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1585 | CONFIG_USB_ZERO=m | ||
1586 | CONFIG_USB_ETH=m | ||
1587 | CONFIG_USB_ETH_RNDIS=y | ||
1588 | CONFIG_USB_GADGETFS=m | ||
1589 | CONFIG_USB_FILE_STORAGE=m | ||
1590 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1591 | CONFIG_USB_G_SERIAL=m | ||
1592 | CONFIG_USB_MIDI_GADGET=m | ||
1593 | # CONFIG_USB_G_PRINTER is not set | ||
1594 | # CONFIG_MMC is not set | ||
1595 | # CONFIG_MEMSTICK is not set | ||
1596 | CONFIG_NEW_LEDS=y | ||
1597 | CONFIG_LEDS_CLASS=y | ||
1598 | |||
1599 | # | ||
1600 | # LED drivers | ||
1601 | # | ||
1602 | CONFIG_LEDS_GPIO=y | ||
1603 | |||
1604 | # | ||
1605 | # LED Triggers | ||
1606 | # | ||
1607 | CONFIG_LEDS_TRIGGERS=y | ||
1608 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
1609 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
1610 | # CONFIG_INFINIBAND is not set | ||
1611 | CONFIG_RTC_LIB=y | ||
1612 | # CONFIG_RTC_CLASS is not set | ||
1613 | |||
1614 | # | ||
1615 | # Userspace I/O | ||
1616 | # | ||
1617 | # CONFIG_UIO is not set | ||
1618 | |||
1619 | # | ||
1620 | # File systems | ||
1621 | # | ||
1622 | CONFIG_EXT2_FS=y | ||
1623 | CONFIG_EXT2_FS_XATTR=y | ||
1624 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
1625 | CONFIG_EXT2_FS_SECURITY=y | ||
1626 | # CONFIG_EXT2_FS_XIP is not set | ||
1627 | CONFIG_EXT3_FS=y | ||
1628 | CONFIG_EXT3_FS_XATTR=y | ||
1629 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
1630 | CONFIG_EXT3_FS_SECURITY=y | ||
1631 | # CONFIG_EXT4DEV_FS is not set | ||
1632 | CONFIG_JBD=y | ||
1633 | # CONFIG_JBD_DEBUG is not set | ||
1634 | CONFIG_FS_MBCACHE=y | ||
1635 | CONFIG_REISERFS_FS=m | ||
1636 | # CONFIG_REISERFS_CHECK is not set | ||
1637 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1638 | CONFIG_REISERFS_FS_XATTR=y | ||
1639 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
1640 | CONFIG_REISERFS_FS_SECURITY=y | ||
1641 | CONFIG_JFS_FS=m | ||
1642 | CONFIG_JFS_POSIX_ACL=y | ||
1643 | CONFIG_JFS_SECURITY=y | ||
1644 | # CONFIG_JFS_DEBUG is not set | ||
1645 | # CONFIG_JFS_STATISTICS is not set | ||
1646 | CONFIG_FS_POSIX_ACL=y | ||
1647 | CONFIG_XFS_FS=m | ||
1648 | CONFIG_XFS_QUOTA=y | ||
1649 | CONFIG_XFS_SECURITY=y | ||
1650 | CONFIG_XFS_POSIX_ACL=y | ||
1651 | CONFIG_XFS_RT=y | ||
1652 | CONFIG_GFS2_FS=m | ||
1653 | CONFIG_GFS2_FS_LOCKING_NOLOCK=m | ||
1654 | CONFIG_GFS2_FS_LOCKING_DLM=m | ||
1655 | # CONFIG_OCFS2_FS is not set | ||
1656 | CONFIG_DNOTIFY=y | ||
1657 | CONFIG_INOTIFY=y | ||
1658 | CONFIG_INOTIFY_USER=y | ||
1659 | CONFIG_QUOTA=y | ||
1660 | CONFIG_QUOTA_NETLINK_INTERFACE=y | ||
1661 | CONFIG_PRINT_QUOTA_WARNING=y | ||
1662 | CONFIG_QFMT_V1=m | ||
1663 | CONFIG_QFMT_V2=m | ||
1664 | CONFIG_QUOTACTL=y | ||
1665 | CONFIG_AUTOFS_FS=m | ||
1666 | CONFIG_AUTOFS4_FS=m | ||
1667 | CONFIG_FUSE_FS=m | ||
1668 | CONFIG_GENERIC_ACL=y | ||
1669 | |||
1670 | # | ||
1671 | # CD-ROM/DVD Filesystems | ||
1672 | # | ||
1673 | CONFIG_ISO9660_FS=m | ||
1674 | CONFIG_JOLIET=y | ||
1675 | CONFIG_ZISOFS=y | ||
1676 | CONFIG_UDF_FS=m | ||
1677 | CONFIG_UDF_NLS=y | ||
1678 | |||
1679 | # | ||
1680 | # DOS/FAT/NT Filesystems | ||
1681 | # | ||
1682 | CONFIG_FAT_FS=m | ||
1683 | CONFIG_MSDOS_FS=m | ||
1684 | CONFIG_VFAT_FS=m | ||
1685 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1686 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1687 | CONFIG_NTFS_FS=m | ||
1688 | # CONFIG_NTFS_DEBUG is not set | ||
1689 | CONFIG_NTFS_RW=y | ||
1690 | |||
1691 | # | ||
1692 | # Pseudo filesystems | ||
1693 | # | ||
1694 | CONFIG_PROC_FS=y | ||
1695 | CONFIG_PROC_KCORE=y | ||
1696 | CONFIG_PROC_SYSCTL=y | ||
1697 | CONFIG_SYSFS=y | ||
1698 | CONFIG_TMPFS=y | ||
1699 | CONFIG_TMPFS_POSIX_ACL=y | ||
1700 | # CONFIG_HUGETLB_PAGE is not set | ||
1701 | CONFIG_CONFIGFS_FS=m | ||
1702 | |||
1703 | # | ||
1704 | # Miscellaneous filesystems | ||
1705 | # | ||
1706 | CONFIG_ADFS_FS=m | ||
1707 | # CONFIG_ADFS_FS_RW is not set | ||
1708 | CONFIG_AFFS_FS=m | ||
1709 | CONFIG_HFS_FS=m | ||
1710 | CONFIG_HFSPLUS_FS=m | ||
1711 | CONFIG_BEFS_FS=m | ||
1712 | # CONFIG_BEFS_DEBUG is not set | ||
1713 | CONFIG_BFS_FS=m | ||
1714 | CONFIG_EFS_FS=m | ||
1715 | CONFIG_JFFS2_FS=m | ||
1716 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1717 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1718 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1719 | # CONFIG_JFFS2_SUMMARY is not set | ||
1720 | CONFIG_JFFS2_FS_XATTR=y | ||
1721 | CONFIG_JFFS2_FS_POSIX_ACL=y | ||
1722 | CONFIG_JFFS2_FS_SECURITY=y | ||
1723 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1724 | CONFIG_JFFS2_ZLIB=y | ||
1725 | # CONFIG_JFFS2_LZO is not set | ||
1726 | CONFIG_JFFS2_RTIME=y | ||
1727 | # CONFIG_JFFS2_RUBIN is not set | ||
1728 | CONFIG_CRAMFS=m | ||
1729 | CONFIG_VXFS_FS=m | ||
1730 | CONFIG_MINIX_FS=m | ||
1731 | CONFIG_HPFS_FS=m | ||
1732 | CONFIG_QNX4FS_FS=m | ||
1733 | CONFIG_ROMFS_FS=m | ||
1734 | CONFIG_SYSV_FS=m | ||
1735 | CONFIG_UFS_FS=m | ||
1736 | # CONFIG_UFS_FS_WRITE is not set | ||
1737 | # CONFIG_UFS_DEBUG is not set | ||
1738 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1739 | CONFIG_NFS_FS=m | ||
1740 | CONFIG_NFS_V3=y | ||
1741 | CONFIG_NFS_V3_ACL=y | ||
1742 | CONFIG_NFS_V4=y | ||
1743 | # CONFIG_NFS_DIRECTIO is not set | ||
1744 | CONFIG_NFSD=m | ||
1745 | CONFIG_NFSD_V2_ACL=y | ||
1746 | CONFIG_NFSD_V3=y | ||
1747 | CONFIG_NFSD_V3_ACL=y | ||
1748 | CONFIG_NFSD_V4=y | ||
1749 | CONFIG_NFSD_TCP=y | ||
1750 | CONFIG_LOCKD=m | ||
1751 | CONFIG_LOCKD_V4=y | ||
1752 | CONFIG_EXPORTFS=m | ||
1753 | CONFIG_NFS_ACL_SUPPORT=m | ||
1754 | CONFIG_NFS_COMMON=y | ||
1755 | CONFIG_SUNRPC=m | ||
1756 | CONFIG_SUNRPC_GSS=m | ||
1757 | CONFIG_SUNRPC_BIND34=y | ||
1758 | CONFIG_RPCSEC_GSS_KRB5=m | ||
1759 | CONFIG_RPCSEC_GSS_SPKM3=m | ||
1760 | # CONFIG_SMB_FS is not set | ||
1761 | CONFIG_CIFS=m | ||
1762 | # CONFIG_CIFS_STATS is not set | ||
1763 | # CONFIG_CIFS_WEAK_PW_HASH is not set | ||
1764 | CONFIG_CIFS_XATTR=y | ||
1765 | CONFIG_CIFS_POSIX=y | ||
1766 | # CONFIG_CIFS_DEBUG2 is not set | ||
1767 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1768 | CONFIG_NCP_FS=m | ||
1769 | # CONFIG_NCPFS_PACKET_SIGNING is not set | ||
1770 | # CONFIG_NCPFS_IOCTL_LOCKING is not set | ||
1771 | # CONFIG_NCPFS_STRONG is not set | ||
1772 | CONFIG_NCPFS_NFS_NS=y | ||
1773 | CONFIG_NCPFS_OS2_NS=y | ||
1774 | # CONFIG_NCPFS_SMALLDOS is not set | ||
1775 | CONFIG_NCPFS_NLS=y | ||
1776 | CONFIG_NCPFS_EXTRAS=y | ||
1777 | CONFIG_CODA_FS=m | ||
1778 | # CONFIG_CODA_FS_OLD_API is not set | ||
1779 | # CONFIG_AFS_FS is not set | ||
1780 | CONFIG_9P_FS=m | ||
1781 | |||
1782 | # | ||
1783 | # Partition Types | ||
1784 | # | ||
1785 | CONFIG_PARTITION_ADVANCED=y | ||
1786 | # CONFIG_ACORN_PARTITION is not set | ||
1787 | # CONFIG_OSF_PARTITION is not set | ||
1788 | # CONFIG_AMIGA_PARTITION is not set | ||
1789 | # CONFIG_ATARI_PARTITION is not set | ||
1790 | # CONFIG_MAC_PARTITION is not set | ||
1791 | CONFIG_MSDOS_PARTITION=y | ||
1792 | # CONFIG_BSD_DISKLABEL is not set | ||
1793 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1794 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1795 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1796 | # CONFIG_LDM_PARTITION is not set | ||
1797 | # CONFIG_SGI_PARTITION is not set | ||
1798 | # CONFIG_ULTRIX_PARTITION is not set | ||
1799 | # CONFIG_SUN_PARTITION is not set | ||
1800 | CONFIG_KARMA_PARTITION=y | ||
1801 | # CONFIG_EFI_PARTITION is not set | ||
1802 | # CONFIG_SYSV68_PARTITION is not set | ||
1803 | CONFIG_NLS=y | ||
1804 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1805 | CONFIG_NLS_CODEPAGE_437=m | ||
1806 | CONFIG_NLS_CODEPAGE_737=m | ||
1807 | CONFIG_NLS_CODEPAGE_775=m | ||
1808 | CONFIG_NLS_CODEPAGE_850=m | ||
1809 | CONFIG_NLS_CODEPAGE_852=m | ||
1810 | CONFIG_NLS_CODEPAGE_855=m | ||
1811 | CONFIG_NLS_CODEPAGE_857=m | ||
1812 | CONFIG_NLS_CODEPAGE_860=m | ||
1813 | CONFIG_NLS_CODEPAGE_861=m | ||
1814 | CONFIG_NLS_CODEPAGE_862=m | ||
1815 | CONFIG_NLS_CODEPAGE_863=m | ||
1816 | CONFIG_NLS_CODEPAGE_864=m | ||
1817 | CONFIG_NLS_CODEPAGE_865=m | ||
1818 | CONFIG_NLS_CODEPAGE_866=m | ||
1819 | CONFIG_NLS_CODEPAGE_869=m | ||
1820 | CONFIG_NLS_CODEPAGE_936=m | ||
1821 | CONFIG_NLS_CODEPAGE_950=m | ||
1822 | CONFIG_NLS_CODEPAGE_932=m | ||
1823 | CONFIG_NLS_CODEPAGE_949=m | ||
1824 | CONFIG_NLS_CODEPAGE_874=m | ||
1825 | CONFIG_NLS_ISO8859_8=m | ||
1826 | CONFIG_NLS_CODEPAGE_1250=m | ||
1827 | CONFIG_NLS_CODEPAGE_1251=m | ||
1828 | CONFIG_NLS_ASCII=m | ||
1829 | CONFIG_NLS_ISO8859_1=m | ||
1830 | CONFIG_NLS_ISO8859_2=m | ||
1831 | CONFIG_NLS_ISO8859_3=m | ||
1832 | CONFIG_NLS_ISO8859_4=m | ||
1833 | CONFIG_NLS_ISO8859_5=m | ||
1834 | CONFIG_NLS_ISO8859_6=m | ||
1835 | CONFIG_NLS_ISO8859_7=m | ||
1836 | CONFIG_NLS_ISO8859_9=m | ||
1837 | CONFIG_NLS_ISO8859_13=m | ||
1838 | CONFIG_NLS_ISO8859_14=m | ||
1839 | CONFIG_NLS_ISO8859_15=m | ||
1840 | CONFIG_NLS_KOI8_R=m | ||
1841 | CONFIG_NLS_KOI8_U=m | ||
1842 | CONFIG_NLS_UTF8=m | ||
1843 | CONFIG_DLM=m | ||
1844 | CONFIG_DLM_DEBUG=y | ||
1845 | |||
1846 | # | ||
1847 | # Kernel hacking | ||
1848 | # | ||
1849 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
1850 | # CONFIG_PRINTK_TIME is not set | ||
1851 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1852 | CONFIG_ENABLE_MUST_CHECK=y | ||
1853 | # CONFIG_MAGIC_SYSRQ is not set | ||
1854 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1855 | CONFIG_DEBUG_FS=y | ||
1856 | # CONFIG_HEADERS_CHECK is not set | ||
1857 | # CONFIG_DEBUG_KERNEL is not set | ||
1858 | # CONFIG_SAMPLES is not set | ||
1859 | CONFIG_CMDLINE="" | ||
1860 | |||
1861 | # | ||
1862 | # Security options | ||
1863 | # | ||
1864 | # CONFIG_KEYS is not set | ||
1865 | # CONFIG_SECURITY is not set | ||
1866 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1867 | CONFIG_CRYPTO=y | ||
1868 | CONFIG_CRYPTO_ALGAPI=y | ||
1869 | CONFIG_CRYPTO_AEAD=m | ||
1870 | CONFIG_CRYPTO_BLKCIPHER=m | ||
1871 | # CONFIG_CRYPTO_SEQIV is not set | ||
1872 | CONFIG_CRYPTO_HASH=y | ||
1873 | CONFIG_CRYPTO_MANAGER=y | ||
1874 | CONFIG_CRYPTO_HMAC=y | ||
1875 | CONFIG_CRYPTO_XCBC=m | ||
1876 | CONFIG_CRYPTO_NULL=m | ||
1877 | CONFIG_CRYPTO_MD4=m | ||
1878 | CONFIG_CRYPTO_MD5=y | ||
1879 | CONFIG_CRYPTO_SHA1=m | ||
1880 | CONFIG_CRYPTO_SHA256=m | ||
1881 | CONFIG_CRYPTO_SHA512=m | ||
1882 | CONFIG_CRYPTO_WP512=m | ||
1883 | CONFIG_CRYPTO_TGR192=m | ||
1884 | CONFIG_CRYPTO_GF128MUL=m | ||
1885 | CONFIG_CRYPTO_ECB=m | ||
1886 | CONFIG_CRYPTO_CBC=m | ||
1887 | CONFIG_CRYPTO_PCBC=m | ||
1888 | CONFIG_CRYPTO_LRW=m | ||
1889 | CONFIG_CRYPTO_XTS=m | ||
1890 | # CONFIG_CRYPTO_CTR is not set | ||
1891 | # CONFIG_CRYPTO_GCM is not set | ||
1892 | # CONFIG_CRYPTO_CCM is not set | ||
1893 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1894 | CONFIG_CRYPTO_DES=m | ||
1895 | CONFIG_CRYPTO_FCRYPT=m | ||
1896 | CONFIG_CRYPTO_BLOWFISH=m | ||
1897 | CONFIG_CRYPTO_TWOFISH=m | ||
1898 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
1899 | CONFIG_CRYPTO_SERPENT=m | ||
1900 | CONFIG_CRYPTO_AES=m | ||
1901 | CONFIG_CRYPTO_CAST5=m | ||
1902 | CONFIG_CRYPTO_CAST6=m | ||
1903 | CONFIG_CRYPTO_TEA=m | ||
1904 | CONFIG_CRYPTO_ARC4=m | ||
1905 | CONFIG_CRYPTO_KHAZAD=m | ||
1906 | CONFIG_CRYPTO_ANUBIS=m | ||
1907 | CONFIG_CRYPTO_SEED=m | ||
1908 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1909 | CONFIG_CRYPTO_DEFLATE=m | ||
1910 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
1911 | CONFIG_CRYPTO_CRC32C=m | ||
1912 | CONFIG_CRYPTO_CAMELLIA=m | ||
1913 | CONFIG_CRYPTO_TEST=m | ||
1914 | CONFIG_CRYPTO_AUTHENC=m | ||
1915 | # CONFIG_CRYPTO_LZO is not set | ||
1916 | CONFIG_CRYPTO_HW=y | ||
1917 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | ||
1918 | |||
1919 | # | ||
1920 | # Library routines | ||
1921 | # | ||
1922 | CONFIG_BITREVERSE=y | ||
1923 | CONFIG_CRC_CCITT=m | ||
1924 | CONFIG_CRC16=m | ||
1925 | CONFIG_CRC_ITU_T=m | ||
1926 | CONFIG_CRC32=y | ||
1927 | CONFIG_CRC7=m | ||
1928 | CONFIG_LIBCRC32C=m | ||
1929 | CONFIG_AUDIT_GENERIC=y | ||
1930 | CONFIG_ZLIB_INFLATE=m | ||
1931 | CONFIG_ZLIB_DEFLATE=m | ||
1932 | CONFIG_TEXTSEARCH=y | ||
1933 | CONFIG_TEXTSEARCH_KMP=m | ||
1934 | CONFIG_TEXTSEARCH_BM=m | ||
1935 | CONFIG_TEXTSEARCH_FSM=m | ||
1936 | CONFIG_PLIST=y | ||
1937 | CONFIG_HAS_IOMEM=y | ||
1938 | CONFIG_HAS_IOPORT=y | ||
1939 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/mips/configs/ip28_defconfig b/arch/mips/configs/ip28_defconfig new file mode 100644 index 000000000000..ec188be9a67a --- /dev/null +++ b/arch/mips/configs/ip28_defconfig | |||
@@ -0,0 +1,891 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.25-rc1 | ||
4 | # Mon Feb 11 15:58:54 2008 | ||
5 | # | ||
6 | CONFIG_MIPS=y | ||
7 | |||
8 | # | ||
9 | # Machine selection | ||
10 | # | ||
11 | # CONFIG_MACH_ALCHEMY is not set | ||
12 | # CONFIG_BASLER_EXCITE is not set | ||
13 | # CONFIG_BCM47XX is not set | ||
14 | # CONFIG_MIPS_COBALT is not set | ||
15 | # CONFIG_MACH_DECSTATION is not set | ||
16 | # CONFIG_MACH_JAZZ is not set | ||
17 | # CONFIG_LASAT is not set | ||
18 | # CONFIG_LEMOTE_FULONG is not set | ||
19 | # CONFIG_MIPS_ATLAS is not set | ||
20 | # CONFIG_MIPS_MALTA is not set | ||
21 | # CONFIG_MIPS_SEAD is not set | ||
22 | # CONFIG_MIPS_SIM is not set | ||
23 | # CONFIG_MARKEINS is not set | ||
24 | # CONFIG_MACH_VR41XX is not set | ||
25 | # CONFIG_PNX8550_JBS is not set | ||
26 | # CONFIG_PNX8550_STB810 is not set | ||
27 | # CONFIG_PMC_MSP is not set | ||
28 | # CONFIG_PMC_YOSEMITE is not set | ||
29 | # CONFIG_SGI_IP22 is not set | ||
30 | # CONFIG_SGI_IP27 is not set | ||
31 | CONFIG_SGI_IP28=y | ||
32 | # CONFIG_SGI_IP32 is not set | ||
33 | # CONFIG_SIBYTE_CRHINE is not set | ||
34 | # CONFIG_SIBYTE_CARMEL is not set | ||
35 | # CONFIG_SIBYTE_CRHONE is not set | ||
36 | # CONFIG_SIBYTE_RHONE is not set | ||
37 | # CONFIG_SIBYTE_SWARM is not set | ||
38 | # CONFIG_SIBYTE_LITTLESUR is not set | ||
39 | # CONFIG_SIBYTE_SENTOSA is not set | ||
40 | # CONFIG_SIBYTE_BIGSUR is not set | ||
41 | # CONFIG_SNI_RM is not set | ||
42 | # CONFIG_TOSHIBA_JMR3927 is not set | ||
43 | # CONFIG_TOSHIBA_RBTX4927 is not set | ||
44 | # CONFIG_TOSHIBA_RBTX4938 is not set | ||
45 | # CONFIG_WR_PPMC is not set | ||
46 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
47 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
48 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
49 | CONFIG_ARCH_SUPPORTS_OPROFILE=y | ||
50 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
51 | CONFIG_GENERIC_HWEIGHT=y | ||
52 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
53 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
54 | CONFIG_GENERIC_TIME=y | ||
55 | CONFIG_GENERIC_CMOS_UPDATE=y | ||
56 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
57 | # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set | ||
58 | CONFIG_ARC=y | ||
59 | CONFIG_CEVT_R4K=y | ||
60 | CONFIG_CSRC_R4K=y | ||
61 | CONFIG_DMA_NONCOHERENT=y | ||
62 | CONFIG_DMA_NEED_PCI_MAP_STATE=y | ||
63 | CONFIG_EARLY_PRINTK=y | ||
64 | CONFIG_SYS_HAS_EARLY_PRINTK=y | ||
65 | # CONFIG_HOTPLUG_CPU is not set | ||
66 | CONFIG_I8259=y | ||
67 | # CONFIG_NO_IOPORT is not set | ||
68 | CONFIG_GENERIC_ISA_DMA=y | ||
69 | CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN=y | ||
70 | CONFIG_CPU_BIG_ENDIAN=y | ||
71 | # CONFIG_CPU_LITTLE_ENDIAN is not set | ||
72 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | ||
73 | CONFIG_IRQ_CPU=y | ||
74 | CONFIG_SWAP_IO_SPACE=y | ||
75 | CONFIG_SGI_HAS_DS1286=y | ||
76 | CONFIG_SGI_HAS_INDYDOG=y | ||
77 | CONFIG_SGI_HAS_SEEQ=y | ||
78 | CONFIG_SGI_HAS_WD93=y | ||
79 | CONFIG_SGI_HAS_ZILOG=y | ||
80 | CONFIG_SGI_HAS_I8042=y | ||
81 | CONFIG_DEFAULT_SGI_PARTITION=y | ||
82 | CONFIG_MIPS_L1_CACHE_SHIFT=7 | ||
83 | CONFIG_ARC_CONSOLE=y | ||
84 | CONFIG_ARC_PROMLIB=y | ||
85 | CONFIG_ARC64=y | ||
86 | CONFIG_BOOT_ELF64=y | ||
87 | |||
88 | # | ||
89 | # CPU selection | ||
90 | # | ||
91 | # CONFIG_CPU_LOONGSON2 is not set | ||
92 | # CONFIG_CPU_MIPS32_R1 is not set | ||
93 | # CONFIG_CPU_MIPS32_R2 is not set | ||
94 | # CONFIG_CPU_MIPS64_R1 is not set | ||
95 | # CONFIG_CPU_MIPS64_R2 is not set | ||
96 | # CONFIG_CPU_R3000 is not set | ||
97 | # CONFIG_CPU_TX39XX is not set | ||
98 | # CONFIG_CPU_VR41XX is not set | ||
99 | # CONFIG_CPU_R4300 is not set | ||
100 | # CONFIG_CPU_R4X00 is not set | ||
101 | # CONFIG_CPU_TX49XX is not set | ||
102 | # CONFIG_CPU_R5000 is not set | ||
103 | # CONFIG_CPU_R5432 is not set | ||
104 | # CONFIG_CPU_R6000 is not set | ||
105 | # CONFIG_CPU_NEVADA is not set | ||
106 | # CONFIG_CPU_R8000 is not set | ||
107 | CONFIG_CPU_R10000=y | ||
108 | # CONFIG_CPU_RM7000 is not set | ||
109 | # CONFIG_CPU_RM9000 is not set | ||
110 | # CONFIG_CPU_SB1 is not set | ||
111 | CONFIG_SYS_HAS_CPU_R10000=y | ||
112 | CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y | ||
113 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||
114 | CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y | ||
115 | |||
116 | # | ||
117 | # Kernel type | ||
118 | # | ||
119 | # CONFIG_32BIT is not set | ||
120 | CONFIG_64BIT=y | ||
121 | CONFIG_PAGE_SIZE_4KB=y | ||
122 | # CONFIG_PAGE_SIZE_8KB is not set | ||
123 | # CONFIG_PAGE_SIZE_16KB is not set | ||
124 | # CONFIG_PAGE_SIZE_64KB is not set | ||
125 | CONFIG_CPU_HAS_PREFETCH=y | ||
126 | CONFIG_MIPS_MT_DISABLED=y | ||
127 | # CONFIG_MIPS_MT_SMP is not set | ||
128 | # CONFIG_MIPS_MT_SMTC is not set | ||
129 | CONFIG_CPU_HAS_LLSC=y | ||
130 | CONFIG_CPU_HAS_SYNC=y | ||
131 | CONFIG_GENERIC_HARDIRQS=y | ||
132 | CONFIG_GENERIC_IRQ_PROBE=y | ||
133 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||
134 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
135 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
136 | CONFIG_SELECT_MEMORY_MODEL=y | ||
137 | CONFIG_FLATMEM_MANUAL=y | ||
138 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
139 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
140 | CONFIG_FLATMEM=y | ||
141 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
142 | # CONFIG_SPARSEMEM_STATIC is not set | ||
143 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
144 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
145 | CONFIG_RESOURCES_64BIT=y | ||
146 | CONFIG_ZONE_DMA_FLAG=0 | ||
147 | CONFIG_VIRT_TO_BUS=y | ||
148 | # CONFIG_TICK_ONESHOT is not set | ||
149 | # CONFIG_NO_HZ is not set | ||
150 | # CONFIG_HIGH_RES_TIMERS is not set | ||
151 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
152 | # CONFIG_HZ_48 is not set | ||
153 | # CONFIG_HZ_100 is not set | ||
154 | # CONFIG_HZ_128 is not set | ||
155 | CONFIG_HZ_250=y | ||
156 | # CONFIG_HZ_256 is not set | ||
157 | # CONFIG_HZ_1000 is not set | ||
158 | # CONFIG_HZ_1024 is not set | ||
159 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
160 | CONFIG_HZ=250 | ||
161 | # CONFIG_PREEMPT_NONE is not set | ||
162 | CONFIG_PREEMPT_VOLUNTARY=y | ||
163 | # CONFIG_PREEMPT is not set | ||
164 | # CONFIG_RCU_TRACE is not set | ||
165 | # CONFIG_MIPS_INSANE_LARGE is not set | ||
166 | # CONFIG_KEXEC is not set | ||
167 | CONFIG_SECCOMP=y | ||
168 | CONFIG_LOCKDEP_SUPPORT=y | ||
169 | CONFIG_STACKTRACE_SUPPORT=y | ||
170 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
171 | |||
172 | # | ||
173 | # General setup | ||
174 | # | ||
175 | CONFIG_EXPERIMENTAL=y | ||
176 | CONFIG_BROKEN_ON_SMP=y | ||
177 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
178 | CONFIG_LOCALVERSION="" | ||
179 | CONFIG_LOCALVERSION_AUTO=y | ||
180 | CONFIG_SWAP=y | ||
181 | CONFIG_SYSVIPC=y | ||
182 | CONFIG_SYSVIPC_SYSCTL=y | ||
183 | # CONFIG_POSIX_MQUEUE is not set | ||
184 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
185 | # CONFIG_TASKSTATS is not set | ||
186 | # CONFIG_AUDIT is not set | ||
187 | CONFIG_IKCONFIG=y | ||
188 | CONFIG_IKCONFIG_PROC=y | ||
189 | CONFIG_LOG_BUF_SHIFT=14 | ||
190 | # CONFIG_CGROUPS is not set | ||
191 | CONFIG_FAIR_GROUP_SCHED=y | ||
192 | CONFIG_FAIR_USER_SCHED=y | ||
193 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
194 | CONFIG_SYSFS_DEPRECATED=y | ||
195 | CONFIG_RELAY=y | ||
196 | # CONFIG_NAMESPACES is not set | ||
197 | # CONFIG_BLK_DEV_INITRD is not set | ||
198 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
199 | CONFIG_SYSCTL=y | ||
200 | CONFIG_EMBEDDED=y | ||
201 | CONFIG_SYSCTL_SYSCALL=y | ||
202 | CONFIG_KALLSYMS=y | ||
203 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
204 | # CONFIG_HOTPLUG is not set | ||
205 | CONFIG_PRINTK=y | ||
206 | CONFIG_BUG=y | ||
207 | CONFIG_ELF_CORE=y | ||
208 | CONFIG_COMPAT_BRK=y | ||
209 | CONFIG_BASE_FULL=y | ||
210 | CONFIG_FUTEX=y | ||
211 | CONFIG_ANON_INODES=y | ||
212 | CONFIG_EPOLL=y | ||
213 | CONFIG_SIGNALFD=y | ||
214 | CONFIG_TIMERFD=y | ||
215 | CONFIG_EVENTFD=y | ||
216 | CONFIG_SHMEM=y | ||
217 | CONFIG_VM_EVENT_COUNTERS=y | ||
218 | CONFIG_SLAB=y | ||
219 | # CONFIG_SLUB is not set | ||
220 | # CONFIG_SLOB is not set | ||
221 | # CONFIG_PROFILING is not set | ||
222 | # CONFIG_MARKERS is not set | ||
223 | CONFIG_HAVE_OPROFILE=y | ||
224 | # CONFIG_HAVE_KPROBES is not set | ||
225 | # CONFIG_PROC_PAGE_MONITOR is not set | ||
226 | CONFIG_SLABINFO=y | ||
227 | CONFIG_RT_MUTEXES=y | ||
228 | # CONFIG_TINY_SHMEM is not set | ||
229 | CONFIG_BASE_SMALL=0 | ||
230 | CONFIG_MODULES=y | ||
231 | CONFIG_MODULE_UNLOAD=y | ||
232 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
233 | CONFIG_MODVERSIONS=y | ||
234 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
235 | CONFIG_KMOD=y | ||
236 | CONFIG_BLOCK=y | ||
237 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
238 | # CONFIG_BLK_DEV_BSG is not set | ||
239 | CONFIG_BLOCK_COMPAT=y | ||
240 | |||
241 | # | ||
242 | # IO Schedulers | ||
243 | # | ||
244 | CONFIG_IOSCHED_NOOP=y | ||
245 | CONFIG_IOSCHED_AS=y | ||
246 | CONFIG_IOSCHED_DEADLINE=y | ||
247 | CONFIG_IOSCHED_CFQ=y | ||
248 | CONFIG_DEFAULT_AS=y | ||
249 | # CONFIG_DEFAULT_DEADLINE is not set | ||
250 | # CONFIG_DEFAULT_CFQ is not set | ||
251 | # CONFIG_DEFAULT_NOOP is not set | ||
252 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
253 | CONFIG_CLASSIC_RCU=y | ||
254 | # CONFIG_PREEMPT_RCU is not set | ||
255 | |||
256 | # | ||
257 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | ||
258 | # | ||
259 | CONFIG_HW_HAS_EISA=y | ||
260 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
261 | CONFIG_ISA=y | ||
262 | CONFIG_EISA=y | ||
263 | CONFIG_EISA_NAMES=y | ||
264 | CONFIG_MMU=y | ||
265 | CONFIG_I8253=y | ||
266 | |||
267 | # | ||
268 | # Executable file formats | ||
269 | # | ||
270 | CONFIG_BINFMT_ELF=y | ||
271 | # CONFIG_BINFMT_MISC is not set | ||
272 | CONFIG_MIPS32_COMPAT=y | ||
273 | CONFIG_COMPAT=y | ||
274 | CONFIG_SYSVIPC_COMPAT=y | ||
275 | CONFIG_MIPS32_O32=y | ||
276 | CONFIG_MIPS32_N32=y | ||
277 | CONFIG_BINFMT_ELF32=y | ||
278 | |||
279 | # | ||
280 | # Power management options | ||
281 | # | ||
282 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
283 | CONFIG_PM=y | ||
284 | # CONFIG_PM_LEGACY is not set | ||
285 | # CONFIG_PM_DEBUG is not set | ||
286 | # CONFIG_SUSPEND is not set | ||
287 | |||
288 | # | ||
289 | # Networking | ||
290 | # | ||
291 | CONFIG_NET=y | ||
292 | |||
293 | # | ||
294 | # Networking options | ||
295 | # | ||
296 | CONFIG_PACKET=y | ||
297 | CONFIG_PACKET_MMAP=y | ||
298 | CONFIG_UNIX=y | ||
299 | CONFIG_XFRM=y | ||
300 | # CONFIG_XFRM_USER is not set | ||
301 | # CONFIG_XFRM_SUB_POLICY is not set | ||
302 | CONFIG_XFRM_MIGRATE=y | ||
303 | # CONFIG_XFRM_STATISTICS is not set | ||
304 | CONFIG_NET_KEY=y | ||
305 | CONFIG_NET_KEY_MIGRATE=y | ||
306 | CONFIG_INET=y | ||
307 | CONFIG_IP_MULTICAST=y | ||
308 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
309 | CONFIG_IP_FIB_HASH=y | ||
310 | CONFIG_IP_PNP=y | ||
311 | CONFIG_IP_PNP_DHCP=y | ||
312 | CONFIG_IP_PNP_BOOTP=y | ||
313 | # CONFIG_IP_PNP_RARP is not set | ||
314 | # CONFIG_NET_IPIP is not set | ||
315 | # CONFIG_NET_IPGRE is not set | ||
316 | # CONFIG_IP_MROUTE is not set | ||
317 | # CONFIG_ARPD is not set | ||
318 | # CONFIG_SYN_COOKIES is not set | ||
319 | # CONFIG_INET_AH is not set | ||
320 | # CONFIG_INET_ESP is not set | ||
321 | # CONFIG_INET_IPCOMP is not set | ||
322 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
323 | # CONFIG_INET_TUNNEL is not set | ||
324 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
325 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
326 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
327 | # CONFIG_INET_LRO is not set | ||
328 | CONFIG_INET_DIAG=y | ||
329 | CONFIG_INET_TCP_DIAG=y | ||
330 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
331 | CONFIG_TCP_CONG_CUBIC=y | ||
332 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
333 | CONFIG_TCP_MD5SIG=y | ||
334 | # CONFIG_IPV6 is not set | ||
335 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
336 | # CONFIG_INET6_TUNNEL is not set | ||
337 | # CONFIG_NETWORK_SECMARK is not set | ||
338 | # CONFIG_NETFILTER is not set | ||
339 | # CONFIG_IP_DCCP is not set | ||
340 | # CONFIG_IP_SCTP is not set | ||
341 | # CONFIG_TIPC is not set | ||
342 | # CONFIG_ATM is not set | ||
343 | # CONFIG_BRIDGE is not set | ||
344 | # CONFIG_VLAN_8021Q is not set | ||
345 | # CONFIG_DECNET is not set | ||
346 | # CONFIG_LLC2 is not set | ||
347 | # CONFIG_IPX is not set | ||
348 | # CONFIG_ATALK is not set | ||
349 | # CONFIG_X25 is not set | ||
350 | # CONFIG_LAPB is not set | ||
351 | # CONFIG_ECONET is not set | ||
352 | # CONFIG_WAN_ROUTER is not set | ||
353 | # CONFIG_NET_SCHED is not set | ||
354 | |||
355 | # | ||
356 | # Network testing | ||
357 | # | ||
358 | # CONFIG_NET_PKTGEN is not set | ||
359 | # CONFIG_HAMRADIO is not set | ||
360 | # CONFIG_CAN is not set | ||
361 | # CONFIG_IRDA is not set | ||
362 | # CONFIG_BT is not set | ||
363 | # CONFIG_AF_RXRPC is not set | ||
364 | |||
365 | # | ||
366 | # Wireless | ||
367 | # | ||
368 | # CONFIG_CFG80211 is not set | ||
369 | # CONFIG_WIRELESS_EXT is not set | ||
370 | # CONFIG_MAC80211 is not set | ||
371 | # CONFIG_IEEE80211 is not set | ||
372 | # CONFIG_RFKILL is not set | ||
373 | # CONFIG_NET_9P is not set | ||
374 | |||
375 | # | ||
376 | # Device Drivers | ||
377 | # | ||
378 | |||
379 | # | ||
380 | # Generic Driver Options | ||
381 | # | ||
382 | CONFIG_STANDALONE=y | ||
383 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
384 | # CONFIG_SYS_HYPERVISOR is not set | ||
385 | # CONFIG_CONNECTOR is not set | ||
386 | # CONFIG_MTD is not set | ||
387 | # CONFIG_PARPORT is not set | ||
388 | # CONFIG_PNP is not set | ||
389 | CONFIG_BLK_DEV=y | ||
390 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
391 | # CONFIG_BLK_DEV_LOOP is not set | ||
392 | # CONFIG_BLK_DEV_NBD is not set | ||
393 | # CONFIG_BLK_DEV_RAM is not set | ||
394 | # CONFIG_CDROM_PKTCDVD is not set | ||
395 | # CONFIG_ATA_OVER_ETH is not set | ||
396 | # CONFIG_MISC_DEVICES is not set | ||
397 | CONFIG_HAVE_IDE=y | ||
398 | # CONFIG_IDE is not set | ||
399 | |||
400 | # | ||
401 | # SCSI device support | ||
402 | # | ||
403 | # CONFIG_RAID_ATTRS is not set | ||
404 | CONFIG_SCSI=y | ||
405 | CONFIG_SCSI_DMA=y | ||
406 | # CONFIG_SCSI_TGT is not set | ||
407 | # CONFIG_SCSI_NETLINK is not set | ||
408 | CONFIG_SCSI_PROC_FS=y | ||
409 | |||
410 | # | ||
411 | # SCSI support type (disk, tape, CD-ROM) | ||
412 | # | ||
413 | CONFIG_BLK_DEV_SD=y | ||
414 | # CONFIG_CHR_DEV_ST is not set | ||
415 | # CONFIG_CHR_DEV_OSST is not set | ||
416 | CONFIG_BLK_DEV_SR=y | ||
417 | # CONFIG_BLK_DEV_SR_VENDOR is not set | ||
418 | # CONFIG_CHR_DEV_SG is not set | ||
419 | # CONFIG_CHR_DEV_SCH is not set | ||
420 | |||
421 | # | ||
422 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
423 | # | ||
424 | # CONFIG_SCSI_MULTI_LUN is not set | ||
425 | CONFIG_SCSI_CONSTANTS=y | ||
426 | # CONFIG_SCSI_LOGGING is not set | ||
427 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
428 | CONFIG_SCSI_WAIT_SCAN=m | ||
429 | |||
430 | # | ||
431 | # SCSI Transports | ||
432 | # | ||
433 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
434 | # CONFIG_SCSI_FC_ATTRS is not set | ||
435 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
436 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
437 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
438 | CONFIG_SCSI_LOWLEVEL=y | ||
439 | # CONFIG_ISCSI_TCP is not set | ||
440 | CONFIG_SGIWD93_SCSI=y | ||
441 | # CONFIG_SCSI_AHA1740 is not set | ||
442 | # CONFIG_SCSI_AIC7XXX is not set | ||
443 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
444 | # CONFIG_SCSI_ADVANSYS is not set | ||
445 | # CONFIG_SCSI_IN2000 is not set | ||
446 | # CONFIG_SCSI_DTC3280 is not set | ||
447 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
448 | # CONFIG_SCSI_GENERIC_NCR5380 is not set | ||
449 | # CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set | ||
450 | # CONFIG_SCSI_NCR53C406A is not set | ||
451 | # CONFIG_SCSI_PAS16 is not set | ||
452 | # CONFIG_SCSI_QLOGIC_FAS is not set | ||
453 | # CONFIG_SCSI_SIM710 is not set | ||
454 | # CONFIG_SCSI_SYM53C416 is not set | ||
455 | # CONFIG_SCSI_T128 is not set | ||
456 | # CONFIG_SCSI_DEBUG is not set | ||
457 | # CONFIG_ATA is not set | ||
458 | # CONFIG_MD is not set | ||
459 | CONFIG_NETDEVICES=y | ||
460 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
461 | CONFIG_DUMMY=m | ||
462 | # CONFIG_BONDING is not set | ||
463 | # CONFIG_MACVLAN is not set | ||
464 | # CONFIG_EQUALIZER is not set | ||
465 | # CONFIG_TUN is not set | ||
466 | # CONFIG_VETH is not set | ||
467 | # CONFIG_ARCNET is not set | ||
468 | # CONFIG_PHYLIB is not set | ||
469 | CONFIG_NET_ETHERNET=y | ||
470 | # CONFIG_MII is not set | ||
471 | # CONFIG_AX88796 is not set | ||
472 | # CONFIG_NET_VENDOR_3COM is not set | ||
473 | # CONFIG_NET_VENDOR_SMC is not set | ||
474 | # CONFIG_DM9000 is not set | ||
475 | # CONFIG_NET_VENDOR_RACAL is not set | ||
476 | # CONFIG_NET_TULIP is not set | ||
477 | # CONFIG_AT1700 is not set | ||
478 | # CONFIG_DEPCA is not set | ||
479 | # CONFIG_HP100 is not set | ||
480 | # CONFIG_NET_ISA is not set | ||
481 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
482 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
483 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
484 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
485 | # CONFIG_NET_PCI is not set | ||
486 | # CONFIG_B44 is not set | ||
487 | CONFIG_SGISEEQ=y | ||
488 | # CONFIG_NETDEV_1000 is not set | ||
489 | # CONFIG_NETDEV_10000 is not set | ||
490 | # CONFIG_TR is not set | ||
491 | |||
492 | # | ||
493 | # Wireless LAN | ||
494 | # | ||
495 | # CONFIG_WLAN_PRE80211 is not set | ||
496 | # CONFIG_WLAN_80211 is not set | ||
497 | # CONFIG_WAN is not set | ||
498 | # CONFIG_FDDI is not set | ||
499 | # CONFIG_PPP is not set | ||
500 | # CONFIG_SLIP is not set | ||
501 | # CONFIG_NETCONSOLE is not set | ||
502 | # CONFIG_NETPOLL is not set | ||
503 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
504 | # CONFIG_ISDN is not set | ||
505 | # CONFIG_PHONE is not set | ||
506 | |||
507 | # | ||
508 | # Input device support | ||
509 | # | ||
510 | CONFIG_INPUT=y | ||
511 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
512 | # CONFIG_INPUT_POLLDEV is not set | ||
513 | |||
514 | # | ||
515 | # Userland interfaces | ||
516 | # | ||
517 | CONFIG_INPUT_MOUSEDEV=y | ||
518 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
519 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
520 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
521 | # CONFIG_INPUT_JOYDEV is not set | ||
522 | # CONFIG_INPUT_EVDEV is not set | ||
523 | # CONFIG_INPUT_EVBUG is not set | ||
524 | |||
525 | # | ||
526 | # Input Device Drivers | ||
527 | # | ||
528 | CONFIG_INPUT_KEYBOARD=y | ||
529 | CONFIG_KEYBOARD_ATKBD=y | ||
530 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
531 | # CONFIG_KEYBOARD_LKKBD is not set | ||
532 | # CONFIG_KEYBOARD_XTKBD is not set | ||
533 | # CONFIG_KEYBOARD_NEWTON is not set | ||
534 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
535 | CONFIG_INPUT_MOUSE=y | ||
536 | CONFIG_MOUSE_PS2=y | ||
537 | # CONFIG_MOUSE_PS2_ALPS is not set | ||
538 | CONFIG_MOUSE_PS2_LOGIPS2PP=y | ||
539 | # CONFIG_MOUSE_PS2_SYNAPTICS is not set | ||
540 | # CONFIG_MOUSE_PS2_LIFEBOOK is not set | ||
541 | CONFIG_MOUSE_PS2_TRACKPOINT=y | ||
542 | # CONFIG_MOUSE_PS2_TOUCHKIT is not set | ||
543 | # CONFIG_MOUSE_SERIAL is not set | ||
544 | # CONFIG_MOUSE_INPORT is not set | ||
545 | # CONFIG_MOUSE_LOGIBM is not set | ||
546 | # CONFIG_MOUSE_PC110PAD is not set | ||
547 | # CONFIG_MOUSE_VSXXXAA is not set | ||
548 | # CONFIG_INPUT_JOYSTICK is not set | ||
549 | # CONFIG_INPUT_TABLET is not set | ||
550 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
551 | # CONFIG_INPUT_MISC is not set | ||
552 | |||
553 | # | ||
554 | # Hardware I/O ports | ||
555 | # | ||
556 | CONFIG_SERIO=y | ||
557 | CONFIG_SERIO_I8042=y | ||
558 | CONFIG_SERIO_SERPORT=y | ||
559 | CONFIG_SERIO_LIBPS2=y | ||
560 | # CONFIG_SERIO_RAW is not set | ||
561 | # CONFIG_GAMEPORT is not set | ||
562 | |||
563 | # | ||
564 | # Character devices | ||
565 | # | ||
566 | CONFIG_VT=y | ||
567 | CONFIG_VT_CONSOLE=y | ||
568 | CONFIG_HW_CONSOLE=y | ||
569 | CONFIG_VT_HW_CONSOLE_BINDING=y | ||
570 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
571 | |||
572 | # | ||
573 | # Serial drivers | ||
574 | # | ||
575 | # CONFIG_SERIAL_8250 is not set | ||
576 | |||
577 | # | ||
578 | # Non-8250 serial port support | ||
579 | # | ||
580 | CONFIG_SERIAL_IP22_ZILOG=y | ||
581 | CONFIG_SERIAL_IP22_ZILOG_CONSOLE=y | ||
582 | CONFIG_SERIAL_CORE=y | ||
583 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
584 | CONFIG_UNIX98_PTYS=y | ||
585 | CONFIG_LEGACY_PTYS=y | ||
586 | CONFIG_LEGACY_PTY_COUNT=256 | ||
587 | # CONFIG_IPMI_HANDLER is not set | ||
588 | # CONFIG_HW_RANDOM is not set | ||
589 | # CONFIG_RTC is not set | ||
590 | CONFIG_SGI_DS1286=y | ||
591 | # CONFIG_DTLK is not set | ||
592 | # CONFIG_R3964 is not set | ||
593 | # CONFIG_RAW_DRIVER is not set | ||
594 | # CONFIG_TCG_TPM is not set | ||
595 | CONFIG_DEVPORT=y | ||
596 | # CONFIG_I2C is not set | ||
597 | |||
598 | # | ||
599 | # SPI support | ||
600 | # | ||
601 | # CONFIG_SPI is not set | ||
602 | # CONFIG_SPI_MASTER is not set | ||
603 | # CONFIG_W1 is not set | ||
604 | # CONFIG_POWER_SUPPLY is not set | ||
605 | # CONFIG_HWMON is not set | ||
606 | # CONFIG_THERMAL is not set | ||
607 | CONFIG_WATCHDOG=y | ||
608 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
609 | |||
610 | # | ||
611 | # Watchdog Device Drivers | ||
612 | # | ||
613 | # CONFIG_SOFT_WATCHDOG is not set | ||
614 | CONFIG_INDYDOG=y | ||
615 | |||
616 | # | ||
617 | # ISA-based Watchdog Cards | ||
618 | # | ||
619 | # CONFIG_PCWATCHDOG is not set | ||
620 | # CONFIG_MIXCOMWD is not set | ||
621 | # CONFIG_WDT is not set | ||
622 | |||
623 | # | ||
624 | # Sonics Silicon Backplane | ||
625 | # | ||
626 | CONFIG_SSB_POSSIBLE=y | ||
627 | # CONFIG_SSB is not set | ||
628 | |||
629 | # | ||
630 | # Multifunction device drivers | ||
631 | # | ||
632 | # CONFIG_MFD_SM501 is not set | ||
633 | |||
634 | # | ||
635 | # Multimedia devices | ||
636 | # | ||
637 | # CONFIG_VIDEO_DEV is not set | ||
638 | # CONFIG_DVB_CORE is not set | ||
639 | # CONFIG_DAB is not set | ||
640 | |||
641 | # | ||
642 | # Graphics support | ||
643 | # | ||
644 | # CONFIG_VGASTATE is not set | ||
645 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
646 | # CONFIG_FB is not set | ||
647 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
648 | |||
649 | # | ||
650 | # Display device support | ||
651 | # | ||
652 | # CONFIG_DISPLAY_SUPPORT is not set | ||
653 | |||
654 | # | ||
655 | # Console display driver support | ||
656 | # | ||
657 | # CONFIG_VGA_CONSOLE is not set | ||
658 | # CONFIG_MDA_CONSOLE is not set | ||
659 | CONFIG_DUMMY_CONSOLE=y | ||
660 | |||
661 | # | ||
662 | # Sound | ||
663 | # | ||
664 | # CONFIG_SOUND is not set | ||
665 | CONFIG_HID_SUPPORT=y | ||
666 | CONFIG_HID=y | ||
667 | # CONFIG_HID_DEBUG is not set | ||
668 | # CONFIG_HIDRAW is not set | ||
669 | CONFIG_USB_SUPPORT=y | ||
670 | # CONFIG_USB_ARCH_HAS_HCD is not set | ||
671 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
672 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
673 | |||
674 | # | ||
675 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
676 | # | ||
677 | # CONFIG_USB_GADGET is not set | ||
678 | # CONFIG_MMC is not set | ||
679 | # CONFIG_MEMSTICK is not set | ||
680 | # CONFIG_NEW_LEDS is not set | ||
681 | CONFIG_RTC_LIB=y | ||
682 | # CONFIG_RTC_CLASS is not set | ||
683 | |||
684 | # | ||
685 | # Userspace I/O | ||
686 | # | ||
687 | # CONFIG_UIO is not set | ||
688 | |||
689 | # | ||
690 | # File systems | ||
691 | # | ||
692 | CONFIG_EXT2_FS=y | ||
693 | # CONFIG_EXT2_FS_XATTR is not set | ||
694 | # CONFIG_EXT2_FS_XIP is not set | ||
695 | CONFIG_EXT3_FS=y | ||
696 | CONFIG_EXT3_FS_XATTR=y | ||
697 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
698 | CONFIG_EXT3_FS_SECURITY=y | ||
699 | # CONFIG_EXT4DEV_FS is not set | ||
700 | CONFIG_JBD=y | ||
701 | CONFIG_FS_MBCACHE=y | ||
702 | # CONFIG_REISERFS_FS is not set | ||
703 | # CONFIG_JFS_FS is not set | ||
704 | CONFIG_FS_POSIX_ACL=y | ||
705 | # CONFIG_XFS_FS is not set | ||
706 | # CONFIG_GFS2_FS is not set | ||
707 | # CONFIG_OCFS2_FS is not set | ||
708 | CONFIG_DNOTIFY=y | ||
709 | CONFIG_INOTIFY=y | ||
710 | CONFIG_INOTIFY_USER=y | ||
711 | CONFIG_QUOTA=y | ||
712 | # CONFIG_QUOTA_NETLINK_INTERFACE is not set | ||
713 | CONFIG_PRINT_QUOTA_WARNING=y | ||
714 | # CONFIG_QFMT_V1 is not set | ||
715 | # CONFIG_QFMT_V2 is not set | ||
716 | CONFIG_QUOTACTL=y | ||
717 | # CONFIG_AUTOFS_FS is not set | ||
718 | # CONFIG_AUTOFS4_FS is not set | ||
719 | # CONFIG_FUSE_FS is not set | ||
720 | CONFIG_GENERIC_ACL=y | ||
721 | |||
722 | # | ||
723 | # CD-ROM/DVD Filesystems | ||
724 | # | ||
725 | # CONFIG_ISO9660_FS is not set | ||
726 | # CONFIG_UDF_FS is not set | ||
727 | |||
728 | # | ||
729 | # DOS/FAT/NT Filesystems | ||
730 | # | ||
731 | # CONFIG_MSDOS_FS is not set | ||
732 | # CONFIG_VFAT_FS is not set | ||
733 | # CONFIG_NTFS_FS is not set | ||
734 | |||
735 | # | ||
736 | # Pseudo filesystems | ||
737 | # | ||
738 | CONFIG_PROC_FS=y | ||
739 | CONFIG_PROC_KCORE=y | ||
740 | CONFIG_PROC_SYSCTL=y | ||
741 | CONFIG_SYSFS=y | ||
742 | CONFIG_TMPFS=y | ||
743 | CONFIG_TMPFS_POSIX_ACL=y | ||
744 | # CONFIG_HUGETLB_PAGE is not set | ||
745 | # CONFIG_CONFIGFS_FS is not set | ||
746 | |||
747 | # | ||
748 | # Miscellaneous filesystems | ||
749 | # | ||
750 | # CONFIG_ADFS_FS is not set | ||
751 | # CONFIG_AFFS_FS is not set | ||
752 | # CONFIG_HFS_FS is not set | ||
753 | # CONFIG_HFSPLUS_FS is not set | ||
754 | # CONFIG_BEFS_FS is not set | ||
755 | # CONFIG_BFS_FS is not set | ||
756 | # CONFIG_EFS_FS is not set | ||
757 | # CONFIG_CRAMFS is not set | ||
758 | # CONFIG_VXFS_FS is not set | ||
759 | # CONFIG_MINIX_FS is not set | ||
760 | # CONFIG_HPFS_FS is not set | ||
761 | # CONFIG_QNX4FS_FS is not set | ||
762 | # CONFIG_ROMFS_FS is not set | ||
763 | # CONFIG_SYSV_FS is not set | ||
764 | # CONFIG_UFS_FS is not set | ||
765 | CONFIG_NETWORK_FILESYSTEMS=y | ||
766 | CONFIG_NFS_FS=y | ||
767 | CONFIG_NFS_V3=y | ||
768 | CONFIG_NFS_V3_ACL=y | ||
769 | # CONFIG_NFS_V4 is not set | ||
770 | # CONFIG_NFS_DIRECTIO is not set | ||
771 | # CONFIG_NFSD is not set | ||
772 | CONFIG_ROOT_NFS=y | ||
773 | CONFIG_LOCKD=y | ||
774 | CONFIG_LOCKD_V4=y | ||
775 | CONFIG_NFS_ACL_SUPPORT=y | ||
776 | CONFIG_NFS_COMMON=y | ||
777 | CONFIG_SUNRPC=y | ||
778 | # CONFIG_SUNRPC_BIND34 is not set | ||
779 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
780 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
781 | # CONFIG_SMB_FS is not set | ||
782 | # CONFIG_CIFS is not set | ||
783 | # CONFIG_NCP_FS is not set | ||
784 | # CONFIG_CODA_FS is not set | ||
785 | # CONFIG_AFS_FS is not set | ||
786 | |||
787 | # | ||
788 | # Partition Types | ||
789 | # | ||
790 | CONFIG_PARTITION_ADVANCED=y | ||
791 | # CONFIG_ACORN_PARTITION is not set | ||
792 | # CONFIG_OSF_PARTITION is not set | ||
793 | # CONFIG_AMIGA_PARTITION is not set | ||
794 | # CONFIG_ATARI_PARTITION is not set | ||
795 | # CONFIG_MAC_PARTITION is not set | ||
796 | CONFIG_MSDOS_PARTITION=y | ||
797 | # CONFIG_BSD_DISKLABEL is not set | ||
798 | # CONFIG_MINIX_SUBPARTITION is not set | ||
799 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
800 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
801 | # CONFIG_LDM_PARTITION is not set | ||
802 | CONFIG_SGI_PARTITION=y | ||
803 | # CONFIG_ULTRIX_PARTITION is not set | ||
804 | # CONFIG_SUN_PARTITION is not set | ||
805 | # CONFIG_KARMA_PARTITION is not set | ||
806 | # CONFIG_EFI_PARTITION is not set | ||
807 | # CONFIG_SYSV68_PARTITION is not set | ||
808 | # CONFIG_NLS is not set | ||
809 | # CONFIG_DLM is not set | ||
810 | |||
811 | # | ||
812 | # Kernel hacking | ||
813 | # | ||
814 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
815 | # CONFIG_PRINTK_TIME is not set | ||
816 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
817 | CONFIG_ENABLE_MUST_CHECK=y | ||
818 | CONFIG_MAGIC_SYSRQ=y | ||
819 | # CONFIG_UNUSED_SYMBOLS is not set | ||
820 | # CONFIG_DEBUG_FS is not set | ||
821 | # CONFIG_HEADERS_CHECK is not set | ||
822 | # CONFIG_DEBUG_KERNEL is not set | ||
823 | # CONFIG_SAMPLES is not set | ||
824 | CONFIG_CMDLINE="" | ||
825 | |||
826 | # | ||
827 | # Security options | ||
828 | # | ||
829 | # CONFIG_KEYS is not set | ||
830 | # CONFIG_SECURITY is not set | ||
831 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
832 | CONFIG_CRYPTO=y | ||
833 | CONFIG_CRYPTO_ALGAPI=y | ||
834 | # CONFIG_CRYPTO_SEQIV is not set | ||
835 | CONFIG_CRYPTO_MANAGER=y | ||
836 | # CONFIG_CRYPTO_HMAC is not set | ||
837 | # CONFIG_CRYPTO_XCBC is not set | ||
838 | # CONFIG_CRYPTO_NULL is not set | ||
839 | # CONFIG_CRYPTO_MD4 is not set | ||
840 | CONFIG_CRYPTO_MD5=y | ||
841 | # CONFIG_CRYPTO_SHA1 is not set | ||
842 | # CONFIG_CRYPTO_SHA256 is not set | ||
843 | # CONFIG_CRYPTO_SHA512 is not set | ||
844 | # CONFIG_CRYPTO_WP512 is not set | ||
845 | # CONFIG_CRYPTO_TGR192 is not set | ||
846 | # CONFIG_CRYPTO_GF128MUL is not set | ||
847 | # CONFIG_CRYPTO_ECB is not set | ||
848 | # CONFIG_CRYPTO_CBC is not set | ||
849 | # CONFIG_CRYPTO_PCBC is not set | ||
850 | # CONFIG_CRYPTO_LRW is not set | ||
851 | # CONFIG_CRYPTO_XTS is not set | ||
852 | # CONFIG_CRYPTO_CTR is not set | ||
853 | # CONFIG_CRYPTO_GCM is not set | ||
854 | # CONFIG_CRYPTO_CCM is not set | ||
855 | # CONFIG_CRYPTO_CRYPTD is not set | ||
856 | # CONFIG_CRYPTO_DES is not set | ||
857 | # CONFIG_CRYPTO_FCRYPT is not set | ||
858 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
859 | # CONFIG_CRYPTO_TWOFISH is not set | ||
860 | # CONFIG_CRYPTO_SERPENT is not set | ||
861 | # CONFIG_CRYPTO_AES is not set | ||
862 | # CONFIG_CRYPTO_CAST5 is not set | ||
863 | # CONFIG_CRYPTO_CAST6 is not set | ||
864 | # CONFIG_CRYPTO_TEA is not set | ||
865 | # CONFIG_CRYPTO_ARC4 is not set | ||
866 | # CONFIG_CRYPTO_KHAZAD is not set | ||
867 | # CONFIG_CRYPTO_ANUBIS is not set | ||
868 | # CONFIG_CRYPTO_SEED is not set | ||
869 | # CONFIG_CRYPTO_SALSA20 is not set | ||
870 | # CONFIG_CRYPTO_DEFLATE is not set | ||
871 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
872 | # CONFIG_CRYPTO_CRC32C is not set | ||
873 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
874 | # CONFIG_CRYPTO_TEST is not set | ||
875 | # CONFIG_CRYPTO_AUTHENC is not set | ||
876 | # CONFIG_CRYPTO_LZO is not set | ||
877 | # CONFIG_CRYPTO_HW is not set | ||
878 | |||
879 | # | ||
880 | # Library routines | ||
881 | # | ||
882 | # CONFIG_CRC_CCITT is not set | ||
883 | # CONFIG_CRC16 is not set | ||
884 | # CONFIG_CRC_ITU_T is not set | ||
885 | # CONFIG_CRC32 is not set | ||
886 | # CONFIG_CRC7 is not set | ||
887 | # CONFIG_LIBCRC32C is not set | ||
888 | CONFIG_PLIST=y | ||
889 | CONFIG_HAS_IOMEM=y | ||
890 | CONFIG_HAS_IOPORT=y | ||
891 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/mips/configs/qemu_defconfig b/arch/mips/configs/qemu_defconfig deleted file mode 100644 index 72ca147f9422..000000000000 --- a/arch/mips/configs/qemu_defconfig +++ /dev/null | |||
@@ -1,800 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Tue Feb 20 21:47:39 2007 | ||
5 | # | ||
6 | CONFIG_MIPS=y | ||
7 | |||
8 | # | ||
9 | # Machine selection | ||
10 | # | ||
11 | CONFIG_ZONE_DMA=y | ||
12 | # CONFIG_MIPS_MTX1 is not set | ||
13 | # CONFIG_MIPS_BOSPORUS is not set | ||
14 | # CONFIG_MIPS_PB1000 is not set | ||
15 | # CONFIG_MIPS_PB1100 is not set | ||
16 | # CONFIG_MIPS_PB1500 is not set | ||
17 | # CONFIG_MIPS_PB1550 is not set | ||
18 | # CONFIG_MIPS_PB1200 is not set | ||
19 | # CONFIG_MIPS_DB1000 is not set | ||
20 | # CONFIG_MIPS_DB1100 is not set | ||
21 | # CONFIG_MIPS_DB1500 is not set | ||
22 | # CONFIG_MIPS_DB1550 is not set | ||
23 | # CONFIG_MIPS_DB1200 is not set | ||
24 | # CONFIG_MIPS_MIRAGE is not set | ||
25 | # CONFIG_BASLER_EXCITE is not set | ||
26 | # CONFIG_MIPS_COBALT is not set | ||
27 | # CONFIG_MACH_DECSTATION is not set | ||
28 | # CONFIG_MACH_JAZZ is not set | ||
29 | # CONFIG_MIPS_ATLAS is not set | ||
30 | # CONFIG_MIPS_MALTA is not set | ||
31 | # CONFIG_MIPS_SEAD is not set | ||
32 | # CONFIG_WR_PPMC is not set | ||
33 | # CONFIG_MIPS_SIM is not set | ||
34 | # CONFIG_MOMENCO_JAGUAR_ATX is not set | ||
35 | # CONFIG_MIPS_XXS1500 is not set | ||
36 | # CONFIG_PNX8550_JBS is not set | ||
37 | # CONFIG_PNX8550_STB810 is not set | ||
38 | # CONFIG_MACH_VR41XX is not set | ||
39 | # CONFIG_PMC_YOSEMITE is not set | ||
40 | # CONFIG_MARKEINS is not set | ||
41 | # CONFIG_SGI_IP22 is not set | ||
42 | # CONFIG_SGI_IP27 is not set | ||
43 | # CONFIG_SGI_IP32 is not set | ||
44 | # CONFIG_SIBYTE_BIGSUR is not set | ||
45 | # CONFIG_SIBYTE_SWARM is not set | ||
46 | # CONFIG_SIBYTE_SENTOSA is not set | ||
47 | # CONFIG_SIBYTE_RHONE is not set | ||
48 | # CONFIG_SIBYTE_CARMEL is not set | ||
49 | # CONFIG_SIBYTE_LITTLESUR is not set | ||
50 | # CONFIG_SIBYTE_CRHINE is not set | ||
51 | # CONFIG_SIBYTE_CRHONE is not set | ||
52 | # CONFIG_SNI_RM is not set | ||
53 | # CONFIG_TOSHIBA_JMR3927 is not set | ||
54 | # CONFIG_TOSHIBA_RBTX4927 is not set | ||
55 | # CONFIG_TOSHIBA_RBTX4938 is not set | ||
56 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
57 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
58 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
59 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
60 | CONFIG_GENERIC_HWEIGHT=y | ||
61 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
62 | CONFIG_GENERIC_TIME=y | ||
63 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
64 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
65 | CONFIG_DMA_COHERENT=y | ||
66 | CONFIG_GENERIC_ISA_DMA=y | ||
67 | CONFIG_I8259=y | ||
68 | CONFIG_CPU_BIG_ENDIAN=y | ||
69 | # CONFIG_CPU_LITTLE_ENDIAN is not set | ||
70 | CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | ||
71 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y | ||
72 | CONFIG_SWAP_IO_SPACE=y | ||
73 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | ||
74 | CONFIG_HAVE_STD_PC_SERIAL_PORT=y | ||
75 | |||
76 | # | ||
77 | # CPU selection | ||
78 | # | ||
79 | CONFIG_CPU_MIPS32_R1=y | ||
80 | # CONFIG_CPU_MIPS32_R2 is not set | ||
81 | # CONFIG_CPU_MIPS64_R1 is not set | ||
82 | # CONFIG_CPU_MIPS64_R2 is not set | ||
83 | # CONFIG_CPU_R3000 is not set | ||
84 | # CONFIG_CPU_TX39XX is not set | ||
85 | # CONFIG_CPU_VR41XX is not set | ||
86 | # CONFIG_CPU_R4300 is not set | ||
87 | # CONFIG_CPU_R4X00 is not set | ||
88 | # CONFIG_CPU_TX49XX is not set | ||
89 | # CONFIG_CPU_R5000 is not set | ||
90 | # CONFIG_CPU_R5432 is not set | ||
91 | # CONFIG_CPU_R6000 is not set | ||
92 | # CONFIG_CPU_NEVADA is not set | ||
93 | # CONFIG_CPU_R8000 is not set | ||
94 | # CONFIG_CPU_R10000 is not set | ||
95 | # CONFIG_CPU_RM7000 is not set | ||
96 | # CONFIG_CPU_RM9000 is not set | ||
97 | # CONFIG_CPU_SB1 is not set | ||
98 | CONFIG_SYS_HAS_CPU_MIPS32_R1=y | ||
99 | CONFIG_CPU_MIPS32=y | ||
100 | CONFIG_CPU_MIPSR1=y | ||
101 | CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y | ||
102 | CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y | ||
103 | |||
104 | # | ||
105 | # Kernel type | ||
106 | # | ||
107 | CONFIG_32BIT=y | ||
108 | # CONFIG_64BIT is not set | ||
109 | CONFIG_PAGE_SIZE_4KB=y | ||
110 | # CONFIG_PAGE_SIZE_8KB is not set | ||
111 | # CONFIG_PAGE_SIZE_16KB is not set | ||
112 | # CONFIG_PAGE_SIZE_64KB is not set | ||
113 | CONFIG_CPU_HAS_PREFETCH=y | ||
114 | CONFIG_MIPS_MT_DISABLED=y | ||
115 | # CONFIG_MIPS_MT_SMP is not set | ||
116 | # CONFIG_MIPS_MT_SMTC is not set | ||
117 | # CONFIG_MIPS_VPE_LOADER is not set | ||
118 | # CONFIG_64BIT_PHYS_ADDR is not set | ||
119 | CONFIG_CPU_HAS_LLSC=y | ||
120 | CONFIG_CPU_HAS_SYNC=y | ||
121 | CONFIG_GENERIC_HARDIRQS=y | ||
122 | CONFIG_GENERIC_IRQ_PROBE=y | ||
123 | CONFIG_CPU_SUPPORTS_HIGHMEM=y | ||
124 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
125 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | ||
126 | CONFIG_FLATMEM=y | ||
127 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
128 | CONFIG_SPARSEMEM_STATIC=y | ||
129 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
130 | # CONFIG_RESOURCES_64BIT is not set | ||
131 | CONFIG_ZONE_DMA_FLAG=1 | ||
132 | # CONFIG_HZ_48 is not set | ||
133 | CONFIG_HZ_100=y | ||
134 | # CONFIG_HZ_128 is not set | ||
135 | # CONFIG_HZ_250 is not set | ||
136 | # CONFIG_HZ_256 is not set | ||
137 | # CONFIG_HZ_1000 is not set | ||
138 | # CONFIG_HZ_1024 is not set | ||
139 | CONFIG_SYS_SUPPORTS_ARBIT_HZ=y | ||
140 | CONFIG_HZ=100 | ||
141 | CONFIG_PREEMPT_NONE=y | ||
142 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
143 | # CONFIG_PREEMPT is not set | ||
144 | CONFIG_LOCKDEP_SUPPORT=y | ||
145 | CONFIG_STACKTRACE_SUPPORT=y | ||
146 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
147 | |||
148 | # | ||
149 | # Code maturity level options | ||
150 | # | ||
151 | # CONFIG_EXPERIMENTAL is not set | ||
152 | CONFIG_BROKEN_ON_SMP=y | ||
153 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
154 | |||
155 | # | ||
156 | # General setup | ||
157 | # | ||
158 | CONFIG_LOCALVERSION="" | ||
159 | CONFIG_LOCALVERSION_AUTO=y | ||
160 | # CONFIG_SWAP is not set | ||
161 | # CONFIG_SYSVIPC is not set | ||
162 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
163 | # CONFIG_TASKSTATS is not set | ||
164 | # CONFIG_UTS_NS is not set | ||
165 | # CONFIG_AUDIT is not set | ||
166 | # CONFIG_IKCONFIG is not set | ||
167 | CONFIG_SYSFS_DEPRECATED=y | ||
168 | CONFIG_RELAY=y | ||
169 | CONFIG_SYSCTL=y | ||
170 | CONFIG_EMBEDDED=y | ||
171 | CONFIG_SYSCTL_SYSCALL=y | ||
172 | CONFIG_KALLSYMS=y | ||
173 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
174 | # CONFIG_HOTPLUG is not set | ||
175 | CONFIG_PRINTK=y | ||
176 | # CONFIG_BUG is not set | ||
177 | CONFIG_ELF_CORE=y | ||
178 | # CONFIG_BASE_FULL is not set | ||
179 | # CONFIG_FUTEX is not set | ||
180 | # CONFIG_EPOLL is not set | ||
181 | # CONFIG_SHMEM is not set | ||
182 | CONFIG_SLAB=y | ||
183 | CONFIG_VM_EVENT_COUNTERS=y | ||
184 | CONFIG_TINY_SHMEM=y | ||
185 | CONFIG_BASE_SMALL=1 | ||
186 | # CONFIG_SLOB is not set | ||
187 | |||
188 | # | ||
189 | # Loadable module support | ||
190 | # | ||
191 | # CONFIG_MODULES is not set | ||
192 | |||
193 | # | ||
194 | # Block layer | ||
195 | # | ||
196 | CONFIG_BLOCK=y | ||
197 | # CONFIG_LBD is not set | ||
198 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
199 | # CONFIG_LSF is not set | ||
200 | |||
201 | # | ||
202 | # IO Schedulers | ||
203 | # | ||
204 | CONFIG_IOSCHED_NOOP=y | ||
205 | # CONFIG_IOSCHED_AS is not set | ||
206 | # CONFIG_IOSCHED_DEADLINE is not set | ||
207 | # CONFIG_IOSCHED_CFQ is not set | ||
208 | # CONFIG_DEFAULT_AS is not set | ||
209 | # CONFIG_DEFAULT_DEADLINE is not set | ||
210 | # CONFIG_DEFAULT_CFQ is not set | ||
211 | CONFIG_DEFAULT_NOOP=y | ||
212 | CONFIG_DEFAULT_IOSCHED="noop" | ||
213 | |||
214 | # | ||
215 | # Bus options (PCI, PCMCIA, EISA, ISA, TC) | ||
216 | # | ||
217 | CONFIG_ISA=y | ||
218 | CONFIG_MMU=y | ||
219 | CONFIG_PCSPEAKER=y | ||
220 | |||
221 | # | ||
222 | # PCCARD (PCMCIA/CardBus) support | ||
223 | # | ||
224 | |||
225 | # | ||
226 | # PCI Hotplug Support | ||
227 | # | ||
228 | |||
229 | # | ||
230 | # Executable file formats | ||
231 | # | ||
232 | CONFIG_BINFMT_ELF=y | ||
233 | # CONFIG_BINFMT_MISC is not set | ||
234 | CONFIG_TRAD_SIGNALS=y | ||
235 | |||
236 | # | ||
237 | # Power management options | ||
238 | # | ||
239 | CONFIG_PM=y | ||
240 | # CONFIG_PM_LEGACY is not set | ||
241 | # CONFIG_PM_DEBUG is not set | ||
242 | # CONFIG_PM_SYSFS_DEPRECATED is not set | ||
243 | |||
244 | # | ||
245 | # Networking | ||
246 | # | ||
247 | CONFIG_NET=y | ||
248 | |||
249 | # | ||
250 | # Networking options | ||
251 | # | ||
252 | # CONFIG_NETDEBUG is not set | ||
253 | CONFIG_PACKET=y | ||
254 | CONFIG_PACKET_MMAP=y | ||
255 | CONFIG_UNIX=y | ||
256 | CONFIG_XFRM=y | ||
257 | # CONFIG_XFRM_USER is not set | ||
258 | # CONFIG_NET_KEY is not set | ||
259 | CONFIG_INET=y | ||
260 | CONFIG_IP_MULTICAST=y | ||
261 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
262 | CONFIG_IP_FIB_HASH=y | ||
263 | CONFIG_IP_PNP=y | ||
264 | CONFIG_IP_PNP_DHCP=y | ||
265 | CONFIG_IP_PNP_BOOTP=y | ||
266 | # CONFIG_IP_PNP_RARP is not set | ||
267 | # CONFIG_NET_IPIP is not set | ||
268 | # CONFIG_NET_IPGRE is not set | ||
269 | # CONFIG_IP_MROUTE is not set | ||
270 | # CONFIG_SYN_COOKIES is not set | ||
271 | # CONFIG_INET_AH is not set | ||
272 | # CONFIG_INET_ESP is not set | ||
273 | # CONFIG_INET_IPCOMP is not set | ||
274 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
275 | # CONFIG_INET_TUNNEL is not set | ||
276 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
277 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
278 | CONFIG_INET_XFRM_MODE_BEET=y | ||
279 | CONFIG_INET_DIAG=y | ||
280 | CONFIG_INET_TCP_DIAG=y | ||
281 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
282 | CONFIG_TCP_CONG_CUBIC=y | ||
283 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
284 | # CONFIG_IPV6 is not set | ||
285 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
286 | # CONFIG_INET6_TUNNEL is not set | ||
287 | CONFIG_NETWORK_SECMARK=y | ||
288 | # CONFIG_NETFILTER is not set | ||
289 | # CONFIG_BRIDGE is not set | ||
290 | # CONFIG_VLAN_8021Q is not set | ||
291 | # CONFIG_DECNET is not set | ||
292 | # CONFIG_LLC2 is not set | ||
293 | # CONFIG_IPX is not set | ||
294 | # CONFIG_ATALK is not set | ||
295 | |||
296 | # | ||
297 | # QoS and/or fair queueing | ||
298 | # | ||
299 | # CONFIG_NET_SCHED is not set | ||
300 | |||
301 | # | ||
302 | # Network testing | ||
303 | # | ||
304 | # CONFIG_NET_PKTGEN is not set | ||
305 | # CONFIG_HAMRADIO is not set | ||
306 | # CONFIG_IRDA is not set | ||
307 | # CONFIG_BT is not set | ||
308 | # CONFIG_IEEE80211 is not set | ||
309 | |||
310 | # | ||
311 | # Device Drivers | ||
312 | # | ||
313 | |||
314 | # | ||
315 | # Generic Driver Options | ||
316 | # | ||
317 | CONFIG_STANDALONE=y | ||
318 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
319 | # CONFIG_SYS_HYPERVISOR is not set | ||
320 | |||
321 | # | ||
322 | # Connector - unified userspace <-> kernelspace linker | ||
323 | # | ||
324 | CONFIG_CONNECTOR=y | ||
325 | CONFIG_PROC_EVENTS=y | ||
326 | |||
327 | # | ||
328 | # Memory Technology Devices (MTD) | ||
329 | # | ||
330 | # CONFIG_MTD is not set | ||
331 | |||
332 | # | ||
333 | # Parallel port support | ||
334 | # | ||
335 | # CONFIG_PARPORT is not set | ||
336 | |||
337 | # | ||
338 | # Plug and Play support | ||
339 | # | ||
340 | # CONFIG_PNP is not set | ||
341 | # CONFIG_PNPACPI is not set | ||
342 | |||
343 | # | ||
344 | # Block devices | ||
345 | # | ||
346 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
347 | # CONFIG_BLK_DEV_LOOP is not set | ||
348 | # CONFIG_BLK_DEV_NBD is not set | ||
349 | # CONFIG_BLK_DEV_RAM is not set | ||
350 | # CONFIG_BLK_DEV_INITRD is not set | ||
351 | # CONFIG_CDROM_PKTCDVD is not set | ||
352 | # CONFIG_ATA_OVER_ETH is not set | ||
353 | |||
354 | # | ||
355 | # Misc devices | ||
356 | # | ||
357 | |||
358 | # | ||
359 | # ATA/ATAPI/MFM/RLL support | ||
360 | # | ||
361 | # CONFIG_IDE is not set | ||
362 | |||
363 | # | ||
364 | # SCSI device support | ||
365 | # | ||
366 | # CONFIG_RAID_ATTRS is not set | ||
367 | # CONFIG_SCSI is not set | ||
368 | # CONFIG_SCSI_NETLINK is not set | ||
369 | |||
370 | # | ||
371 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
372 | # | ||
373 | # CONFIG_ATA is not set | ||
374 | |||
375 | # | ||
376 | # Old CD-ROM drivers (not SCSI, not IDE) | ||
377 | # | ||
378 | # CONFIG_CD_NO_IDESCSI is not set | ||
379 | |||
380 | # | ||
381 | # Multi-device support (RAID and LVM) | ||
382 | # | ||
383 | # CONFIG_MD is not set | ||
384 | |||
385 | # | ||
386 | # Fusion MPT device support | ||
387 | # | ||
388 | # CONFIG_FUSION is not set | ||
389 | |||
390 | # | ||
391 | # IEEE 1394 (FireWire) support | ||
392 | # | ||
393 | |||
394 | # | ||
395 | # I2O device support | ||
396 | # | ||
397 | |||
398 | # | ||
399 | # Network device support | ||
400 | # | ||
401 | CONFIG_NETDEVICES=y | ||
402 | # CONFIG_DUMMY is not set | ||
403 | # CONFIG_BONDING is not set | ||
404 | # CONFIG_EQUALIZER is not set | ||
405 | # CONFIG_TUN is not set | ||
406 | |||
407 | # | ||
408 | # ARCnet devices | ||
409 | # | ||
410 | # CONFIG_ARCNET is not set | ||
411 | |||
412 | # | ||
413 | # PHY device support | ||
414 | # | ||
415 | # CONFIG_PHYLIB is not set | ||
416 | |||
417 | # | ||
418 | # Ethernet (10 or 100Mbit) | ||
419 | # | ||
420 | CONFIG_NET_ETHERNET=y | ||
421 | # CONFIG_MII is not set | ||
422 | # CONFIG_NET_VENDOR_3COM is not set | ||
423 | # CONFIG_NET_VENDOR_SMC is not set | ||
424 | # CONFIG_DM9000 is not set | ||
425 | # CONFIG_NET_VENDOR_RACAL is not set | ||
426 | # CONFIG_DEPCA is not set | ||
427 | # CONFIG_HP100 is not set | ||
428 | CONFIG_NET_ISA=y | ||
429 | # CONFIG_E2100 is not set | ||
430 | # CONFIG_EWRK3 is not set | ||
431 | # CONFIG_EEXPRESS is not set | ||
432 | # CONFIG_EEXPRESS_PRO is not set | ||
433 | # CONFIG_HPLAN_PLUS is not set | ||
434 | # CONFIG_HPLAN is not set | ||
435 | # CONFIG_LP486E is not set | ||
436 | # CONFIG_ETH16I is not set | ||
437 | CONFIG_NE2000=y | ||
438 | # CONFIG_NET_PCI is not set | ||
439 | |||
440 | # | ||
441 | # Ethernet (1000 Mbit) | ||
442 | # | ||
443 | |||
444 | # | ||
445 | # Ethernet (10000 Mbit) | ||
446 | # | ||
447 | |||
448 | # | ||
449 | # Token Ring devices | ||
450 | # | ||
451 | # CONFIG_TR is not set | ||
452 | |||
453 | # | ||
454 | # Wireless LAN (non-hamradio) | ||
455 | # | ||
456 | # CONFIG_NET_RADIO is not set | ||
457 | |||
458 | # | ||
459 | # Wan interfaces | ||
460 | # | ||
461 | # CONFIG_WAN is not set | ||
462 | # CONFIG_PPP is not set | ||
463 | # CONFIG_SLIP is not set | ||
464 | # CONFIG_NETPOLL is not set | ||
465 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
466 | |||
467 | # | ||
468 | # ISDN subsystem | ||
469 | # | ||
470 | # CONFIG_ISDN is not set | ||
471 | |||
472 | # | ||
473 | # Telephony Support | ||
474 | # | ||
475 | # CONFIG_PHONE is not set | ||
476 | |||
477 | # | ||
478 | # Input device support | ||
479 | # | ||
480 | CONFIG_INPUT=y | ||
481 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
482 | |||
483 | # | ||
484 | # Userland interfaces | ||
485 | # | ||
486 | # CONFIG_INPUT_MOUSEDEV is not set | ||
487 | # CONFIG_INPUT_JOYDEV is not set | ||
488 | # CONFIG_INPUT_TSDEV is not set | ||
489 | # CONFIG_INPUT_EVDEV is not set | ||
490 | # CONFIG_INPUT_EVBUG is not set | ||
491 | |||
492 | # | ||
493 | # Input Device Drivers | ||
494 | # | ||
495 | # CONFIG_INPUT_KEYBOARD is not set | ||
496 | # CONFIG_INPUT_MOUSE is not set | ||
497 | # CONFIG_INPUT_JOYSTICK is not set | ||
498 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
499 | # CONFIG_INPUT_MISC is not set | ||
500 | |||
501 | # | ||
502 | # Hardware I/O ports | ||
503 | # | ||
504 | # CONFIG_SERIO is not set | ||
505 | # CONFIG_GAMEPORT is not set | ||
506 | |||
507 | # | ||
508 | # Character devices | ||
509 | # | ||
510 | CONFIG_VT=y | ||
511 | CONFIG_VT_CONSOLE=y | ||
512 | CONFIG_HW_CONSOLE=y | ||
513 | CONFIG_VT_HW_CONSOLE_BINDING=y | ||
514 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
515 | |||
516 | # | ||
517 | # Serial drivers | ||
518 | # | ||
519 | CONFIG_SERIAL_8250=y | ||
520 | CONFIG_SERIAL_8250_CONSOLE=y | ||
521 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
522 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
523 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
524 | |||
525 | # | ||
526 | # Non-8250 serial port support | ||
527 | # | ||
528 | CONFIG_SERIAL_CORE=y | ||
529 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
530 | CONFIG_UNIX98_PTYS=y | ||
531 | CONFIG_LEGACY_PTYS=y | ||
532 | CONFIG_LEGACY_PTY_COUNT=256 | ||
533 | |||
534 | # | ||
535 | # IPMI | ||
536 | # | ||
537 | # CONFIG_IPMI_HANDLER is not set | ||
538 | |||
539 | # | ||
540 | # Watchdog Cards | ||
541 | # | ||
542 | # CONFIG_WATCHDOG is not set | ||
543 | # CONFIG_HW_RANDOM is not set | ||
544 | # CONFIG_RTC is not set | ||
545 | # CONFIG_GEN_RTC is not set | ||
546 | # CONFIG_DTLK is not set | ||
547 | # CONFIG_R3964 is not set | ||
548 | # CONFIG_RAW_DRIVER is not set | ||
549 | |||
550 | # | ||
551 | # TPM devices | ||
552 | # | ||
553 | |||
554 | # | ||
555 | # I2C support | ||
556 | # | ||
557 | # CONFIG_I2C is not set | ||
558 | |||
559 | # | ||
560 | # SPI support | ||
561 | # | ||
562 | # CONFIG_SPI is not set | ||
563 | # CONFIG_SPI_MASTER is not set | ||
564 | |||
565 | # | ||
566 | # Dallas's 1-wire bus | ||
567 | # | ||
568 | # CONFIG_W1 is not set | ||
569 | |||
570 | # | ||
571 | # Hardware Monitoring support | ||
572 | # | ||
573 | # CONFIG_HWMON is not set | ||
574 | # CONFIG_HWMON_VID is not set | ||
575 | |||
576 | # | ||
577 | # Multimedia devices | ||
578 | # | ||
579 | # CONFIG_VIDEO_DEV is not set | ||
580 | |||
581 | # | ||
582 | # Digital Video Broadcasting Devices | ||
583 | # | ||
584 | # CONFIG_DVB is not set | ||
585 | |||
586 | # | ||
587 | # Graphics support | ||
588 | # | ||
589 | # CONFIG_FIRMWARE_EDID is not set | ||
590 | # CONFIG_FB is not set | ||
591 | |||
592 | # | ||
593 | # Console display driver support | ||
594 | # | ||
595 | CONFIG_VGA_CONSOLE=y | ||
596 | # CONFIG_VGACON_SOFT_SCROLLBACK is not set | ||
597 | # CONFIG_MDA_CONSOLE is not set | ||
598 | CONFIG_DUMMY_CONSOLE=y | ||
599 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
600 | |||
601 | # | ||
602 | # Sound | ||
603 | # | ||
604 | # CONFIG_SOUND is not set | ||
605 | |||
606 | # | ||
607 | # HID Devices | ||
608 | # | ||
609 | CONFIG_HID=y | ||
610 | # CONFIG_HID_DEBUG is not set | ||
611 | |||
612 | # | ||
613 | # USB support | ||
614 | # | ||
615 | # CONFIG_USB_ARCH_HAS_HCD is not set | ||
616 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
617 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
618 | |||
619 | # | ||
620 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
621 | # | ||
622 | |||
623 | # | ||
624 | # USB Gadget Support | ||
625 | # | ||
626 | # CONFIG_USB_GADGET is not set | ||
627 | |||
628 | # | ||
629 | # MMC/SD Card support | ||
630 | # | ||
631 | # CONFIG_MMC is not set | ||
632 | |||
633 | # | ||
634 | # LED devices | ||
635 | # | ||
636 | # CONFIG_NEW_LEDS is not set | ||
637 | |||
638 | # | ||
639 | # LED drivers | ||
640 | # | ||
641 | |||
642 | # | ||
643 | # LED Triggers | ||
644 | # | ||
645 | |||
646 | # | ||
647 | # InfiniBand support | ||
648 | # | ||
649 | |||
650 | # | ||
651 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
652 | # | ||
653 | |||
654 | # | ||
655 | # Real Time Clock | ||
656 | # | ||
657 | |||
658 | # | ||
659 | # DMA Engine support | ||
660 | # | ||
661 | # CONFIG_DMA_ENGINE is not set | ||
662 | |||
663 | # | ||
664 | # DMA Clients | ||
665 | # | ||
666 | |||
667 | # | ||
668 | # DMA Devices | ||
669 | # | ||
670 | |||
671 | # | ||
672 | # Auxiliary Display support | ||
673 | # | ||
674 | |||
675 | # | ||
676 | # Virtualization | ||
677 | # | ||
678 | |||
679 | # | ||
680 | # File systems | ||
681 | # | ||
682 | # CONFIG_EXT2_FS is not set | ||
683 | # CONFIG_EXT3_FS is not set | ||
684 | # CONFIG_REISERFS_FS is not set | ||
685 | # CONFIG_JFS_FS is not set | ||
686 | CONFIG_FS_POSIX_ACL=y | ||
687 | # CONFIG_XFS_FS is not set | ||
688 | # CONFIG_OCFS2_FS is not set | ||
689 | # CONFIG_MINIX_FS is not set | ||
690 | # CONFIG_ROMFS_FS is not set | ||
691 | CONFIG_INOTIFY=y | ||
692 | CONFIG_INOTIFY_USER=y | ||
693 | # CONFIG_QUOTA is not set | ||
694 | # CONFIG_DNOTIFY is not set | ||
695 | # CONFIG_AUTOFS_FS is not set | ||
696 | # CONFIG_AUTOFS4_FS is not set | ||
697 | CONFIG_FUSE_FS=y | ||
698 | CONFIG_GENERIC_ACL=y | ||
699 | |||
700 | # | ||
701 | # CD-ROM/DVD Filesystems | ||
702 | # | ||
703 | # CONFIG_ISO9660_FS is not set | ||
704 | # CONFIG_UDF_FS is not set | ||
705 | |||
706 | # | ||
707 | # DOS/FAT/NT Filesystems | ||
708 | # | ||
709 | # CONFIG_MSDOS_FS is not set | ||
710 | # CONFIG_VFAT_FS is not set | ||
711 | # CONFIG_NTFS_FS is not set | ||
712 | |||
713 | # | ||
714 | # Pseudo filesystems | ||
715 | # | ||
716 | CONFIG_PROC_FS=y | ||
717 | CONFIG_PROC_KCORE=y | ||
718 | CONFIG_PROC_SYSCTL=y | ||
719 | CONFIG_SYSFS=y | ||
720 | CONFIG_TMPFS=y | ||
721 | CONFIG_TMPFS_POSIX_ACL=y | ||
722 | # CONFIG_HUGETLB_PAGE is not set | ||
723 | CONFIG_RAMFS=y | ||
724 | |||
725 | # | ||
726 | # Miscellaneous filesystems | ||
727 | # | ||
728 | # CONFIG_HFSPLUS_FS is not set | ||
729 | # CONFIG_CRAMFS is not set | ||
730 | # CONFIG_VXFS_FS is not set | ||
731 | # CONFIG_HPFS_FS is not set | ||
732 | # CONFIG_QNX4FS_FS is not set | ||
733 | # CONFIG_SYSV_FS is not set | ||
734 | # CONFIG_UFS_FS is not set | ||
735 | |||
736 | # | ||
737 | # Network File Systems | ||
738 | # | ||
739 | CONFIG_NFS_FS=y | ||
740 | CONFIG_NFS_V3=y | ||
741 | # CONFIG_NFS_V3_ACL is not set | ||
742 | CONFIG_NFS_DIRECTIO=y | ||
743 | # CONFIG_NFSD is not set | ||
744 | CONFIG_ROOT_NFS=y | ||
745 | CONFIG_LOCKD=y | ||
746 | CONFIG_LOCKD_V4=y | ||
747 | CONFIG_NFS_COMMON=y | ||
748 | CONFIG_SUNRPC=y | ||
749 | # CONFIG_SMB_FS is not set | ||
750 | # CONFIG_CIFS is not set | ||
751 | # CONFIG_NCP_FS is not set | ||
752 | # CONFIG_CODA_FS is not set | ||
753 | |||
754 | # | ||
755 | # Partition Types | ||
756 | # | ||
757 | # CONFIG_PARTITION_ADVANCED is not set | ||
758 | CONFIG_MSDOS_PARTITION=y | ||
759 | |||
760 | # | ||
761 | # Native Language Support | ||
762 | # | ||
763 | # CONFIG_NLS is not set | ||
764 | |||
765 | # | ||
766 | # Kernel hacking | ||
767 | # | ||
768 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
769 | # CONFIG_PRINTK_TIME is not set | ||
770 | CONFIG_ENABLE_MUST_CHECK=y | ||
771 | # CONFIG_MAGIC_SYSRQ is not set | ||
772 | # CONFIG_UNUSED_SYMBOLS is not set | ||
773 | # CONFIG_DEBUG_FS is not set | ||
774 | # CONFIG_HEADERS_CHECK is not set | ||
775 | # CONFIG_DEBUG_KERNEL is not set | ||
776 | CONFIG_LOG_BUF_SHIFT=14 | ||
777 | CONFIG_CROSSCOMPILE=y | ||
778 | CONFIG_CMDLINE="" | ||
779 | |||
780 | # | ||
781 | # Security options | ||
782 | # | ||
783 | # CONFIG_KEYS is not set | ||
784 | # CONFIG_SECURITY is not set | ||
785 | |||
786 | # | ||
787 | # Cryptographic options | ||
788 | # | ||
789 | # CONFIG_CRYPTO is not set | ||
790 | |||
791 | # | ||
792 | # Library routines | ||
793 | # | ||
794 | CONFIG_BITREVERSE=y | ||
795 | # CONFIG_CRC_CCITT is not set | ||
796 | # CONFIG_CRC16 is not set | ||
797 | CONFIG_CRC32=y | ||
798 | # CONFIG_LIBCRC32C is not set | ||
799 | CONFIG_HAS_IOMEM=y | ||
800 | CONFIG_HAS_IOPORT=y | ||
diff --git a/arch/mips/kernel/irq-rm7000.c b/arch/mips/kernel/irq-rm7000.c index 971adf6ef4f4..fb50cc78b28b 100644 --- a/arch/mips/kernel/irq-rm7000.c +++ b/arch/mips/kernel/irq-rm7000.c | |||
@@ -33,6 +33,7 @@ static struct irq_chip rm7k_irq_controller = { | |||
33 | .mask = mask_rm7k_irq, | 33 | .mask = mask_rm7k_irq, |
34 | .mask_ack = mask_rm7k_irq, | 34 | .mask_ack = mask_rm7k_irq, |
35 | .unmask = unmask_rm7k_irq, | 35 | .unmask = unmask_rm7k_irq, |
36 | .eoi = unmask_rm7k_irq | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | void __init rm7k_cpu_irq_init(void) | 39 | void __init rm7k_cpu_irq_init(void) |
diff --git a/arch/mips/kernel/irq-rm9000.c b/arch/mips/kernel/irq-rm9000.c index 7b04583bd800..ed9febe63d72 100644 --- a/arch/mips/kernel/irq-rm9000.c +++ b/arch/mips/kernel/irq-rm9000.c | |||
@@ -75,6 +75,7 @@ static struct irq_chip rm9k_irq_controller = { | |||
75 | .mask = mask_rm9k_irq, | 75 | .mask = mask_rm9k_irq, |
76 | .mask_ack = mask_rm9k_irq, | 76 | .mask_ack = mask_rm9k_irq, |
77 | .unmask = unmask_rm9k_irq, | 77 | .unmask = unmask_rm9k_irq, |
78 | .eoi = unmask_rm9k_irq | ||
78 | }; | 79 | }; |
79 | 80 | ||
80 | static struct irq_chip rm9k_perfcounter_irq = { | 81 | static struct irq_chip rm9k_perfcounter_irq = { |
diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index bb4f00c0cbe9..df4d3f2f740c 100644 --- a/arch/mips/kernel/mips-mt-fpaff.c +++ b/arch/mips/kernel/mips-mt-fpaff.c | |||
@@ -36,7 +36,7 @@ unsigned long mt_fpemul_threshold = 0; | |||
36 | */ | 36 | */ |
37 | static inline struct task_struct *find_process_by_pid(pid_t pid) | 37 | static inline struct task_struct *find_process_by_pid(pid_t pid) |
38 | { | 38 | { |
39 | return pid ? find_task_by_pid(pid) : current; | 39 | return pid ? find_task_by_vpid(pid) : current; |
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index f798139e888e..08a9c5070ea8 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -663,6 +663,9 @@ einval: li v0, -EINVAL | |||
663 | sys sys_ni_syscall 0 | 663 | sys sys_ni_syscall 0 |
664 | sys sys_eventfd 1 | 664 | sys sys_eventfd 1 |
665 | sys sys_fallocate 6 /* 4320 */ | 665 | sys sys_fallocate 6 /* 4320 */ |
666 | sys sys_timerfd_create 2 | ||
667 | sys sys_timerfd_gettime 2 | ||
668 | sys sys_timerfd_settime 4 | ||
666 | .endm | 669 | .endm |
667 | 670 | ||
668 | /* We pre-compute the number of _instruction_ bytes needed to | 671 | /* We pre-compute the number of _instruction_ bytes needed to |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index a626be6baea3..dc597b600c68 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -478,4 +478,7 @@ sys_call_table: | |||
478 | PTR sys_ni_syscall | 478 | PTR sys_ni_syscall |
479 | PTR sys_eventfd | 479 | PTR sys_eventfd |
480 | PTR sys_fallocate | 480 | PTR sys_fallocate |
481 | PTR sys_timerfd_create /* 5280 */ | ||
482 | PTR sys_timerfd_gettime | ||
483 | PTR sys_timerfd_settime | ||
481 | .size sys_call_table,.-sys_call_table | 484 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 9d5bcaf1b389..12940eca7893 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -404,4 +404,7 @@ EXPORT(sysn32_call_table) | |||
404 | PTR sys_ni_syscall | 404 | PTR sys_ni_syscall |
405 | PTR sys_eventfd | 405 | PTR sys_eventfd |
406 | PTR sys_fallocate | 406 | PTR sys_fallocate |
407 | PTR sys_timerfd_create | ||
408 | PTR sys_timerfd_gettime /* 5285 */ | ||
409 | PTR sys_timerfd_settime | ||
407 | .size sysn32_call_table,.-sysn32_call_table | 410 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index fd2019c1ec2d..9a275efb4f04 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -526,4 +526,7 @@ sys_call_table: | |||
526 | PTR sys_ni_syscall | 526 | PTR sys_ni_syscall |
527 | PTR sys_eventfd | 527 | PTR sys_eventfd |
528 | PTR sys32_fallocate /* 4320 */ | 528 | PTR sys32_fallocate /* 4320 */ |
529 | PTR sys_timerfd_create | ||
530 | PTR sys_timerfd_gettime | ||
531 | PTR sys_timerfd_settime | ||
529 | .size sys_call_table,.-sys_call_table | 532 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/sysirix.c b/arch/mips/kernel/sysirix.c index 672fba84b2cc..c357762b8012 100644 --- a/arch/mips/kernel/sysirix.c +++ b/arch/mips/kernel/sysirix.c | |||
@@ -111,7 +111,7 @@ asmlinkage int irix_prctl(unsigned option, ...) | |||
111 | printk("irix_prctl[%s:%d]: Wants PR_ISBLOCKED\n", | 111 | printk("irix_prctl[%s:%d]: Wants PR_ISBLOCKED\n", |
112 | current->comm, current->pid); | 112 | current->comm, current->pid); |
113 | read_lock(&tasklist_lock); | 113 | read_lock(&tasklist_lock); |
114 | task = find_task_by_pid(va_arg(args, pid_t)); | 114 | task = find_task_by_vpid(va_arg(args, pid_t)); |
115 | error = -ESRCH; | 115 | error = -ESRCH; |
116 | if (error) | 116 | if (error) |
117 | error = (task->run_list.next != NULL); | 117 | error = (task->run_list.next != NULL); |
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 53ec05267a98..2c4f7e11f0d5 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -364,20 +364,23 @@ static inline int has_valid_asid(const struct mm_struct *mm) | |||
364 | static inline void local_r4k_flush_cache_range(void * args) | 364 | static inline void local_r4k_flush_cache_range(void * args) |
365 | { | 365 | { |
366 | struct vm_area_struct *vma = args; | 366 | struct vm_area_struct *vma = args; |
367 | int exec = vma->vm_flags & VM_EXEC; | ||
367 | 368 | ||
368 | if (!(has_valid_asid(vma->vm_mm))) | 369 | if (!(has_valid_asid(vma->vm_mm))) |
369 | return; | 370 | return; |
370 | 371 | ||
371 | r4k_blast_dcache(); | 372 | r4k_blast_dcache(); |
373 | if (exec) | ||
374 | r4k_blast_icache(); | ||
372 | } | 375 | } |
373 | 376 | ||
374 | static void r4k_flush_cache_range(struct vm_area_struct *vma, | 377 | static void r4k_flush_cache_range(struct vm_area_struct *vma, |
375 | unsigned long start, unsigned long end) | 378 | unsigned long start, unsigned long end) |
376 | { | 379 | { |
377 | if (!cpu_has_dc_aliases) | 380 | int exec = vma->vm_flags & VM_EXEC; |
378 | return; | ||
379 | 381 | ||
380 | r4k_on_each_cpu(local_r4k_flush_cache_range, vma, 1, 1); | 382 | if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) |
383 | r4k_on_each_cpu(local_r4k_flush_cache_range, vma, 1, 1); | ||
381 | } | 384 | } |
382 | 385 | ||
383 | static inline void local_r4k_flush_cache_mm(void * args) | 386 | static inline void local_r4k_flush_cache_mm(void * args) |
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 81f30ac2bff9..6a24651971df 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c | |||
@@ -92,12 +92,17 @@ EXPORT_SYMBOL(__flush_dcache_page); | |||
92 | 92 | ||
93 | void __flush_anon_page(struct page *page, unsigned long vmaddr) | 93 | void __flush_anon_page(struct page *page, unsigned long vmaddr) |
94 | { | 94 | { |
95 | if (pages_do_alias((unsigned long)page_address(page), vmaddr)) { | 95 | unsigned long addr = (unsigned long) page_address(page); |
96 | void *kaddr; | ||
97 | 96 | ||
98 | kaddr = kmap_coherent(page, vmaddr); | 97 | if (pages_do_alias(addr, vmaddr)) { |
99 | flush_data_cache_page((unsigned long)kaddr); | 98 | if (page_mapped(page) && !Page_dcache_dirty(page)) { |
100 | kunmap_coherent(); | 99 | void *kaddr; |
100 | |||
101 | kaddr = kmap_coherent(page, vmaddr); | ||
102 | flush_data_cache_page((unsigned long)kaddr); | ||
103 | kunmap_coherent(); | ||
104 | } else | ||
105 | flush_data_cache_page(addr); | ||
101 | } | 106 | } |
102 | } | 107 | } |
103 | 108 | ||
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 480dec04f552..c7aed133d11d 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -211,7 +211,8 @@ void copy_user_highpage(struct page *to, struct page *from, | |||
211 | void *vfrom, *vto; | 211 | void *vfrom, *vto; |
212 | 212 | ||
213 | vto = kmap_atomic(to, KM_USER1); | 213 | vto = kmap_atomic(to, KM_USER1); |
214 | if (cpu_has_dc_aliases && page_mapped(from)) { | 214 | if (cpu_has_dc_aliases && |
215 | page_mapped(from) && !Page_dcache_dirty(from)) { | ||
215 | vfrom = kmap_coherent(from, vaddr); | 216 | vfrom = kmap_coherent(from, vaddr); |
216 | copy_page(vto, vfrom); | 217 | copy_page(vto, vfrom); |
217 | kunmap_coherent(); | 218 | kunmap_coherent(); |
@@ -234,7 +235,8 @@ void copy_to_user_page(struct vm_area_struct *vma, | |||
234 | struct page *page, unsigned long vaddr, void *dst, const void *src, | 235 | struct page *page, unsigned long vaddr, void *dst, const void *src, |
235 | unsigned long len) | 236 | unsigned long len) |
236 | { | 237 | { |
237 | if (cpu_has_dc_aliases && page_mapped(page)) { | 238 | if (cpu_has_dc_aliases && |
239 | page_mapped(page) && !Page_dcache_dirty(page)) { | ||
238 | void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); | 240 | void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); |
239 | memcpy(vto, src, len); | 241 | memcpy(vto, src, len); |
240 | kunmap_coherent(); | 242 | kunmap_coherent(); |
@@ -253,7 +255,8 @@ void copy_from_user_page(struct vm_area_struct *vma, | |||
253 | struct page *page, unsigned long vaddr, void *dst, const void *src, | 255 | struct page *page, unsigned long vaddr, void *dst, const void *src, |
254 | unsigned long len) | 256 | unsigned long len) |
255 | { | 257 | { |
256 | if (cpu_has_dc_aliases && page_mapped(page)) { | 258 | if (cpu_has_dc_aliases && |
259 | page_mapped(page) && !Page_dcache_dirty(page)) { | ||
257 | void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); | 260 | void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); |
258 | memcpy(dst, vfrom, len); | 261 | memcpy(dst, vfrom, len); |
259 | kunmap_coherent(); | 262 | kunmap_coherent(); |
diff --git a/arch/mips/mm/pg-sb1.c b/arch/mips/mm/pg-sb1.c index a3e98c243a89..89925ec57d6a 100644 --- a/arch/mips/mm/pg-sb1.c +++ b/arch/mips/mm/pg-sb1.c | |||
@@ -216,7 +216,7 @@ void sb1_dma_init(void) | |||
216 | int i; | 216 | int i; |
217 | 217 | ||
218 | for (i = 0; i < DM_NUM_CHANNELS; i++) { | 218 | for (i = 0; i < DM_NUM_CHANNELS; i++) { |
219 | const u64 base_val = CPHYSADDR(&page_descr[i]) | | 219 | const u64 base_val = CPHYSADDR((unsigned long)&page_descr[i]) | |
220 | V_DM_DSCR_BASE_RINGSZ(1); | 220 | V_DM_DSCR_BASE_RINGSZ(1); |
221 | void *base_reg = IOADDR(A_DM_REGISTER(i, R_DM_DSCR_BASE)); | 221 | void *base_reg = IOADDR(A_DM_REGISTER(i, R_DM_DSCR_BASE)); |
222 | 222 | ||
@@ -228,11 +228,11 @@ void sb1_dma_init(void) | |||
228 | 228 | ||
229 | void clear_page(void *page) | 229 | void clear_page(void *page) |
230 | { | 230 | { |
231 | u64 to_phys = CPHYSADDR(page); | 231 | u64 to_phys = CPHYSADDR((unsigned long)page); |
232 | unsigned int cpu = smp_processor_id(); | 232 | unsigned int cpu = smp_processor_id(); |
233 | 233 | ||
234 | /* if the page is not in KSEG0, use old way */ | 234 | /* if the page is not in KSEG0, use old way */ |
235 | if ((long)KSEGX(page) != (long)CKSEG0) | 235 | if ((long)KSEGX((unsigned long)page) != (long)CKSEG0) |
236 | return clear_page_cpu(page); | 236 | return clear_page_cpu(page); |
237 | 237 | ||
238 | page_descr[cpu].dscr_a = to_phys | M_DM_DSCRA_ZERO_MEM | | 238 | page_descr[cpu].dscr_a = to_phys | M_DM_DSCRA_ZERO_MEM | |
@@ -252,13 +252,13 @@ void clear_page(void *page) | |||
252 | 252 | ||
253 | void copy_page(void *to, void *from) | 253 | void copy_page(void *to, void *from) |
254 | { | 254 | { |
255 | u64 from_phys = CPHYSADDR(from); | 255 | u64 from_phys = CPHYSADDR((unsigned long)from); |
256 | u64 to_phys = CPHYSADDR(to); | 256 | u64 to_phys = CPHYSADDR((unsigned long)to); |
257 | unsigned int cpu = smp_processor_id(); | 257 | unsigned int cpu = smp_processor_id(); |
258 | 258 | ||
259 | /* if any page is not in KSEG0, use old way */ | 259 | /* if any page is not in KSEG0, use old way */ |
260 | if ((long)KSEGX(to) != (long)CKSEG0 | 260 | if ((long)KSEGX((unsigned long)to) != (long)CKSEG0 |
261 | || (long)KSEGX(from) != (long)CKSEG0) | 261 | || (long)KSEGX((unsigned long)from) != (long)CKSEG0) |
262 | return copy_page_cpu(to, from); | 262 | return copy_page_cpu(to, from); |
263 | 263 | ||
264 | page_descr[cpu].dscr_a = to_phys | M_DM_DSCRA_L2C_DEST | | 264 | page_descr[cpu].dscr_a = to_phys | M_DM_DSCRA_L2C_DEST | |
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 6e6981fd7934..f9471d77c096 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -177,8 +177,15 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask) | |||
177 | continue; | 177 | continue; |
178 | 178 | ||
179 | r = &dev->resource[idx]; | 179 | r = &dev->resource[idx]; |
180 | if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM))) | ||
181 | continue; | ||
182 | if ((idx == PCI_ROM_RESOURCE) && | ||
183 | (!(r->flags & IORESOURCE_ROM_ENABLE))) | ||
184 | continue; | ||
180 | if (!r->start && r->end) { | 185 | if (!r->start && r->end) { |
181 | printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev)); | 186 | printk(KERN_ERR "PCI: Device %s not available " |
187 | "because of resource collisions\n", | ||
188 | pci_name(dev)); | ||
182 | return -EINVAL; | 189 | return -EINVAL; |
183 | } | 190 | } |
184 | if (r->flags & IORESOURCE_IO) | 191 | if (r->flags & IORESOURCE_IO) |
@@ -186,10 +193,9 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask) | |||
186 | if (r->flags & IORESOURCE_MEM) | 193 | if (r->flags & IORESOURCE_MEM) |
187 | cmd |= PCI_COMMAND_MEMORY; | 194 | cmd |= PCI_COMMAND_MEMORY; |
188 | } | 195 | } |
189 | if (dev->resource[PCI_ROM_RESOURCE].start) | ||
190 | cmd |= PCI_COMMAND_MEMORY; | ||
191 | if (cmd != old_cmd) { | 196 | if (cmd != old_cmd) { |
192 | printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd); | 197 | printk("PCI: Enabling device %s (%04x -> %04x)\n", |
198 | pci_name(dev), old_cmd, cmd); | ||
193 | pci_write_config_word(dev, PCI_COMMAND, cmd); | 199 | pci_write_config_word(dev, PCI_COMMAND, cmd); |
194 | } | 200 | } |
195 | return 0; | 201 | return 0; |
diff --git a/arch/mips/sibyte/bcm1480/smp.c b/arch/mips/sibyte/bcm1480/smp.c index 183c460b9ca1..bd9eeb43ed0e 100644 --- a/arch/mips/sibyte/bcm1480/smp.c +++ b/arch/mips/sibyte/bcm1480/smp.c | |||
@@ -110,7 +110,6 @@ static void __cpuinit bcm1480_smp_finish(void) | |||
110 | 110 | ||
111 | sb1480_clockevent_init(); | 111 | sb1480_clockevent_init(); |
112 | local_irq_enable(); | 112 | local_irq_enable(); |
113 | bcm1480_smp_finish(); | ||
114 | } | 113 | } |
115 | 114 | ||
116 | /* | 115 | /* |
diff --git a/arch/mn10300/configs/asb2303_defconfig b/arch/mn10300/configs/asb2303_defconfig index ca9876a111d3..3aa8906b3dea 100644 --- a/arch/mn10300/configs/asb2303_defconfig +++ b/arch/mn10300/configs/asb2303_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.24-rc2 | 3 | # Linux kernel version: 2.6.25-rc2 |
4 | # Fri Nov 16 13:36:38 2007 | 4 | # Tue Feb 19 18:52:24 2008 |
5 | # | 5 | # |
6 | CONFIG_MN10300=y | 6 | CONFIG_MN10300=y |
7 | CONFIG_AM33=y | 7 | CONFIG_AM33=y |
@@ -21,6 +21,7 @@ CONFIG_ARCH_HAS_ILOG2_U32=y | |||
21 | # CONFIG_ARCH_SUPPORTS_AOUT is not set | 21 | # CONFIG_ARCH_SUPPORTS_AOUT is not set |
22 | CONFIG_GENERIC_HARDIRQS=y | 22 | CONFIG_GENERIC_HARDIRQS=y |
23 | # CONFIG_HOTPLUG_CPU is not set | 23 | # CONFIG_HOTPLUG_CPU is not set |
24 | CONFIG_HZ=1000 | ||
24 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 25 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
25 | 26 | ||
26 | # | 27 | # |
@@ -38,15 +39,16 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
38 | CONFIG_BSD_PROCESS_ACCT=y | 39 | CONFIG_BSD_PROCESS_ACCT=y |
39 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 40 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
40 | # CONFIG_TASKSTATS is not set | 41 | # CONFIG_TASKSTATS is not set |
41 | # CONFIG_USER_NS is not set | ||
42 | # CONFIG_PID_NS is not set | ||
43 | # CONFIG_AUDIT is not set | 42 | # CONFIG_AUDIT is not set |
44 | # CONFIG_IKCONFIG is not set | 43 | # CONFIG_IKCONFIG is not set |
45 | CONFIG_LOG_BUF_SHIFT=14 | 44 | CONFIG_LOG_BUF_SHIFT=14 |
46 | # CONFIG_CGROUPS is not set | 45 | # CONFIG_CGROUPS is not set |
47 | # CONFIG_FAIR_GROUP_SCHED is not set | 46 | # CONFIG_GROUP_SCHED is not set |
47 | # CONFIG_USER_SCHED is not set | ||
48 | # CONFIG_CGROUP_SCHED is not set | ||
48 | # CONFIG_SYSFS_DEPRECATED is not set | 49 | # CONFIG_SYSFS_DEPRECATED is not set |
49 | # CONFIG_RELAY is not set | 50 | # CONFIG_RELAY is not set |
51 | # CONFIG_NAMESPACES is not set | ||
50 | # CONFIG_BLK_DEV_INITRD is not set | 52 | # CONFIG_BLK_DEV_INITRD is not set |
51 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | 53 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set |
52 | CONFIG_SYSCTL=y | 54 | CONFIG_SYSCTL=y |
@@ -57,22 +59,33 @@ CONFIG_SYSCTL_SYSCALL=y | |||
57 | CONFIG_PRINTK=y | 59 | CONFIG_PRINTK=y |
58 | CONFIG_BUG=y | 60 | CONFIG_BUG=y |
59 | CONFIG_ELF_CORE=y | 61 | CONFIG_ELF_CORE=y |
62 | CONFIG_COMPAT_BRK=y | ||
60 | CONFIG_BASE_FULL=y | 63 | CONFIG_BASE_FULL=y |
61 | CONFIG_FUTEX=y | 64 | CONFIG_FUTEX=y |
62 | CONFIG_ANON_INODES=y | 65 | CONFIG_ANON_INODES=y |
63 | CONFIG_EPOLL=y | 66 | CONFIG_EPOLL=y |
64 | CONFIG_SIGNALFD=y | 67 | CONFIG_SIGNALFD=y |
68 | CONFIG_TIMERFD=y | ||
65 | CONFIG_EVENTFD=y | 69 | CONFIG_EVENTFD=y |
66 | CONFIG_SHMEM=y | 70 | CONFIG_SHMEM=y |
67 | # CONFIG_VM_EVENT_COUNTERS is not set | 71 | # CONFIG_VM_EVENT_COUNTERS is not set |
68 | CONFIG_SLAB=y | 72 | CONFIG_SLAB=y |
69 | # CONFIG_SLUB is not set | 73 | # CONFIG_SLUB is not set |
70 | # CONFIG_SLOB is not set | 74 | # CONFIG_SLOB is not set |
75 | CONFIG_PROFILING=y | ||
76 | # CONFIG_MARKERS is not set | ||
77 | CONFIG_OPROFILE=y | ||
78 | # CONFIG_HAVE_OPROFILE is not set | ||
79 | # CONFIG_HAVE_KPROBES is not set | ||
80 | # CONFIG_PROC_PAGE_MONITOR is not set | ||
81 | CONFIG_SLABINFO=y | ||
71 | CONFIG_RT_MUTEXES=y | 82 | CONFIG_RT_MUTEXES=y |
72 | # CONFIG_TINY_SHMEM is not set | 83 | # CONFIG_TINY_SHMEM is not set |
73 | CONFIG_BASE_SMALL=0 | 84 | CONFIG_BASE_SMALL=0 |
74 | # CONFIG_MODULES is not set | 85 | # CONFIG_MODULES is not set |
75 | # CONFIG_BLOCK is not set | 86 | # CONFIG_BLOCK is not set |
87 | CONFIG_CLASSIC_RCU=y | ||
88 | # CONFIG_PREEMPT_RCU is not set | ||
76 | 89 | ||
77 | # | 90 | # |
78 | # Matsushita MN10300 system setup | 91 | # Matsushita MN10300 system setup |
@@ -206,6 +219,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
206 | # | 219 | # |
207 | # CONFIG_NET_PKTGEN is not set | 220 | # CONFIG_NET_PKTGEN is not set |
208 | # CONFIG_HAMRADIO is not set | 221 | # CONFIG_HAMRADIO is not set |
222 | # CONFIG_CAN is not set | ||
209 | # CONFIG_IRDA is not set | 223 | # CONFIG_IRDA is not set |
210 | # CONFIG_BT is not set | 224 | # CONFIG_BT is not set |
211 | # CONFIG_AF_RXRPC is not set | 225 | # CONFIG_AF_RXRPC is not set |
@@ -311,6 +325,8 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | |||
311 | # CONFIG_PARPORT is not set | 325 | # CONFIG_PARPORT is not set |
312 | CONFIG_MISC_DEVICES=y | 326 | CONFIG_MISC_DEVICES=y |
313 | # CONFIG_EEPROM_93CX6 is not set | 327 | # CONFIG_EEPROM_93CX6 is not set |
328 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
329 | # CONFIG_HAVE_IDE is not set | ||
314 | 330 | ||
315 | # | 331 | # |
316 | # SCSI device support | 332 | # SCSI device support |
@@ -345,7 +361,6 @@ CONFIG_SMC91X=y | |||
345 | # CONFIG_WAN is not set | 361 | # CONFIG_WAN is not set |
346 | # CONFIG_PPP is not set | 362 | # CONFIG_PPP is not set |
347 | # CONFIG_SLIP is not set | 363 | # CONFIG_SLIP is not set |
348 | # CONFIG_SHAPER is not set | ||
349 | # CONFIG_NETCONSOLE is not set | 364 | # CONFIG_NETCONSOLE is not set |
350 | # CONFIG_NETPOLL is not set | 365 | # CONFIG_NETPOLL is not set |
351 | # CONFIG_NET_POLL_CONTROLLER is not set | 366 | # CONFIG_NET_POLL_CONTROLLER is not set |
@@ -405,6 +420,7 @@ CONFIG_RTC=y | |||
405 | # CONFIG_W1 is not set | 420 | # CONFIG_W1 is not set |
406 | # CONFIG_POWER_SUPPLY is not set | 421 | # CONFIG_POWER_SUPPLY is not set |
407 | # CONFIG_HWMON is not set | 422 | # CONFIG_HWMON is not set |
423 | # CONFIG_THERMAL is not set | ||
408 | # CONFIG_WATCHDOG is not set | 424 | # CONFIG_WATCHDOG is not set |
409 | 425 | ||
410 | # | 426 | # |
@@ -444,6 +460,7 @@ CONFIG_SSB_POSSIBLE=y | |||
444 | # CONFIG_SOUND is not set | 460 | # CONFIG_SOUND is not set |
445 | # CONFIG_USB_SUPPORT is not set | 461 | # CONFIG_USB_SUPPORT is not set |
446 | # CONFIG_MMC is not set | 462 | # CONFIG_MMC is not set |
463 | # CONFIG_MEMSTICK is not set | ||
447 | # CONFIG_NEW_LEDS is not set | 464 | # CONFIG_NEW_LEDS is not set |
448 | # CONFIG_RTC_CLASS is not set | 465 | # CONFIG_RTC_CLASS is not set |
449 | 466 | ||
@@ -455,10 +472,10 @@ CONFIG_SSB_POSSIBLE=y | |||
455 | # | 472 | # |
456 | # File systems | 473 | # File systems |
457 | # | 474 | # |
475 | CONFIG_DNOTIFY=y | ||
458 | CONFIG_INOTIFY=y | 476 | CONFIG_INOTIFY=y |
459 | CONFIG_INOTIFY_USER=y | 477 | CONFIG_INOTIFY_USER=y |
460 | # CONFIG_QUOTA is not set | 478 | # CONFIG_QUOTA is not set |
461 | CONFIG_DNOTIFY=y | ||
462 | # CONFIG_AUTOFS_FS is not set | 479 | # CONFIG_AUTOFS_FS is not set |
463 | # CONFIG_AUTOFS4_FS is not set | 480 | # CONFIG_AUTOFS4_FS is not set |
464 | # CONFIG_FUSE_FS is not set | 481 | # CONFIG_FUSE_FS is not set |
@@ -554,5 +571,3 @@ CONFIG_HAS_DMA=y | |||
554 | # | 571 | # |
555 | # Profiling support | 572 | # Profiling support |
556 | # | 573 | # |
557 | CONFIG_PROFILING=y | ||
558 | CONFIG_OPROFILE=y | ||
diff --git a/arch/mn10300/kernel/gdb-io-ttysm.c b/arch/mn10300/kernel/gdb-io-ttysm.c index c5451592d403..e94c25e8ca05 100644 --- a/arch/mn10300/kernel/gdb-io-ttysm.c +++ b/arch/mn10300/kernel/gdb-io-ttysm.c | |||
@@ -196,6 +196,7 @@ int gdbstub_io_rx_char(unsigned char *_ch, int nonblock) | |||
196 | try_again: | 196 | try_again: |
197 | /* pull chars out of the buffer */ | 197 | /* pull chars out of the buffer */ |
198 | ix = gdbstub_rx_outp; | 198 | ix = gdbstub_rx_outp; |
199 | barrier(); | ||
199 | if (ix == gdbstub_rx_inp) { | 200 | if (ix == gdbstub_rx_inp) { |
200 | if (nonblock) | 201 | if (nonblock) |
201 | return -EAGAIN; | 202 | return -EAGAIN; |
@@ -207,6 +208,7 @@ try_again: | |||
207 | 208 | ||
208 | ch = gdbstub_rx_buffer[ix++]; | 209 | ch = gdbstub_rx_buffer[ix++]; |
209 | st = gdbstub_rx_buffer[ix++]; | 210 | st = gdbstub_rx_buffer[ix++]; |
211 | barrier(); | ||
210 | gdbstub_rx_outp = ix & (PAGE_SIZE - 1); | 212 | gdbstub_rx_outp = ix & (PAGE_SIZE - 1); |
211 | 213 | ||
212 | st &= SC01STR_RXF | SC01STR_RBF | SC01STR_FEF | SC01STR_PEF | | 214 | st &= SC01STR_RXF | SC01STR_RBF | SC01STR_FEF | SC01STR_PEF | |
diff --git a/arch/mn10300/kernel/time.c b/arch/mn10300/kernel/time.c index ff492e3b3457..babb7c2ac377 100644 --- a/arch/mn10300/kernel/time.c +++ b/arch/mn10300/kernel/time.c | |||
@@ -84,11 +84,13 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id) | |||
84 | /* advance the kernel's time tracking system */ | 84 | /* advance the kernel's time tracking system */ |
85 | profile_tick(CPU_PROFILING); | 85 | profile_tick(CPU_PROFILING); |
86 | do_timer(1); | 86 | do_timer(1); |
87 | update_process_times(user_mode(get_irq_regs())); | ||
88 | check_rtc_time(); | 87 | check_rtc_time(); |
89 | } | 88 | } |
90 | 89 | ||
91 | write_sequnlock(&xtime_lock); | 90 | write_sequnlock(&xtime_lock); |
91 | |||
92 | update_process_times(user_mode(get_irq_regs())); | ||
93 | |||
92 | return IRQ_HANDLED; | 94 | return IRQ_HANDLED; |
93 | } | 95 | } |
94 | 96 | ||
diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c index 8b9dc6d9dcc6..fcb9a03d46a8 100644 --- a/arch/mn10300/kernel/traps.c +++ b/arch/mn10300/kernel/traps.c | |||
@@ -391,7 +391,7 @@ static asmlinkage void unsupported_syscall(struct pt_regs *regs, | |||
391 | if (code == EXCEP_SYSCALL15 && !user_mode(regs)) { | 391 | if (code == EXCEP_SYSCALL15 && !user_mode(regs)) { |
392 | if (report_bug(regs->pc, regs) == BUG_TRAP_TYPE_BUG) { | 392 | if (report_bug(regs->pc, regs) == BUG_TRAP_TYPE_BUG) { |
393 | #ifdef CONFIG_GDBSTUB | 393 | #ifdef CONFIG_GDBSTUB |
394 | __gdbstub_bug_trap(); | 394 | gdbstub_intercept(regs, code); |
395 | #endif | 395 | #endif |
396 | } | 396 | } |
397 | } | 397 | } |
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 6845482f0093..1c6ce3536e4c 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -176,7 +176,7 @@ define archhelp | |||
176 | @echo ' *_defconfig - Select default config from arch/$(ARCH)/configs' | 176 | @echo ' *_defconfig - Select default config from arch/$(ARCH)/configs' |
177 | endef | 177 | endef |
178 | 178 | ||
179 | install: vdso_install | 179 | install: |
180 | $(Q)$(MAKE) $(build)=$(boot) install | 180 | $(Q)$(MAKE) $(build)=$(boot) install |
181 | 181 | ||
182 | vdso_install: | 182 | vdso_install: |
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 864affc9a7b0..702eb39901ca 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -156,7 +156,7 @@ config IO_DELAY_TYPE_NONE | |||
156 | 156 | ||
157 | choice | 157 | choice |
158 | prompt "IO delay type" | 158 | prompt "IO delay type" |
159 | default IO_DELAY_0XED | 159 | default IO_DELAY_0X80 |
160 | 160 | ||
161 | config IO_DELAY_0X80 | 161 | config IO_DELAY_0X80 |
162 | bool "port 0x80 based port-IO delay [recommended]" | 162 | bool "port 0x80 based port-IO delay [recommended]" |
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 204af43535c5..f1e739a43d41 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -229,7 +229,7 @@ zdisk bzdisk: vmlinux | |||
229 | fdimage fdimage144 fdimage288 isoimage: vmlinux | 229 | fdimage fdimage144 fdimage288 isoimage: vmlinux |
230 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ | 230 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ |
231 | 231 | ||
232 | install: vdso_install | 232 | install: |
233 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install | 233 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install |
234 | 234 | ||
235 | PHONY += vdso_install | 235 | PHONY += vdso_install |
diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 76ec0f8f138a..4eb5ce841106 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile | |||
@@ -6,7 +6,15 @@ extra-y := head_$(BITS).o init_task.o vmlinux.lds | |||
6 | extra-$(CONFIG_X86_64) += head64.o | 6 | extra-$(CONFIG_X86_64) += head64.o |
7 | 7 | ||
8 | CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) | 8 | CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) |
9 | CFLAGS_vsyscall_64.o := $(PROFILING) -g0 | 9 | |
10 | # | ||
11 | # vsyscalls (which work on the user stack) should have | ||
12 | # no stack-protector checks: | ||
13 | # | ||
14 | nostackp := $(call cc-option, -fno-stack-protector) | ||
15 | CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp) | ||
16 | CFLAGS_hpet.o := $(nostackp) | ||
17 | CFLAGS_tsc_64.o := $(nostackp) | ||
10 | 18 | ||
11 | obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o | 19 | obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o |
12 | obj-y += traps_$(BITS).o irq_$(BITS).o | 20 | obj-y += traps_$(BITS).o irq_$(BITS).o |
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 9b95edcfc6ae..027e5c003b16 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c | |||
@@ -25,14 +25,6 @@ static int __init no_halt(char *s) | |||
25 | 25 | ||
26 | __setup("no-hlt", no_halt); | 26 | __setup("no-hlt", no_halt); |
27 | 27 | ||
28 | static int __init mca_pentium(char *s) | ||
29 | { | ||
30 | mca_pentium_flag = 1; | ||
31 | return 1; | ||
32 | } | ||
33 | |||
34 | __setup("mca-pentium", mca_pentium); | ||
35 | |||
36 | static int __init no_387(char *s) | 28 | static int __init no_387(char *s) |
37 | { | 29 | { |
38 | boot_cpu_data.hard_math = 0; | 30 | boot_cpu_data.hard_math = 0; |
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c index 0c0eeb163d90..759e02bec070 100644 --- a/arch/x86/kernel/efi.c +++ b/arch/x86/kernel/efi.c | |||
@@ -54,7 +54,7 @@ EXPORT_SYMBOL(efi); | |||
54 | 54 | ||
55 | struct efi_memory_map memmap; | 55 | struct efi_memory_map memmap; |
56 | 56 | ||
57 | struct efi efi_phys __initdata; | 57 | static struct efi efi_phys __initdata; |
58 | static efi_system_table_t efi_systab __initdata; | 58 | static efi_system_table_t efi_systab __initdata; |
59 | 59 | ||
60 | static int __init setup_noefi(char *arg) | 60 | static int __init setup_noefi(char *arg) |
diff --git a/arch/x86/kernel/efi_32.c b/arch/x86/kernel/efi_32.c index cb91f985b4a1..5d23d85624d4 100644 --- a/arch/x86/kernel/efi_32.c +++ b/arch/x86/kernel/efi_32.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <asm/page.h> | 28 | #include <asm/page.h> |
29 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
30 | #include <asm/tlbflush.h> | 30 | #include <asm/tlbflush.h> |
31 | #include <asm/efi.h> | ||
31 | 32 | ||
32 | /* | 33 | /* |
33 | * To make EFI call EFI runtime service in physical addressing mode we need | 34 | * To make EFI call EFI runtime service in physical addressing mode we need |
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index 824e21b80aad..4b87c32b639f 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S | |||
@@ -409,7 +409,7 @@ restore_nocheck_notrace: | |||
409 | RESTORE_REGS | 409 | RESTORE_REGS |
410 | addl $4, %esp # skip orig_eax/error_code | 410 | addl $4, %esp # skip orig_eax/error_code |
411 | CFI_ADJUST_CFA_OFFSET -4 | 411 | CFI_ADJUST_CFA_OFFSET -4 |
412 | ENTRY(irq_return) | 412 | irq_return: |
413 | INTERRUPT_RETURN | 413 | INTERRUPT_RETURN |
414 | .section .fixup,"ax" | 414 | .section .fixup,"ax" |
415 | iret_exc: | 415 | iret_exc: |
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index 6be39a387c5a..2ad9a1bc6a73 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S | |||
@@ -583,7 +583,7 @@ retint_restore_args: /* return to kernel space */ | |||
583 | restore_args: | 583 | restore_args: |
584 | RESTORE_ARGS 0,8,0 | 584 | RESTORE_ARGS 0,8,0 |
585 | 585 | ||
586 | ENTRY(irq_return) | 586 | irq_return: |
587 | INTERRUPT_RETURN | 587 | INTERRUPT_RETURN |
588 | 588 | ||
589 | .section __ex_table, "a" | 589 | .section __ex_table, "a" |
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 74ef4a41f224..25eb98540a41 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S | |||
@@ -612,7 +612,7 @@ ENTRY(swapper_pg_pmd) | |||
612 | ENTRY(swapper_pg_dir) | 612 | ENTRY(swapper_pg_dir) |
613 | .fill 1024,4,0 | 613 | .fill 1024,4,0 |
614 | #endif | 614 | #endif |
615 | ENTRY(swapper_pg_fixmap) | 615 | swapper_pg_fixmap: |
616 | .fill 1024,4,0 | 616 | .fill 1024,4,0 |
617 | ENTRY(empty_zero_page) | 617 | ENTRY(empty_zero_page) |
618 | .fill 4096,1,0 | 618 | .fill 4096,1,0 |
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 53e5820d6054..eb415043a929 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S | |||
@@ -255,7 +255,7 @@ ENTRY(secondary_startup_64) | |||
255 | lretq | 255 | lretq |
256 | 256 | ||
257 | /* SMP bootup changes these two */ | 257 | /* SMP bootup changes these two */ |
258 | __CPUINITDATA | 258 | __REFDATA |
259 | .align 8 | 259 | .align 8 |
260 | ENTRY(initial_code) | 260 | ENTRY(initial_code) |
261 | .quad x86_64_start_kernel | 261 | .quad x86_64_start_kernel |
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c index 26719bd2c77c..763dfc407232 100644 --- a/arch/x86/kernel/i387.c +++ b/arch/x86/kernel/i387.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #define HAVE_HWFP 1 | 39 | #define HAVE_HWFP 1 |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | unsigned int mxcsr_feature_mask __read_mostly = 0xffffffffu; | 42 | static unsigned int mxcsr_feature_mask __read_mostly = 0xffffffffu; |
43 | 43 | ||
44 | void mxcsr_feature_mask_init(void) | 44 | void mxcsr_feature_mask_init(void) |
45 | { | 45 | { |
diff --git a/arch/x86/kernel/i8259_32.c b/arch/x86/kernel/i8259_32.c index 2d25b77102fe..fe631967d625 100644 --- a/arch/x86/kernel/i8259_32.c +++ b/arch/x86/kernel/i8259_32.c | |||
@@ -26,8 +26,6 @@ | |||
26 | * present in the majority of PC/AT boxes. | 26 | * present in the majority of PC/AT boxes. |
27 | * plus some generic x86 specific things if generic specifics makes | 27 | * plus some generic x86 specific things if generic specifics makes |
28 | * any sense at all. | 28 | * any sense at all. |
29 | * this file should become arch/i386/kernel/irq.c when the old irq.c | ||
30 | * moves to arch independent land | ||
31 | */ | 29 | */ |
32 | 30 | ||
33 | static int i8259A_auto_eoi; | 31 | static int i8259A_auto_eoi; |
@@ -362,23 +360,12 @@ void __init init_ISA_irqs (void) | |||
362 | #endif | 360 | #endif |
363 | init_8259A(0); | 361 | init_8259A(0); |
364 | 362 | ||
365 | for (i = 0; i < NR_IRQS; i++) { | 363 | /* |
366 | irq_desc[i].status = IRQ_DISABLED; | 364 | * 16 old-style INTA-cycle interrupts: |
367 | irq_desc[i].action = NULL; | 365 | */ |
368 | irq_desc[i].depth = 1; | 366 | for (i = 0; i < 16; i++) { |
369 | 367 | set_irq_chip_and_handler_name(i, &i8259A_chip, | |
370 | if (i < 16) { | 368 | handle_level_irq, "XT"); |
371 | /* | ||
372 | * 16 old-style INTA-cycle interrupts: | ||
373 | */ | ||
374 | set_irq_chip_and_handler_name(i, &i8259A_chip, | ||
375 | handle_level_irq, "XT"); | ||
376 | } else { | ||
377 | /* | ||
378 | * 'high' PCI IRQs filled in on demand | ||
379 | */ | ||
380 | irq_desc[i].chip = &no_irq_chip; | ||
381 | } | ||
382 | } | 369 | } |
383 | } | 370 | } |
384 | 371 | ||
diff --git a/arch/x86/kernel/io_delay.c b/arch/x86/kernel/io_delay.c index bd49321034db..c706a3061553 100644 --- a/arch/x86/kernel/io_delay.c +++ b/arch/x86/kernel/io_delay.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | 14 | ||
15 | int io_delay_type __read_mostly = CONFIG_DEFAULT_IO_DELAY_TYPE; | 15 | int io_delay_type __read_mostly = CONFIG_DEFAULT_IO_DELAY_TYPE; |
16 | EXPORT_SYMBOL_GPL(io_delay_type); | ||
17 | 16 | ||
18 | static int __initdata io_delay_override; | 17 | static int __initdata io_delay_override; |
19 | 18 | ||
diff --git a/arch/x86/kernel/kprobes.c b/arch/x86/kernel/kprobes.c index a99e764fd66a..34a591283f5d 100644 --- a/arch/x86/kernel/kprobes.c +++ b/arch/x86/kernel/kprobes.c | |||
@@ -581,7 +581,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs) | |||
581 | * When a retprobed function returns, this code saves registers and | 581 | * When a retprobed function returns, this code saves registers and |
582 | * calls trampoline_handler() runs, which calls the kretprobe's handler. | 582 | * calls trampoline_handler() runs, which calls the kretprobe's handler. |
583 | */ | 583 | */ |
584 | void __kprobes kretprobe_trampoline_holder(void) | 584 | static void __used __kprobes kretprobe_trampoline_holder(void) |
585 | { | 585 | { |
586 | asm volatile ( | 586 | asm volatile ( |
587 | ".global kretprobe_trampoline\n" | 587 | ".global kretprobe_trampoline\n" |
@@ -673,7 +673,7 @@ void __kprobes kretprobe_trampoline_holder(void) | |||
673 | /* | 673 | /* |
674 | * Called from kretprobe_trampoline | 674 | * Called from kretprobe_trampoline |
675 | */ | 675 | */ |
676 | void * __kprobes trampoline_handler(struct pt_regs *regs) | 676 | static __used __kprobes void *trampoline_handler(struct pt_regs *regs) |
677 | { | 677 | { |
678 | struct kretprobe_instance *ri = NULL; | 678 | struct kretprobe_instance *ri = NULL; |
679 | struct hlist_head *head, empty_rp; | 679 | struct hlist_head *head, empty_rp; |
diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c index edd413650b3b..6a0aa7038685 100644 --- a/arch/x86/kernel/nmi_32.c +++ b/arch/x86/kernel/nmi_32.c | |||
@@ -46,9 +46,6 @@ static unsigned int nmi_hz = HZ; | |||
46 | 46 | ||
47 | static DEFINE_PER_CPU(short, wd_enabled); | 47 | static DEFINE_PER_CPU(short, wd_enabled); |
48 | 48 | ||
49 | /* local prototypes */ | ||
50 | static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu); | ||
51 | |||
52 | static int endflag __initdata = 0; | 49 | static int endflag __initdata = 0; |
53 | 50 | ||
54 | #ifdef CONFIG_SMP | 51 | #ifdef CONFIG_SMP |
@@ -391,15 +388,6 @@ __kprobes int nmi_watchdog_tick(struct pt_regs * regs, unsigned reason) | |||
391 | return rc; | 388 | return rc; |
392 | } | 389 | } |
393 | 390 | ||
394 | int do_nmi_callback(struct pt_regs * regs, int cpu) | ||
395 | { | ||
396 | #ifdef CONFIG_SYSCTL | ||
397 | if (unknown_nmi_panic) | ||
398 | return unknown_nmi_panic_callback(regs, cpu); | ||
399 | #endif | ||
400 | return 0; | ||
401 | } | ||
402 | |||
403 | #ifdef CONFIG_SYSCTL | 391 | #ifdef CONFIG_SYSCTL |
404 | 392 | ||
405 | static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu) | 393 | static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu) |
@@ -453,6 +441,15 @@ int proc_nmi_enabled(struct ctl_table *table, int write, struct file *file, | |||
453 | 441 | ||
454 | #endif | 442 | #endif |
455 | 443 | ||
444 | int do_nmi_callback(struct pt_regs *regs, int cpu) | ||
445 | { | ||
446 | #ifdef CONFIG_SYSCTL | ||
447 | if (unknown_nmi_panic) | ||
448 | return unknown_nmi_panic_callback(regs, cpu); | ||
449 | #endif | ||
450 | return 0; | ||
451 | } | ||
452 | |||
456 | void __trigger_all_cpu_backtrace(void) | 453 | void __trigger_all_cpu_backtrace(void) |
457 | { | 454 | { |
458 | int i; | 455 | int i; |
diff --git a/arch/x86/kernel/nmi_64.c b/arch/x86/kernel/nmi_64.c index fb99484d21cf..9a4fde74bee1 100644 --- a/arch/x86/kernel/nmi_64.c +++ b/arch/x86/kernel/nmi_64.c | |||
@@ -46,9 +46,6 @@ static unsigned int nmi_hz = HZ; | |||
46 | 46 | ||
47 | static DEFINE_PER_CPU(short, wd_enabled); | 47 | static DEFINE_PER_CPU(short, wd_enabled); |
48 | 48 | ||
49 | /* local prototypes */ | ||
50 | static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu); | ||
51 | |||
52 | /* Run after command line and cpu_init init, but before all other checks */ | 49 | /* Run after command line and cpu_init init, but before all other checks */ |
53 | void nmi_watchdog_default(void) | 50 | void nmi_watchdog_default(void) |
54 | { | 51 | { |
@@ -394,15 +391,6 @@ asmlinkage __kprobes void do_nmi(struct pt_regs * regs, long error_code) | |||
394 | nmi_exit(); | 391 | nmi_exit(); |
395 | } | 392 | } |
396 | 393 | ||
397 | int do_nmi_callback(struct pt_regs * regs, int cpu) | ||
398 | { | ||
399 | #ifdef CONFIG_SYSCTL | ||
400 | if (unknown_nmi_panic) | ||
401 | return unknown_nmi_panic_callback(regs, cpu); | ||
402 | #endif | ||
403 | return 0; | ||
404 | } | ||
405 | |||
406 | void stop_nmi(void) | 394 | void stop_nmi(void) |
407 | { | 395 | { |
408 | acpi_nmi_disable(); | 396 | acpi_nmi_disable(); |
@@ -464,6 +452,15 @@ int proc_nmi_enabled(struct ctl_table *table, int write, struct file *file, | |||
464 | 452 | ||
465 | #endif | 453 | #endif |
466 | 454 | ||
455 | int do_nmi_callback(struct pt_regs *regs, int cpu) | ||
456 | { | ||
457 | #ifdef CONFIG_SYSCTL | ||
458 | if (unknown_nmi_panic) | ||
459 | return unknown_nmi_panic_callback(regs, cpu); | ||
460 | #endif | ||
461 | return 0; | ||
462 | } | ||
463 | |||
467 | void __trigger_all_cpu_backtrace(void) | 464 | void __trigger_all_cpu_backtrace(void) |
468 | { | 465 | { |
469 | int i; | 466 | int i; |
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c index 691ab4cb167b..a1d7071a51c9 100644 --- a/arch/x86/kernel/setup_32.c +++ b/arch/x86/kernel/setup_32.c | |||
@@ -164,7 +164,6 @@ unsigned long mmu_cr4_features = X86_CR4_PAE; | |||
164 | unsigned int machine_id; | 164 | unsigned int machine_id; |
165 | unsigned int machine_submodel_id; | 165 | unsigned int machine_submodel_id; |
166 | unsigned int BIOS_revision; | 166 | unsigned int BIOS_revision; |
167 | unsigned int mca_pentium_flag; | ||
168 | 167 | ||
169 | /* Boot loader ID as an integer, for the benefit of proc_dointvec */ | 168 | /* Boot loader ID as an integer, for the benefit of proc_dointvec */ |
170 | int bootloader_type; | 169 | int bootloader_type; |
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index c0d8208af12a..6fd804f07821 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -518,7 +518,7 @@ static void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c) | |||
518 | } | 518 | } |
519 | 519 | ||
520 | #ifdef CONFIG_NUMA | 520 | #ifdef CONFIG_NUMA |
521 | static int nearby_node(int apicid) | 521 | static int __cpuinit nearby_node(int apicid) |
522 | { | 522 | { |
523 | int i, node; | 523 | int i, node; |
524 | 524 | ||
@@ -791,7 +791,7 @@ static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c) | |||
791 | return 1; | 791 | return 1; |
792 | } | 792 | } |
793 | 793 | ||
794 | static void srat_detect_node(void) | 794 | static void __cpuinit srat_detect_node(void) |
795 | { | 795 | { |
796 | #ifdef CONFIG_NUMA | 796 | #ifdef CONFIG_NUMA |
797 | unsigned node; | 797 | unsigned node; |
@@ -1046,7 +1046,7 @@ __setup("noclflush", setup_noclflush); | |||
1046 | void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) | 1046 | void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) |
1047 | { | 1047 | { |
1048 | if (c->x86_model_id[0]) | 1048 | if (c->x86_model_id[0]) |
1049 | printk(KERN_INFO "%s", c->x86_model_id); | 1049 | printk(KERN_CONT "%s", c->x86_model_id); |
1050 | 1050 | ||
1051 | if (c->x86_mask || c->cpuid_level >= 0) | 1051 | if (c->x86_mask || c->cpuid_level >= 0) |
1052 | printk(KERN_CONT " stepping %02x\n", c->x86_mask); | 1052 | printk(KERN_CONT " stepping %02x\n", c->x86_mask); |
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index a40051b71d9b..0fcc95a354f7 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c | |||
@@ -34,7 +34,7 @@ | |||
34 | static DEFINE_PER_CPU(struct x86_cpu, cpu_devices); | 34 | static DEFINE_PER_CPU(struct x86_cpu, cpu_devices); |
35 | 35 | ||
36 | #ifdef CONFIG_HOTPLUG_CPU | 36 | #ifdef CONFIG_HOTPLUG_CPU |
37 | int arch_register_cpu(int num) | 37 | int __ref arch_register_cpu(int num) |
38 | { | 38 | { |
39 | /* | 39 | /* |
40 | * CPU0 cannot be offlined due to several | 40 | * CPU0 cannot be offlined due to several |
diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S index f1148ac8abe3..2ffa9656fe7a 100644 --- a/arch/x86/kernel/vmlinux_32.lds.S +++ b/arch/x86/kernel/vmlinux_32.lds.S | |||
@@ -38,7 +38,7 @@ SECTIONS | |||
38 | 38 | ||
39 | /* read-only */ | 39 | /* read-only */ |
40 | .text : AT(ADDR(.text) - LOAD_OFFSET) { | 40 | .text : AT(ADDR(.text) - LOAD_OFFSET) { |
41 | . = ALIGN(4096); /* not really needed, already page aligned */ | 41 | . = ALIGN(PAGE_SIZE); /* not really needed, already page aligned */ |
42 | *(.text.page_aligned) | 42 | *(.text.page_aligned) |
43 | TEXT_TEXT | 43 | TEXT_TEXT |
44 | SCHED_TEXT | 44 | SCHED_TEXT |
@@ -70,21 +70,21 @@ SECTIONS | |||
70 | RODATA | 70 | RODATA |
71 | 71 | ||
72 | /* writeable */ | 72 | /* writeable */ |
73 | . = ALIGN(4096); | 73 | . = ALIGN(PAGE_SIZE); |
74 | .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */ | 74 | .data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */ |
75 | DATA_DATA | 75 | DATA_DATA |
76 | CONSTRUCTORS | 76 | CONSTRUCTORS |
77 | } :data | 77 | } :data |
78 | 78 | ||
79 | . = ALIGN(4096); | 79 | . = ALIGN(PAGE_SIZE); |
80 | .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { | 80 | .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { |
81 | __nosave_begin = .; | 81 | __nosave_begin = .; |
82 | *(.data.nosave) | 82 | *(.data.nosave) |
83 | . = ALIGN(4096); | 83 | . = ALIGN(PAGE_SIZE); |
84 | __nosave_end = .; | 84 | __nosave_end = .; |
85 | } | 85 | } |
86 | 86 | ||
87 | . = ALIGN(4096); | 87 | . = ALIGN(PAGE_SIZE); |
88 | .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { | 88 | .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { |
89 | *(.data.page_aligned) | 89 | *(.data.page_aligned) |
90 | *(.data.idt) | 90 | *(.data.idt) |
@@ -108,7 +108,7 @@ SECTIONS | |||
108 | } | 108 | } |
109 | 109 | ||
110 | /* might get freed after init */ | 110 | /* might get freed after init */ |
111 | . = ALIGN(4096); | 111 | . = ALIGN(PAGE_SIZE); |
112 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { | 112 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { |
113 | __smp_locks = .; | 113 | __smp_locks = .; |
114 | *(.smp_locks) | 114 | *(.smp_locks) |
@@ -120,10 +120,10 @@ SECTIONS | |||
120 | * after boot. Always make sure that ALIGN() directive is present after | 120 | * after boot. Always make sure that ALIGN() directive is present after |
121 | * the section which contains __smp_alt_end. | 121 | * the section which contains __smp_alt_end. |
122 | */ | 122 | */ |
123 | . = ALIGN(4096); | 123 | . = ALIGN(PAGE_SIZE); |
124 | 124 | ||
125 | /* will be freed after init */ | 125 | /* will be freed after init */ |
126 | . = ALIGN(4096); /* Init code and data */ | 126 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
127 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { | 127 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { |
128 | __init_begin = .; | 128 | __init_begin = .; |
129 | _sinittext = .; | 129 | _sinittext = .; |
@@ -174,23 +174,23 @@ SECTIONS | |||
174 | EXIT_DATA | 174 | EXIT_DATA |
175 | } | 175 | } |
176 | #if defined(CONFIG_BLK_DEV_INITRD) | 176 | #if defined(CONFIG_BLK_DEV_INITRD) |
177 | . = ALIGN(4096); | 177 | . = ALIGN(PAGE_SIZE); |
178 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { | 178 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { |
179 | __initramfs_start = .; | 179 | __initramfs_start = .; |
180 | *(.init.ramfs) | 180 | *(.init.ramfs) |
181 | __initramfs_end = .; | 181 | __initramfs_end = .; |
182 | } | 182 | } |
183 | #endif | 183 | #endif |
184 | . = ALIGN(4096); | 184 | . = ALIGN(PAGE_SIZE); |
185 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { | 185 | .data.percpu : AT(ADDR(.data.percpu) - LOAD_OFFSET) { |
186 | __per_cpu_start = .; | 186 | __per_cpu_start = .; |
187 | *(.data.percpu) | 187 | *(.data.percpu) |
188 | *(.data.percpu.shared_aligned) | 188 | *(.data.percpu.shared_aligned) |
189 | __per_cpu_end = .; | 189 | __per_cpu_end = .; |
190 | } | 190 | } |
191 | . = ALIGN(4096); | 191 | . = ALIGN(PAGE_SIZE); |
192 | /* freed after init ends here */ | 192 | /* freed after init ends here */ |
193 | 193 | ||
194 | .bss : AT(ADDR(.bss) - LOAD_OFFSET) { | 194 | .bss : AT(ADDR(.bss) - LOAD_OFFSET) { |
195 | __init_end = .; | 195 | __init_end = .; |
196 | __bss_start = .; /* BSS */ | 196 | __bss_start = .; /* BSS */ |
@@ -200,7 +200,7 @@ SECTIONS | |||
200 | __bss_stop = .; | 200 | __bss_stop = .; |
201 | _end = . ; | 201 | _end = . ; |
202 | /* This is where the kernel creates the early boot page tables */ | 202 | /* This is where the kernel creates the early boot page tables */ |
203 | . = ALIGN(4096); | 203 | . = ALIGN(PAGE_SIZE); |
204 | pg0 = . ; | 204 | pg0 = . ; |
205 | } | 205 | } |
206 | 206 | ||
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S index 0992b9946c6f..fab132299735 100644 --- a/arch/x86/kernel/vmlinux_64.lds.S +++ b/arch/x86/kernel/vmlinux_64.lds.S | |||
@@ -37,7 +37,7 @@ SECTIONS | |||
37 | KPROBES_TEXT | 37 | KPROBES_TEXT |
38 | *(.fixup) | 38 | *(.fixup) |
39 | *(.gnu.warning) | 39 | *(.gnu.warning) |
40 | _etext = .; /* End of text section */ | 40 | _etext = .; /* End of text section */ |
41 | } :text = 0x9090 | 41 | } :text = 0x9090 |
42 | 42 | ||
43 | . = ALIGN(16); /* Exception table */ | 43 | . = ALIGN(16); /* Exception table */ |
@@ -60,7 +60,7 @@ SECTIONS | |||
60 | __tracedata_end = .; | 60 | __tracedata_end = .; |
61 | } | 61 | } |
62 | 62 | ||
63 | . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */ | 63 | . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */ |
64 | /* Data */ | 64 | /* Data */ |
65 | .data : AT(ADDR(.data) - LOAD_OFFSET) { | 65 | .data : AT(ADDR(.data) - LOAD_OFFSET) { |
66 | DATA_DATA | 66 | DATA_DATA |
@@ -119,7 +119,7 @@ SECTIONS | |||
119 | .vsyscall_3 ADDR(.vsyscall_0) + 3072: AT(VLOAD(.vsyscall_3)) | 119 | .vsyscall_3 ADDR(.vsyscall_0) + 3072: AT(VLOAD(.vsyscall_3)) |
120 | { *(.vsyscall_3) } | 120 | { *(.vsyscall_3) } |
121 | 121 | ||
122 | . = VSYSCALL_VIRT_ADDR + 4096; | 122 | . = VSYSCALL_VIRT_ADDR + PAGE_SIZE; |
123 | 123 | ||
124 | #undef VSYSCALL_ADDR | 124 | #undef VSYSCALL_ADDR |
125 | #undef VSYSCALL_PHYS_ADDR | 125 | #undef VSYSCALL_PHYS_ADDR |
@@ -129,28 +129,28 @@ SECTIONS | |||
129 | #undef VVIRT_OFFSET | 129 | #undef VVIRT_OFFSET |
130 | #undef VVIRT | 130 | #undef VVIRT |
131 | 131 | ||
132 | . = ALIGN(8192); /* init_task */ | 132 | . = ALIGN(THREAD_SIZE); /* init_task */ |
133 | .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { | 133 | .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { |
134 | *(.data.init_task) | 134 | *(.data.init_task) |
135 | }:data.init | 135 | }:data.init |
136 | 136 | ||
137 | . = ALIGN(4096); | 137 | . = ALIGN(PAGE_SIZE); |
138 | .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { | 138 | .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { |
139 | *(.data.page_aligned) | 139 | *(.data.page_aligned) |
140 | } | 140 | } |
141 | 141 | ||
142 | /* might get freed after init */ | 142 | /* might get freed after init */ |
143 | . = ALIGN(4096); | 143 | . = ALIGN(PAGE_SIZE); |
144 | __smp_alt_begin = .; | 144 | __smp_alt_begin = .; |
145 | __smp_locks = .; | 145 | __smp_locks = .; |
146 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { | 146 | .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) { |
147 | *(.smp_locks) | 147 | *(.smp_locks) |
148 | } | 148 | } |
149 | __smp_locks_end = .; | 149 | __smp_locks_end = .; |
150 | . = ALIGN(4096); | 150 | . = ALIGN(PAGE_SIZE); |
151 | __smp_alt_end = .; | 151 | __smp_alt_end = .; |
152 | 152 | ||
153 | . = ALIGN(4096); /* Init code and data */ | 153 | . = ALIGN(PAGE_SIZE); /* Init code and data */ |
154 | __init_begin = .; | 154 | __init_begin = .; |
155 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { | 155 | .init.text : AT(ADDR(.init.text) - LOAD_OFFSET) { |
156 | _sinittext = .; | 156 | _sinittext = .; |
@@ -191,7 +191,7 @@ SECTIONS | |||
191 | .altinstructions : AT(ADDR(.altinstructions) - LOAD_OFFSET) { | 191 | .altinstructions : AT(ADDR(.altinstructions) - LOAD_OFFSET) { |
192 | *(.altinstructions) | 192 | *(.altinstructions) |
193 | } | 193 | } |
194 | __alt_instructions_end = .; | 194 | __alt_instructions_end = .; |
195 | .altinstr_replacement : AT(ADDR(.altinstr_replacement) - LOAD_OFFSET) { | 195 | .altinstr_replacement : AT(ADDR(.altinstr_replacement) - LOAD_OFFSET) { |
196 | *(.altinstr_replacement) | 196 | *(.altinstr_replacement) |
197 | } | 197 | } |
@@ -207,25 +207,25 @@ SECTIONS | |||
207 | /* vdso blob that is mapped into user space */ | 207 | /* vdso blob that is mapped into user space */ |
208 | vdso_start = . ; | 208 | vdso_start = . ; |
209 | .vdso : AT(ADDR(.vdso) - LOAD_OFFSET) { *(.vdso) } | 209 | .vdso : AT(ADDR(.vdso) - LOAD_OFFSET) { *(.vdso) } |
210 | . = ALIGN(4096); | 210 | . = ALIGN(PAGE_SIZE); |
211 | vdso_end = .; | 211 | vdso_end = .; |
212 | 212 | ||
213 | #ifdef CONFIG_BLK_DEV_INITRD | 213 | #ifdef CONFIG_BLK_DEV_INITRD |
214 | . = ALIGN(4096); | 214 | . = ALIGN(PAGE_SIZE); |
215 | __initramfs_start = .; | 215 | __initramfs_start = .; |
216 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { *(.init.ramfs) } | 216 | .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { *(.init.ramfs) } |
217 | __initramfs_end = .; | 217 | __initramfs_end = .; |
218 | #endif | 218 | #endif |
219 | 219 | ||
220 | PERCPU(4096) | 220 | PERCPU(PAGE_SIZE) |
221 | 221 | ||
222 | . = ALIGN(4096); | 222 | . = ALIGN(PAGE_SIZE); |
223 | __init_end = .; | 223 | __init_end = .; |
224 | 224 | ||
225 | . = ALIGN(4096); | 225 | . = ALIGN(PAGE_SIZE); |
226 | __nosave_begin = .; | 226 | __nosave_begin = .; |
227 | .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { *(.data.nosave) } | 227 | .data_nosave : AT(ADDR(.data_nosave) - LOAD_OFFSET) { *(.data.nosave) } |
228 | . = ALIGN(4096); | 228 | . = ALIGN(PAGE_SIZE); |
229 | __nosave_end = .; | 229 | __nosave_end = .; |
230 | 230 | ||
231 | __bss_start = .; /* BSS */ | 231 | __bss_start = .; /* BSS */ |
diff --git a/arch/x86/lib/csum-wrappers_64.c b/arch/x86/lib/csum-wrappers_64.c index fd42a4a095fc..459b58a8a15c 100644 --- a/arch/x86/lib/csum-wrappers_64.c +++ b/arch/x86/lib/csum-wrappers_64.c | |||
@@ -1,117 +1,129 @@ | |||
1 | /* Copyright 2002,2003 Andi Kleen, SuSE Labs. | 1 | /* |
2 | * Copyright 2002, 2003 Andi Kleen, SuSE Labs. | ||
2 | * Subject to the GNU Public License v.2 | 3 | * Subject to the GNU Public License v.2 |
3 | * | 4 | * |
4 | * Wrappers of assembly checksum functions for x86-64. | 5 | * Wrappers of assembly checksum functions for x86-64. |
5 | */ | 6 | */ |
6 | |||
7 | #include <asm/checksum.h> | 7 | #include <asm/checksum.h> |
8 | #include <linux/module.h> | 8 | #include <linux/module.h> |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * csum_partial_copy_from_user - Copy and checksum from user space. | 11 | * csum_partial_copy_from_user - Copy and checksum from user space. |
12 | * @src: source address (user space) | 12 | * @src: source address (user space) |
13 | * @dst: destination address | 13 | * @dst: destination address |
14 | * @len: number of bytes to be copied. | 14 | * @len: number of bytes to be copied. |
15 | * @isum: initial sum that is added into the result (32bit unfolded) | 15 | * @isum: initial sum that is added into the result (32bit unfolded) |
16 | * @errp: set to -EFAULT for an bad source address. | 16 | * @errp: set to -EFAULT for an bad source address. |
17 | * | 17 | * |
18 | * Returns an 32bit unfolded checksum of the buffer. | 18 | * Returns an 32bit unfolded checksum of the buffer. |
19 | * src and dst are best aligned to 64bits. | 19 | * src and dst are best aligned to 64bits. |
20 | */ | 20 | */ |
21 | __wsum | 21 | __wsum |
22 | csum_partial_copy_from_user(const void __user *src, void *dst, | 22 | csum_partial_copy_from_user(const void __user *src, void *dst, |
23 | int len, __wsum isum, int *errp) | 23 | int len, __wsum isum, int *errp) |
24 | { | 24 | { |
25 | might_sleep(); | 25 | might_sleep(); |
26 | *errp = 0; | 26 | *errp = 0; |
27 | if (likely(access_ok(VERIFY_READ,src, len))) { | 27 | |
28 | /* Why 6, not 7? To handle odd addresses aligned we | 28 | if (!likely(access_ok(VERIFY_READ, src, len))) |
29 | would need to do considerable complications to fix the | 29 | goto out_err; |
30 | checksum which is defined as an 16bit accumulator. The | 30 | |
31 | fix alignment code is primarily for performance | 31 | /* |
32 | compatibility with 32bit and that will handle odd | 32 | * Why 6, not 7? To handle odd addresses aligned we |
33 | addresses slowly too. */ | 33 | * would need to do considerable complications to fix the |
34 | if (unlikely((unsigned long)src & 6)) { | 34 | * checksum which is defined as an 16bit accumulator. The |
35 | while (((unsigned long)src & 6) && len >= 2) { | 35 | * fix alignment code is primarily for performance |
36 | __u16 val16; | 36 | * compatibility with 32bit and that will handle odd |
37 | *errp = __get_user(val16, (const __u16 __user *)src); | 37 | * addresses slowly too. |
38 | if (*errp) | 38 | */ |
39 | return isum; | 39 | if (unlikely((unsigned long)src & 6)) { |
40 | *(__u16 *)dst = val16; | 40 | while (((unsigned long)src & 6) && len >= 2) { |
41 | isum = (__force __wsum)add32_with_carry( | 41 | __u16 val16; |
42 | (__force unsigned)isum, val16); | 42 | |
43 | src += 2; | 43 | *errp = __get_user(val16, (const __u16 __user *)src); |
44 | dst += 2; | 44 | if (*errp) |
45 | len -= 2; | 45 | return isum; |
46 | } | 46 | |
47 | *(__u16 *)dst = val16; | ||
48 | isum = (__force __wsum)add32_with_carry( | ||
49 | (__force unsigned)isum, val16); | ||
50 | src += 2; | ||
51 | dst += 2; | ||
52 | len -= 2; | ||
47 | } | 53 | } |
48 | isum = csum_partial_copy_generic((__force const void *)src, | 54 | } |
49 | dst, len, isum, errp, NULL); | 55 | isum = csum_partial_copy_generic((__force const void *)src, |
50 | if (likely(*errp == 0)) | 56 | dst, len, isum, errp, NULL); |
51 | return isum; | 57 | if (unlikely(*errp)) |
52 | } | 58 | goto out_err; |
59 | |||
60 | return isum; | ||
61 | |||
62 | out_err: | ||
53 | *errp = -EFAULT; | 63 | *errp = -EFAULT; |
54 | memset(dst,0,len); | 64 | memset(dst, 0, len); |
55 | return isum; | ||
56 | } | ||
57 | 65 | ||
66 | return isum; | ||
67 | } | ||
58 | EXPORT_SYMBOL(csum_partial_copy_from_user); | 68 | EXPORT_SYMBOL(csum_partial_copy_from_user); |
59 | 69 | ||
60 | /** | 70 | /** |
61 | * csum_partial_copy_to_user - Copy and checksum to user space. | 71 | * csum_partial_copy_to_user - Copy and checksum to user space. |
62 | * @src: source address | 72 | * @src: source address |
63 | * @dst: destination address (user space) | 73 | * @dst: destination address (user space) |
64 | * @len: number of bytes to be copied. | 74 | * @len: number of bytes to be copied. |
65 | * @isum: initial sum that is added into the result (32bit unfolded) | 75 | * @isum: initial sum that is added into the result (32bit unfolded) |
66 | * @errp: set to -EFAULT for an bad destination address. | 76 | * @errp: set to -EFAULT for an bad destination address. |
67 | * | 77 | * |
68 | * Returns an 32bit unfolded checksum of the buffer. | 78 | * Returns an 32bit unfolded checksum of the buffer. |
69 | * src and dst are best aligned to 64bits. | 79 | * src and dst are best aligned to 64bits. |
70 | */ | 80 | */ |
71 | __wsum | 81 | __wsum |
72 | csum_partial_copy_to_user(const void *src, void __user *dst, | 82 | csum_partial_copy_to_user(const void *src, void __user *dst, |
73 | int len, __wsum isum, int *errp) | 83 | int len, __wsum isum, int *errp) |
74 | { | 84 | { |
75 | might_sleep(); | 85 | might_sleep(); |
86 | |||
76 | if (unlikely(!access_ok(VERIFY_WRITE, dst, len))) { | 87 | if (unlikely(!access_ok(VERIFY_WRITE, dst, len))) { |
77 | *errp = -EFAULT; | 88 | *errp = -EFAULT; |
78 | return 0; | 89 | return 0; |
79 | } | 90 | } |
80 | 91 | ||
81 | if (unlikely((unsigned long)dst & 6)) { | 92 | if (unlikely((unsigned long)dst & 6)) { |
82 | while (((unsigned long)dst & 6) && len >= 2) { | 93 | while (((unsigned long)dst & 6) && len >= 2) { |
83 | __u16 val16 = *(__u16 *)src; | 94 | __u16 val16 = *(__u16 *)src; |
95 | |||
84 | isum = (__force __wsum)add32_with_carry( | 96 | isum = (__force __wsum)add32_with_carry( |
85 | (__force unsigned)isum, val16); | 97 | (__force unsigned)isum, val16); |
86 | *errp = __put_user(val16, (__u16 __user *)dst); | 98 | *errp = __put_user(val16, (__u16 __user *)dst); |
87 | if (*errp) | 99 | if (*errp) |
88 | return isum; | 100 | return isum; |
89 | src += 2; | 101 | src += 2; |
90 | dst += 2; | 102 | dst += 2; |
91 | len -= 2; | 103 | len -= 2; |
92 | } | 104 | } |
93 | } | 105 | } |
94 | 106 | ||
95 | *errp = 0; | 107 | *errp = 0; |
96 | return csum_partial_copy_generic(src, (void __force *)dst,len,isum,NULL,errp); | 108 | return csum_partial_copy_generic(src, (void __force *)dst, |
97 | } | 109 | len, isum, NULL, errp); |
98 | 110 | } | |
99 | EXPORT_SYMBOL(csum_partial_copy_to_user); | 111 | EXPORT_SYMBOL(csum_partial_copy_to_user); |
100 | 112 | ||
101 | /** | 113 | /** |
102 | * csum_partial_copy_nocheck - Copy and checksum. | 114 | * csum_partial_copy_nocheck - Copy and checksum. |
103 | * @src: source address | 115 | * @src: source address |
104 | * @dst: destination address | 116 | * @dst: destination address |
105 | * @len: number of bytes to be copied. | 117 | * @len: number of bytes to be copied. |
106 | * @isum: initial sum that is added into the result (32bit unfolded) | 118 | * @isum: initial sum that is added into the result (32bit unfolded) |
107 | * | 119 | * |
108 | * Returns an 32bit unfolded checksum of the buffer. | 120 | * Returns an 32bit unfolded checksum of the buffer. |
109 | */ | 121 | */ |
110 | __wsum | 122 | __wsum |
111 | csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) | 123 | csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) |
112 | { | 124 | { |
113 | return csum_partial_copy_generic(src,dst,len,sum,NULL,NULL); | 125 | return csum_partial_copy_generic(src, dst, len, sum, NULL, NULL); |
114 | } | 126 | } |
115 | EXPORT_SYMBOL(csum_partial_copy_nocheck); | 127 | EXPORT_SYMBOL(csum_partial_copy_nocheck); |
116 | 128 | ||
117 | __sum16 csum_ipv6_magic(const struct in6_addr *saddr, | 129 | __sum16 csum_ipv6_magic(const struct in6_addr *saddr, |
@@ -119,17 +131,20 @@ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, | |||
119 | __u32 len, unsigned short proto, __wsum sum) | 131 | __u32 len, unsigned short proto, __wsum sum) |
120 | { | 132 | { |
121 | __u64 rest, sum64; | 133 | __u64 rest, sum64; |
122 | 134 | ||
123 | rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + | 135 | rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + |
124 | (__force __u64)sum; | 136 | (__force __u64)sum; |
125 | asm(" addq (%[saddr]),%[sum]\n" | ||
126 | " adcq 8(%[saddr]),%[sum]\n" | ||
127 | " adcq (%[daddr]),%[sum]\n" | ||
128 | " adcq 8(%[daddr]),%[sum]\n" | ||
129 | " adcq $0,%[sum]\n" | ||
130 | : [sum] "=r" (sum64) | ||
131 | : "[sum]" (rest),[saddr] "r" (saddr), [daddr] "r" (daddr)); | ||
132 | return csum_fold((__force __wsum)add32_with_carry(sum64 & 0xffffffff, sum64>>32)); | ||
133 | } | ||
134 | 137 | ||
138 | asm(" addq (%[saddr]),%[sum]\n" | ||
139 | " adcq 8(%[saddr]),%[sum]\n" | ||
140 | " adcq (%[daddr]),%[sum]\n" | ||
141 | " adcq 8(%[daddr]),%[sum]\n" | ||
142 | " adcq $0,%[sum]\n" | ||
143 | |||
144 | : [sum] "=r" (sum64) | ||
145 | : "[sum]" (rest), [saddr] "r" (saddr), [daddr] "r" (daddr)); | ||
146 | |||
147 | return csum_fold( | ||
148 | (__force __wsum)add32_with_carry(sum64 & 0xffffffff, sum64>>32)); | ||
149 | } | ||
135 | EXPORT_SYMBOL(csum_ipv6_magic); | 150 | EXPORT_SYMBOL(csum_ipv6_magic); |
diff --git a/arch/x86/lib/io_64.c b/arch/x86/lib/io_64.c index 87b4a4e18039..3f1eb59b5f08 100644 --- a/arch/x86/lib/io_64.c +++ b/arch/x86/lib/io_64.c | |||
@@ -1,23 +1,25 @@ | |||
1 | #include <linux/string.h> | 1 | #include <linux/string.h> |
2 | #include <asm/io.h> | ||
3 | #include <linux/module.h> | 2 | #include <linux/module.h> |
3 | #include <asm/io.h> | ||
4 | 4 | ||
5 | void __memcpy_toio(unsigned long dst,const void*src,unsigned len) | 5 | void __memcpy_toio(unsigned long dst, const void *src, unsigned len) |
6 | { | 6 | { |
7 | __inline_memcpy((void *) dst,src,len); | 7 | __inline_memcpy((void *)dst, src, len); |
8 | } | 8 | } |
9 | EXPORT_SYMBOL(__memcpy_toio); | 9 | EXPORT_SYMBOL(__memcpy_toio); |
10 | 10 | ||
11 | void __memcpy_fromio(void *dst,unsigned long src,unsigned len) | 11 | void __memcpy_fromio(void *dst, unsigned long src, unsigned len) |
12 | { | 12 | { |
13 | __inline_memcpy(dst,(const void *) src,len); | 13 | __inline_memcpy(dst, (const void *)src, len); |
14 | } | 14 | } |
15 | EXPORT_SYMBOL(__memcpy_fromio); | 15 | EXPORT_SYMBOL(__memcpy_fromio); |
16 | 16 | ||
17 | void memset_io(volatile void __iomem *a, int b, size_t c) | 17 | void memset_io(volatile void __iomem *a, int b, size_t c) |
18 | { | 18 | { |
19 | /* XXX: memset can mangle the IO patterns quite a bit. | 19 | /* |
20 | perhaps it would be better to use a dumb one */ | 20 | * TODO: memset can mangle the IO patterns quite a bit. |
21 | memset((void *)a,b,c); | 21 | * perhaps it would be better to use a dumb one: |
22 | */ | ||
23 | memset((void *)a, b, c); | ||
22 | } | 24 | } |
23 | EXPORT_SYMBOL(memset_io); | 25 | EXPORT_SYMBOL(memset_io); |
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 9f42d7e9c158..f4c95aec5acb 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
@@ -42,6 +42,22 @@ int page_is_ram(unsigned long pagenr) | |||
42 | unsigned long addr, end; | 42 | unsigned long addr, end; |
43 | int i; | 43 | int i; |
44 | 44 | ||
45 | /* | ||
46 | * A special case is the first 4Kb of memory; | ||
47 | * This is a BIOS owned area, not kernel ram, but generally | ||
48 | * not listed as such in the E820 table. | ||
49 | */ | ||
50 | if (pagenr == 0) | ||
51 | return 0; | ||
52 | |||
53 | /* | ||
54 | * Second special case: Some BIOSen report the PC BIOS | ||
55 | * area (640->1Mb) as ram even though it is not. | ||
56 | */ | ||
57 | if (pagenr >= (BIOS_BEGIN >> PAGE_SHIFT) && | ||
58 | pagenr < (BIOS_END >> PAGE_SHIFT)) | ||
59 | return 0; | ||
60 | |||
45 | for (i = 0; i < e820.nr_map; i++) { | 61 | for (i = 0; i < e820.nr_map; i++) { |
46 | /* | 62 | /* |
47 | * Not usable memory: | 63 | * Not usable memory: |
@@ -51,14 +67,6 @@ int page_is_ram(unsigned long pagenr) | |||
51 | addr = (e820.map[i].addr + PAGE_SIZE-1) >> PAGE_SHIFT; | 67 | addr = (e820.map[i].addr + PAGE_SIZE-1) >> PAGE_SHIFT; |
52 | end = (e820.map[i].addr + e820.map[i].size) >> PAGE_SHIFT; | 68 | end = (e820.map[i].addr + e820.map[i].size) >> PAGE_SHIFT; |
53 | 69 | ||
54 | /* | ||
55 | * Sanity check: Some BIOSen report areas as RAM that | ||
56 | * are not. Notably the 640->1Mb area, which is the | ||
57 | * PCI BIOS area. | ||
58 | */ | ||
59 | if (addr >= (BIOS_BEGIN >> PAGE_SHIFT) && | ||
60 | end < (BIOS_END >> PAGE_SHIFT)) | ||
61 | continue; | ||
62 | 70 | ||
63 | if ((pagenr >= addr) && (pagenr < end)) | 71 | if ((pagenr >= addr) && (pagenr < end)) |
64 | return 1; | 72 | return 1; |
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 3ee14996c829..e2a74ea11a53 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -513,7 +513,6 @@ static int __change_page_attr(struct cpa_data *cpa, int primary) | |||
513 | unsigned long address = cpa->vaddr; | 513 | unsigned long address = cpa->vaddr; |
514 | int do_split, err; | 514 | int do_split, err; |
515 | unsigned int level; | 515 | unsigned int level; |
516 | struct page *kpte_page; | ||
517 | pte_t *kpte, old_pte; | 516 | pte_t *kpte, old_pte; |
518 | 517 | ||
519 | repeat: | 518 | repeat: |
@@ -532,10 +531,6 @@ repeat: | |||
532 | return -EINVAL; | 531 | return -EINVAL; |
533 | } | 532 | } |
534 | 533 | ||
535 | kpte_page = virt_to_page(kpte); | ||
536 | BUG_ON(PageLRU(kpte_page)); | ||
537 | BUG_ON(PageCompound(kpte_page)); | ||
538 | |||
539 | if (level == PG_LEVEL_4K) { | 534 | if (level == PG_LEVEL_4K) { |
540 | pte_t new_pte; | 535 | pte_t new_pte; |
541 | pgprot_t new_prot = pte_pgprot(old_pte); | 536 | pgprot_t new_prot = pte_pgprot(old_pte); |
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c index ecd91ea8a8ae..845001c617cc 100644 --- a/arch/x86/mm/srat_64.c +++ b/arch/x86/mm/srat_64.c | |||
@@ -166,7 +166,8 @@ static inline int save_add_info(void) {return 0;} | |||
166 | * Both SPARSE and RESERVE need nodes_add information. | 166 | * Both SPARSE and RESERVE need nodes_add information. |
167 | * This code supports one contiguous hot add area per node. | 167 | * This code supports one contiguous hot add area per node. |
168 | */ | 168 | */ |
169 | static int reserve_hotadd(int node, unsigned long start, unsigned long end) | 169 | static int __init |
170 | reserve_hotadd(int node, unsigned long start, unsigned long end) | ||
170 | { | 171 | { |
171 | unsigned long s_pfn = start >> PAGE_SHIFT; | 172 | unsigned long s_pfn = start >> PAGE_SHIFT; |
172 | unsigned long e_pfn = end >> PAGE_SHIFT; | 173 | unsigned long e_pfn = end >> PAGE_SHIFT; |
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index b7c67a187b6b..7b6e3bb9b28c 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -541,7 +541,7 @@ void pcibios_disable_device (struct pci_dev *dev) | |||
541 | pcibios_disable_irq(dev); | 541 | pcibios_disable_irq(dev); |
542 | } | 542 | } |
543 | 543 | ||
544 | struct pci_bus *pci_scan_bus_with_sysdata(int busno) | 544 | struct pci_bus *__devinit pci_scan_bus_with_sysdata(int busno) |
545 | { | 545 | { |
546 | struct pci_bus *bus = NULL; | 546 | struct pci_bus *bus = NULL; |
547 | struct pci_sysdata *sd; | 547 | struct pci_sysdata *sd; |
diff --git a/arch/x86/power/hibernate_asm_64.S b/arch/x86/power/hibernate_asm_64.S index 1deb3244b99b..000415947d93 100644 --- a/arch/x86/power/hibernate_asm_64.S +++ b/arch/x86/power/hibernate_asm_64.S | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <asm/segment.h> | 20 | #include <asm/segment.h> |
21 | #include <asm/page.h> | 21 | #include <asm/page.h> |
22 | #include <asm/asm-offsets.h> | 22 | #include <asm/asm-offsets.h> |
23 | #include <asm/processor-flags.h> | ||
23 | 24 | ||
24 | ENTRY(swsusp_arch_suspend) | 25 | ENTRY(swsusp_arch_suspend) |
25 | movq $saved_context, %rax | 26 | movq $saved_context, %rax |
@@ -60,7 +61,7 @@ ENTRY(restore_image) | |||
60 | /* Flush TLB */ | 61 | /* Flush TLB */ |
61 | movq mmu_cr4_features(%rip), %rax | 62 | movq mmu_cr4_features(%rip), %rax |
62 | movq %rax, %rdx | 63 | movq %rax, %rdx |
63 | andq $~(1<<7), %rdx # PGE | 64 | andq $~(X86_CR4_PGE), %rdx |
64 | movq %rdx, %cr4; # turn off PGE | 65 | movq %rdx, %cr4; # turn off PGE |
65 | movq %cr3, %rcx; # flush TLB | 66 | movq %cr3, %rcx; # flush TLB |
66 | movq %rcx, %cr3; | 67 | movq %rcx, %cr3; |
@@ -112,7 +113,7 @@ ENTRY(restore_registers) | |||
112 | /* Flush TLB, including "global" things (vmalloc) */ | 113 | /* Flush TLB, including "global" things (vmalloc) */ |
113 | movq mmu_cr4_features(%rip), %rax | 114 | movq mmu_cr4_features(%rip), %rax |
114 | movq %rax, %rdx | 115 | movq %rax, %rdx |
115 | andq $~(1<<7), %rdx; # PGE | 116 | andq $~(X86_CR4_PGE), %rdx |
116 | movq %rdx, %cr4; # turn off PGE | 117 | movq %rdx, %cr4; # turn off PGE |
117 | movq %cr3, %rcx; # flush TLB | 118 | movq %cr3, %rcx; # flush TLB |
118 | movq %rcx, %cr3 | 119 | movq %rcx, %cr3 |
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 56685a883347..4bd1e14c6b90 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -59,7 +59,7 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | |||
59 | head-y := arch/xtensa/kernel/head.o | 59 | head-y := arch/xtensa/kernel/head.o |
60 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ | 60 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ |
61 | ifneq ($(PLATFORM),) | 61 | ifneq ($(PLATFORM),) |
62 | core-y += arch/xtensa/platform-$(PLATFORM)/ | 62 | core-y += arch/xtensa/platforms/$(PLATFORM)/ |
63 | endif | 63 | endif |
64 | libs-y += arch/xtensa/lib/ $(LIBGCC) | 64 | libs-y += arch/xtensa/lib/ $(LIBGCC) |
65 | 65 | ||
diff --git a/arch/xtensa/boot/boot-elf/Makefile b/arch/xtensa/boot/boot-elf/Makefile index 734db7f76583..08e8814f8c71 100644 --- a/arch/xtensa/boot/boot-elf/Makefile +++ b/arch/xtensa/boot/boot-elf/Makefile | |||
@@ -14,25 +14,26 @@ OBJCOPY_ARGS := -O elf32-xtensa-le | |||
14 | endif | 14 | endif |
15 | 15 | ||
16 | export OBJCOPY_ARGS | 16 | export OBJCOPY_ARGS |
17 | export CPPFLAGS_boot.lds += -P -C | ||
17 | 18 | ||
18 | boot-y := bootstrap.o | 19 | boot-y := bootstrap.o |
19 | 20 | ||
20 | OBJS := $(addprefix $(obj)/,$(boot-y)) | 21 | OBJS := $(addprefix $(obj)/,$(boot-y)) |
21 | 22 | ||
22 | Image: vmlinux $(OBJS) | 23 | Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds |
23 | $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ | 24 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ |
24 | vmlinux vmlinux.tmp | 25 | vmlinux vmlinux.tmp |
25 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | 26 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
26 | --add-section image=vmlinux.tmp \ | 27 | --add-section image=vmlinux.tmp \ |
27 | --set-section-flags image=contents,alloc,load,load,data \ | 28 | --set-section-flags image=contents,alloc,load,load,data \ |
28 | $(OBJS) $@.tmp | 29 | $(OBJS) $@.tmp |
29 | $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ | 30 | $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ |
30 | -T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \ | 31 | -T arch/$(ARCH)/boot/boot-elf/boot.lds \ |
31 | -o arch/$(ARCH)/boot/$@.elf $@.tmp | 32 | -o arch/$(ARCH)/boot/$@.elf $@.tmp |
32 | rm -f $@.tmp vmlinux.tmp | 33 | rm -f $@.tmp vmlinux.tmp |
33 | 34 | ||
34 | Image.initrd: vmlinux $(OBJS) | 35 | Image.initrd: vmlinux $(OBJS) |
35 | $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ | 36 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ |
36 | --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ | 37 | --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ |
37 | --set-section-flags .initrd=contents,alloc,load,load,data \ | 38 | --set-section-flags .initrd=contents,alloc,load,load,data \ |
38 | vmlinux vmlinux.tmp | 39 | vmlinux vmlinux.tmp |
diff --git a/arch/xtensa/boot/boot-elf/boot.ld b/arch/xtensa/boot/boot-elf/boot.lds.S index 4ab06a0a7a6b..849dfcafd518 100644 --- a/arch/xtensa/boot/boot-elf/boot.ld +++ b/arch/xtensa/boot/boot-elf/boot.lds.S | |||
@@ -1,4 +1,6 @@ | |||
1 | #include <asm/variant/core.h> | ||
1 | OUTPUT_ARCH(xtensa) | 2 | OUTPUT_ARCH(xtensa) |
3 | ENTRY(_ResetVector) | ||
2 | 4 | ||
3 | SECTIONS | 5 | SECTIONS |
4 | { | 6 | { |
@@ -61,7 +63,7 @@ SECTIONS | |||
61 | _end = .; | 63 | _end = .; |
62 | _param_start = .; | 64 | _param_start = .; |
63 | 65 | ||
64 | .ResetVector.text 0xfe000020 : | 66 | .ResetVector.text XCHAL_RESET_VECTOR_VADDR : |
65 | { | 67 | { |
66 | *(.ResetVector.text) | 68 | *(.ResetVector.text) |
67 | } | 69 | } |
diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index 74d15d08077b..872029b84435 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile | |||
@@ -22,7 +22,7 @@ LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a | |||
22 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 22 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
23 | 23 | ||
24 | zImage: vmlinux $(OBJS) $(LIBS) | 24 | zImage: vmlinux $(OBJS) $(LIBS) |
25 | $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ | 25 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ |
26 | vmlinux vmlinux.tmp | 26 | vmlinux vmlinux.tmp |
27 | gzip -vf9 vmlinux.tmp | 27 | gzip -vf9 vmlinux.tmp |
28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | 28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
diff --git a/arch/xtensa/boot/boot-redboot/boot.ld b/arch/xtensa/boot/boot-redboot/boot.ld index 65b726410e8a..774db20d11f7 100644 --- a/arch/xtensa/boot/boot-redboot/boot.ld +++ b/arch/xtensa/boot/boot-redboot/boot.ld | |||
@@ -2,7 +2,7 @@ OUTPUT_ARCH(xtensa) | |||
2 | 2 | ||
3 | SECTIONS | 3 | SECTIONS |
4 | { | 4 | { |
5 | .start 0xD0200000 : { *(.start) } | 5 | .start 0xD1000000 : { *(.start) } |
6 | 6 | ||
7 | .text : | 7 | .text : |
8 | { | 8 | { |
diff --git a/arch/xtensa/kernel/asm-offsets.c b/arch/xtensa/kernel/asm-offsets.c index d5ffe7b6443e..ef63adadf7f4 100644 --- a/arch/xtensa/kernel/asm-offsets.c +++ b/arch/xtensa/kernel/asm-offsets.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
22 | 22 | ||
23 | #include <asm/ptrace.h> | 23 | #include <asm/ptrace.h> |
24 | #include <asm/processor.h> | ||
25 | #include <asm/uaccess.h> | 24 | #include <asm/uaccess.h> |
26 | 25 | ||
27 | #define DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | 26 | #define DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
@@ -64,6 +63,8 @@ int main(void) | |||
64 | DEFINE(PT_SIZE, sizeof(struct pt_regs)); | 63 | DEFINE(PT_SIZE, sizeof(struct pt_regs)); |
65 | DEFINE(PT_AREG_END, offsetof (struct pt_regs, areg[XCHAL_NUM_AREGS])); | 64 | DEFINE(PT_AREG_END, offsetof (struct pt_regs, areg[XCHAL_NUM_AREGS])); |
66 | DEFINE(PT_USER_SIZE, offsetof(struct pt_regs, areg[XCHAL_NUM_AREGS])); | 65 | DEFINE(PT_USER_SIZE, offsetof(struct pt_regs, areg[XCHAL_NUM_AREGS])); |
66 | DEFINE(PT_XTREGS_OPT, offsetof(struct pt_regs, xtregs_opt)); | ||
67 | DEFINE(XTREGS_OPT_SIZE, sizeof(xtregs_opt_t)); | ||
67 | 68 | ||
68 | /* struct task_struct */ | 69 | /* struct task_struct */ |
69 | DEFINE(TASK_PTRACE, offsetof (struct task_struct, ptrace)); | 70 | DEFINE(TASK_PTRACE, offsetof (struct task_struct, ptrace)); |
@@ -77,7 +78,19 @@ int main(void) | |||
77 | /* struct thread_info (offset from start_struct) */ | 78 | /* struct thread_info (offset from start_struct) */ |
78 | DEFINE(THREAD_RA, offsetof (struct task_struct, thread.ra)); | 79 | DEFINE(THREAD_RA, offsetof (struct task_struct, thread.ra)); |
79 | DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp)); | 80 | DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp)); |
80 | DEFINE(THREAD_CP_SAVE, offsetof (struct task_struct, thread.cp_save)); | 81 | DEFINE(THREAD_CPENABLE, offsetof (struct thread_info, cpenable)); |
82 | #if XTENSA_HAVE_COPROCESSORS | ||
83 | DEFINE(THREAD_XTREGS_CP0, offsetof (struct thread_info, xtregs_cp)); | ||
84 | DEFINE(THREAD_XTREGS_CP1, offsetof (struct thread_info, xtregs_cp)); | ||
85 | DEFINE(THREAD_XTREGS_CP2, offsetof (struct thread_info, xtregs_cp)); | ||
86 | DEFINE(THREAD_XTREGS_CP3, offsetof (struct thread_info, xtregs_cp)); | ||
87 | DEFINE(THREAD_XTREGS_CP4, offsetof (struct thread_info, xtregs_cp)); | ||
88 | DEFINE(THREAD_XTREGS_CP5, offsetof (struct thread_info, xtregs_cp)); | ||
89 | DEFINE(THREAD_XTREGS_CP6, offsetof (struct thread_info, xtregs_cp)); | ||
90 | DEFINE(THREAD_XTREGS_CP7, offsetof (struct thread_info, xtregs_cp)); | ||
91 | #endif | ||
92 | DEFINE(THREAD_XTREGS_USER, offsetof (struct thread_info, xtregs_user)); | ||
93 | DEFINE(XTREGS_USER_SIZE, sizeof(xtregs_user_t)); | ||
81 | DEFINE(THREAD_CURRENT_DS, offsetof (struct task_struct, thread.current_ds)); | 94 | DEFINE(THREAD_CURRENT_DS, offsetof (struct task_struct, thread.current_ds)); |
82 | 95 | ||
83 | /* struct mm_struct */ | 96 | /* struct mm_struct */ |
diff --git a/arch/xtensa/kernel/coprocessor.S b/arch/xtensa/kernel/coprocessor.S index 01bcb9fcfcbd..2bc1e145c0a4 100644 --- a/arch/xtensa/kernel/coprocessor.S +++ b/arch/xtensa/kernel/coprocessor.S | |||
@@ -8,193 +8,328 @@ | |||
8 | * License. See the file "COPYING" in the main directory of this archive | 8 | * License. See the file "COPYING" in the main directory of this archive |
9 | * for more details. | 9 | * for more details. |
10 | * | 10 | * |
11 | * Copyright (C) 2003 - 2005 Tensilica Inc. | 11 | * Copyright (C) 2003 - 2007 Tensilica Inc. |
12 | * | ||
13 | * Marc Gauthier <marc@tensilica.com> <marc@alumni.uwaterloo.ca> | ||
14 | */ | 12 | */ |
15 | 13 | ||
16 | /* | ||
17 | * This module contains a table that describes the layout of the various | ||
18 | * custom registers and states associated with each coprocessor, as well | ||
19 | * as those not associated with any coprocessor ("extra state"). | ||
20 | * This table is included with core dumps and is available via the ptrace | ||
21 | * interface, allowing the layout of such register/state information to | ||
22 | * be modified in the kernel without affecting the debugger. Each | ||
23 | * register or state is identified using a 32-bit "libdb target number" | ||
24 | * assigned when the Xtensa processor is generated. | ||
25 | */ | ||
26 | 14 | ||
27 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <asm/asm-offsets.h> | ||
28 | #include <asm/processor.h> | 17 | #include <asm/processor.h> |
18 | #include <asm/coprocessor.h> | ||
19 | #include <asm/thread_info.h> | ||
20 | #include <asm/uaccess.h> | ||
21 | #include <asm/unistd.h> | ||
22 | #include <asm/ptrace.h> | ||
23 | #include <asm/current.h> | ||
24 | #include <asm/pgtable.h> | ||
25 | #include <asm/page.h> | ||
26 | #include <asm/signal.h> | ||
27 | #include <asm/tlbflush.h> | ||
29 | 28 | ||
30 | #if XCHAL_HAVE_CP | 29 | /* |
30 | * Entry condition: | ||
31 | * | ||
32 | * a0: trashed, original value saved on stack (PT_AREG0) | ||
33 | * a1: a1 | ||
34 | * a2: new stack pointer, original in DEPC | ||
35 | * a3: dispatch table | ||
36 | * depc: a2, original value saved on stack (PT_DEPC) | ||
37 | * excsave_1: a3 | ||
38 | * | ||
39 | * PT_DEPC >= VALID_DOUBLE_EXCEPTION_ADDRESS: double exception, DEPC | ||
40 | * < VALID_DOUBLE_EXCEPTION_ADDRESS: regular exception | ||
41 | */ | ||
31 | 42 | ||
32 | #define CP_LAST ((XCHAL_CP_MAX - 1) * COPROCESSOR_INFO_SIZE) | 43 | /* IO protection is currently unsupported. */ |
33 | 44 | ||
34 | ENTRY(release_coprocessors) | 45 | ENTRY(fast_io_protect) |
46 | wsr a0, EXCSAVE_1 | ||
47 | movi a0, unrecoverable_exception | ||
48 | callx0 a0 | ||
35 | 49 | ||
36 | entry a1, 16 | 50 | #if XTENSA_HAVE_COPROCESSORS |
37 | # a2: task | ||
38 | movi a3, 1 << XCHAL_CP_MAX # a3: coprocessor-bit | ||
39 | movi a4, coprocessor_info+CP_LAST # a4: owner-table | ||
40 | # a5: tmp | ||
41 | movi a6, 0 # a6: 0 | ||
42 | rsil a7, LOCKLEVEL # a7: PS | ||
43 | 51 | ||
44 | 1: /* Check if task is coprocessor owner of coprocessor[i]. */ | 52 | /* |
53 | * Macros for lazy context switch. | ||
54 | */ | ||
45 | 55 | ||
46 | l32i a5, a4, COPROCESSOR_INFO_OWNER | 56 | #define SAVE_CP_REGS(x) \ |
47 | srli a3, a3, 1 | 57 | .align 4; \ |
48 | beqz a3, 1f | 58 | .Lsave_cp_regs_cp##x: \ |
49 | addi a4, a4, -8 | 59 | .if XTENSA_HAVE_COPROCESSOR(x); \ |
50 | beq a2, a5, 1b | 60 | xchal_cp##x##_store a2 a4 a5 a6 a7; \ |
61 | .endif; \ | ||
62 | jx a0 | ||
51 | 63 | ||
52 | /* Found an entry: Clear entry CPENABLE bit to disable CP. */ | 64 | #define SAVE_CP_REGS_TAB(x) \ |
65 | .if XTENSA_HAVE_COPROCESSOR(x); \ | ||
66 | .long .Lsave_cp_regs_cp##x - .Lsave_cp_regs_jump_table; \ | ||
67 | .else; \ | ||
68 | .long 0; \ | ||
69 | .endif; \ | ||
70 | .long THREAD_XTREGS_CP##x | ||
53 | 71 | ||
54 | rsr a5, CPENABLE | ||
55 | s32i a6, a4, COPROCESSOR_INFO_OWNER | ||
56 | xor a5, a3, a5 | ||
57 | wsr a5, CPENABLE | ||
58 | 72 | ||
59 | bnez a3, 1b | 73 | #define LOAD_CP_REGS(x) \ |
74 | .align 4; \ | ||
75 | .Lload_cp_regs_cp##x: \ | ||
76 | .if XTENSA_HAVE_COPROCESSOR(x); \ | ||
77 | xchal_cp##x##_load a2 a4 a5 a6 a7; \ | ||
78 | .endif; \ | ||
79 | jx a0 | ||
60 | 80 | ||
61 | 1: wsr a7, PS | 81 | #define LOAD_CP_REGS_TAB(x) \ |
62 | rsync | 82 | .if XTENSA_HAVE_COPROCESSOR(x); \ |
63 | retw | 83 | .long .Lload_cp_regs_cp##x - .Lload_cp_regs_jump_table; \ |
84 | .else; \ | ||
85 | .long 0; \ | ||
86 | .endif; \ | ||
87 | .long THREAD_XTREGS_CP##x | ||
64 | 88 | ||
89 | SAVE_CP_REGS(0) | ||
90 | SAVE_CP_REGS(1) | ||
91 | SAVE_CP_REGS(2) | ||
92 | SAVE_CP_REGS(3) | ||
93 | SAVE_CP_REGS(4) | ||
94 | SAVE_CP_REGS(5) | ||
95 | SAVE_CP_REGS(6) | ||
96 | SAVE_CP_REGS(7) | ||
65 | 97 | ||
66 | ENTRY(disable_coprocessor) | 98 | LOAD_CP_REGS(0) |
67 | entry sp, 16 | 99 | LOAD_CP_REGS(1) |
68 | rsil a7, LOCKLEVEL | 100 | LOAD_CP_REGS(2) |
69 | rsr a3, CPENABLE | 101 | LOAD_CP_REGS(3) |
70 | movi a4, 1 | 102 | LOAD_CP_REGS(4) |
71 | ssl a2 | 103 | LOAD_CP_REGS(5) |
72 | sll a4, a4 | 104 | LOAD_CP_REGS(6) |
73 | and a4, a3, a4 | 105 | LOAD_CP_REGS(7) |
74 | xor a3, a3, a4 | ||
75 | wsr a3, CPENABLE | ||
76 | wsr a7, PS | ||
77 | rsync | ||
78 | retw | ||
79 | 106 | ||
80 | ENTRY(enable_coprocessor) | 107 | .align 4 |
81 | entry sp, 16 | 108 | .Lsave_cp_regs_jump_table: |
82 | rsil a7, LOCKLEVEL | 109 | SAVE_CP_REGS_TAB(0) |
83 | rsr a3, CPENABLE | 110 | SAVE_CP_REGS_TAB(1) |
84 | movi a4, 1 | 111 | SAVE_CP_REGS_TAB(2) |
85 | ssl a2 | 112 | SAVE_CP_REGS_TAB(3) |
86 | sll a4, a4 | 113 | SAVE_CP_REGS_TAB(4) |
87 | or a3, a3, a4 | 114 | SAVE_CP_REGS_TAB(5) |
88 | wsr a3, CPENABLE | 115 | SAVE_CP_REGS_TAB(6) |
89 | wsr a7, PS | 116 | SAVE_CP_REGS_TAB(7) |
90 | rsync | ||
91 | retw | ||
92 | 117 | ||
118 | .Lload_cp_regs_jump_table: | ||
119 | LOAD_CP_REGS_TAB(0) | ||
120 | LOAD_CP_REGS_TAB(1) | ||
121 | LOAD_CP_REGS_TAB(2) | ||
122 | LOAD_CP_REGS_TAB(3) | ||
123 | LOAD_CP_REGS_TAB(4) | ||
124 | LOAD_CP_REGS_TAB(5) | ||
125 | LOAD_CP_REGS_TAB(6) | ||
126 | LOAD_CP_REGS_TAB(7) | ||
93 | 127 | ||
94 | ENTRY(save_coprocessor_extra) | 128 | /* |
95 | entry sp, 16 | 129 | * coprocessor_save(buffer, index) |
96 | xchal_extra_store_funcbody | 130 | * a2 a3 |
97 | retw | 131 | * coprocessor_load(buffer, index) |
132 | * a2 a3 | ||
133 | * | ||
134 | * Save or load coprocessor registers for coprocessor 'index'. | ||
135 | * The register values are saved to or loaded from them 'buffer' address. | ||
136 | * | ||
137 | * Note that these functions don't update the coprocessor_owner information! | ||
138 | * | ||
139 | */ | ||
98 | 140 | ||
99 | ENTRY(restore_coprocessor_extra) | 141 | ENTRY(coprocessor_save) |
100 | entry sp, 16 | 142 | entry a1, 32 |
101 | xchal_extra_load_funcbody | 143 | s32i a0, a1, 0 |
144 | movi a0, .Lsave_cp_regs_jump_table | ||
145 | addx8 a3, a3, a0 | ||
146 | l32i a3, a3, 0 | ||
147 | beqz a3, 1f | ||
148 | add a0, a0, a3 | ||
149 | callx0 a0 | ||
150 | 1: l32i a0, a1, 0 | ||
102 | retw | 151 | retw |
103 | 152 | ||
104 | ENTRY(save_coprocessor_registers) | 153 | ENTRY(coprocessor_load) |
105 | entry sp, 16 | 154 | entry a1, 32 |
106 | xchal_cpi_store_funcbody | 155 | s32i a0, a1, 0 |
156 | movi a0, .Lload_cp_regs_jump_table | ||
157 | addx4 a3, a3, a0 | ||
158 | l32i a3, a3, 0 | ||
159 | beqz a3, 1f | ||
160 | add a0, a0, a3 | ||
161 | callx0 a0 | ||
162 | 1: l32i a0, a1, 0 | ||
107 | retw | 163 | retw |
108 | 164 | ||
109 | ENTRY(restore_coprocessor_registers) | 165 | /* |
110 | entry sp, 16 | 166 | * coprocessor_flush(struct task_info*, index) |
111 | xchal_cpi_load_funcbody | 167 | * a2 a3 |
168 | * coprocessor_restore(struct task_info*, index) | ||
169 | * a2 a3 | ||
170 | * | ||
171 | * Save or load coprocessor registers for coprocessor 'index'. | ||
172 | * The register values are saved to or loaded from the coprocessor area | ||
173 | * inside the task_info structure. | ||
174 | * | ||
175 | * Note that these functions don't update the coprocessor_owner information! | ||
176 | * | ||
177 | */ | ||
178 | |||
179 | |||
180 | ENTRY(coprocessor_flush) | ||
181 | entry a1, 32 | ||
182 | s32i a0, a1, 0 | ||
183 | movi a0, .Lsave_cp_regs_jump_table | ||
184 | addx8 a3, a3, a0 | ||
185 | l32i a4, a3, 4 | ||
186 | l32i a3, a3, 0 | ||
187 | add a2, a2, a4 | ||
188 | beqz a3, 1f | ||
189 | add a0, a0, a3 | ||
190 | callx0 a0 | ||
191 | 1: l32i a0, a1, 0 | ||
112 | retw | 192 | retw |
113 | 193 | ||
194 | ENTRY(coprocessor_restore) | ||
195 | entry a1, 32 | ||
196 | s32i a0, a1, 0 | ||
197 | movi a0, .Lload_cp_regs_jump_table | ||
198 | addx4 a3, a3, a0 | ||
199 | l32i a4, a3, 4 | ||
200 | l32i a3, a3, 0 | ||
201 | add a2, a2, a4 | ||
202 | beqz a3, 1f | ||
203 | add a0, a0, a3 | ||
204 | callx0 a0 | ||
205 | 1: l32i a0, a1, 0 | ||
206 | retw | ||
114 | 207 | ||
115 | /* | 208 | /* |
116 | * The Xtensa compile-time HAL (core.h) XCHAL_*_SA_CONTENTS_LIBDB macros | 209 | * Entry condition: |
117 | * describe the contents of coprocessor & extra save areas in terms of | ||
118 | * undefined CONTENTS_LIBDB_{SREG,UREG,REGF} macros. We define these | ||
119 | * latter macros here; they expand into a table of the format we want. | ||
120 | * The general format is: | ||
121 | * | 210 | * |
122 | * CONTENTS_LIBDB_SREG(libdbnum, offset, size, align, rsv1, name, sregnum, | 211 | * a0: trashed, original value saved on stack (PT_AREG0) |
123 | * bitmask, rsv2, rsv3) | 212 | * a1: a1 |
124 | * CONTENTS_LIBDB_UREG(libdbnum, offset, size, align, rsv1, name, uregnum, | 213 | * a2: new stack pointer, original in DEPC |
125 | * bitmask, rsv2, rsv3) | 214 | * a3: dispatch table |
126 | * CONTENTS_LIBDB_REGF(libdbnum, offset, size, align, rsv1, name, index, | 215 | * depc: a2, original value saved on stack (PT_DEPC) |
127 | * numentries, contentsize, regname_base, | 216 | * excsave_1: a3 |
128 | * regfile_name, rsv2, rsv3) | ||
129 | * | 217 | * |
130 | * For this table, we only care about the <libdbnum>, <offset> and <size> | 218 | * PT_DEPC >= VALID_DOUBLE_EXCEPTION_ADDRESS: double exception, DEPC |
131 | * fields. | 219 | * < VALID_DOUBLE_EXCEPTION_ADDRESS: regular exception |
132 | */ | 220 | */ |
133 | 221 | ||
134 | /* Map all XCHAL CONTENTS macros to the reg_entry asm macro defined below: */ | 222 | ENTRY(fast_coprocessor_double) |
135 | 223 | wsr a0, EXCSAVE_1 | |
136 | #define CONTENTS_LIBDB_SREG(libdbnum,offset,size,align,rsv1,name,sregnum, \ | 224 | movi a0, unrecoverable_exception |
137 | bitmask, rsv2, rsv3) \ | 225 | callx0 a0 |
138 | reg_entry libdbnum, offset, size ; | ||
139 | #define CONTENTS_LIBDB_UREG(libdbnum,offset,size,align,rsv1,name,uregnum, \ | ||
140 | bitmask, rsv2, rsv3) \ | ||
141 | reg_entry libdbnum, offset, size ; | ||
142 | #define CONTENTS_LIBDB_REGF(libdbnum, offset, size, align, rsv1, name, index, \ | ||
143 | numentries, contentsize, regname_base, \ | ||
144 | regfile_name, rsv2, rsv3) \ | ||
145 | reg_entry libdbnum, offset, size ; | ||
146 | |||
147 | /* A single table entry: */ | ||
148 | .macro reg_entry libdbnum, offset, size | ||
149 | .ifne (__last_offset-(__last_group_offset+\offset)) | ||
150 | /* padding entry */ | ||
151 | .word (0xFC000000+__last_offset-(__last_group_offset+\offset)) | ||
152 | .endif | ||
153 | .word \libdbnum /* actual entry */ | ||
154 | .set __last_offset, __last_group_offset+\offset+\size | ||
155 | .endm /* reg_entry */ | ||
156 | |||
157 | |||
158 | /* Table entry that marks the beginning of a group (coprocessor or "extra"): */ | ||
159 | .macro reg_group cpnum, num_entries, align | ||
160 | .set __last_group_offset, (__last_offset + \align- 1) & -\align | ||
161 | .ifne \num_entries | ||
162 | .word 0xFD000000+(\cpnum<<16)+\num_entries | ||
163 | .endif | ||
164 | .endm /* reg_group */ | ||
165 | 226 | ||
166 | /* | ||
167 | * Register info tables. | ||
168 | */ | ||
169 | 227 | ||
170 | .section .rodata, "a" | 228 | ENTRY(fast_coprocessor) |
171 | .globl _xtensa_reginfo_tables | 229 | |
172 | .globl _xtensa_reginfo_table_size | 230 | /* Save remaining registers a1-a3 and SAR */ |
173 | .align 4 | 231 | |
174 | _xtensa_reginfo_table_size: | 232 | xsr a3, EXCSAVE_1 |
175 | .word _xtensa_reginfo_table_end - _xtensa_reginfo_tables | 233 | s32i a3, a2, PT_AREG3 |
176 | 234 | rsr a3, SAR | |
177 | _xtensa_reginfo_tables: | 235 | s32i a1, a2, PT_AREG1 |
178 | .set __last_offset, 0 | 236 | s32i a3, a2, PT_SAR |
179 | reg_group 0xFF, XCHAL_EXTRA_SA_CONTENTS_LIBDB_NUM, XCHAL_EXTRA_SA_ALIGN | 237 | mov a1, a2 |
180 | XCHAL_EXTRA_SA_CONTENTS_LIBDB | 238 | rsr a2, DEPC |
181 | reg_group 0, XCHAL_CP0_SA_CONTENTS_LIBDB_NUM, XCHAL_CP0_SA_ALIGN | 239 | s32i a2, a1, PT_AREG2 |
182 | XCHAL_CP0_SA_CONTENTS_LIBDB | 240 | |
183 | reg_group 1, XCHAL_CP1_SA_CONTENTS_LIBDB_NUM, XCHAL_CP1_SA_ALIGN | 241 | /* |
184 | XCHAL_CP1_SA_CONTENTS_LIBDB | 242 | * The hal macros require up to 4 temporary registers. We use a3..a6. |
185 | reg_group 2, XCHAL_CP2_SA_CONTENTS_LIBDB_NUM, XCHAL_CP2_SA_ALIGN | 243 | */ |
186 | XCHAL_CP2_SA_CONTENTS_LIBDB | 244 | |
187 | reg_group 3, XCHAL_CP3_SA_CONTENTS_LIBDB_NUM, XCHAL_CP3_SA_ALIGN | 245 | s32i a4, a1, PT_AREG4 |
188 | XCHAL_CP3_SA_CONTENTS_LIBDB | 246 | s32i a5, a1, PT_AREG5 |
189 | reg_group 4, XCHAL_CP4_SA_CONTENTS_LIBDB_NUM, XCHAL_CP4_SA_ALIGN | 247 | s32i a6, a1, PT_AREG6 |
190 | XCHAL_CP4_SA_CONTENTS_LIBDB | 248 | |
191 | reg_group 5, XCHAL_CP5_SA_CONTENTS_LIBDB_NUM, XCHAL_CP5_SA_ALIGN | 249 | /* Find coprocessor number. Subtract first CP EXCCAUSE from EXCCAUSE */ |
192 | XCHAL_CP5_SA_CONTENTS_LIBDB | 250 | |
193 | reg_group 6, XCHAL_CP6_SA_CONTENTS_LIBDB_NUM, XCHAL_CP6_SA_ALIGN | 251 | rsr a3, EXCCAUSE |
194 | XCHAL_CP6_SA_CONTENTS_LIBDB | 252 | addi a3, a3, -EXCCAUSE_COPROCESSOR0_DISABLED |
195 | reg_group 7, XCHAL_CP7_SA_CONTENTS_LIBDB_NUM, XCHAL_CP7_SA_ALIGN | 253 | |
196 | XCHAL_CP7_SA_CONTENTS_LIBDB | 254 | /* Set corresponding CPENABLE bit -> (sar:cp-index, a3: 1<<cp-index)*/ |
197 | .word 0xFC000000 /* invalid register number,marks end of table*/ | 255 | |
198 | _xtensa_reginfo_table_end: | 256 | ssl a3 # SAR: 32 - coprocessor_number |
199 | #endif | 257 | movi a2, 1 |
258 | rsr a0, CPENABLE | ||
259 | sll a2, a2 | ||
260 | or a0, a0, a2 | ||
261 | wsr a0, CPENABLE | ||
262 | rsync | ||
263 | |||
264 | /* Retrieve previous owner. (a3 still holds CP number) */ | ||
265 | |||
266 | movi a0, coprocessor_owner # list of owners | ||
267 | addx4 a0, a3, a0 # entry for CP | ||
268 | l32i a4, a0, 0 | ||
269 | |||
270 | beqz a4, 1f # skip 'save' if no previous owner | ||
271 | |||
272 | /* Disable coprocessor for previous owner. (a2 = 1 << CP number) */ | ||
273 | |||
274 | l32i a5, a4, THREAD_CPENABLE | ||
275 | xor a5, a5, a2 # (1 << cp-id) still in a2 | ||
276 | s32i a5, a4, THREAD_CPENABLE | ||
277 | |||
278 | /* | ||
279 | * Get context save area and 'call' save routine. | ||
280 | * (a4 still holds previous owner (thread_info), a3 CP number) | ||
281 | */ | ||
282 | |||
283 | movi a5, .Lsave_cp_regs_jump_table | ||
284 | movi a0, 2f # a0: 'return' address | ||
285 | addx8 a3, a3, a5 # a3: coprocessor number | ||
286 | l32i a2, a3, 4 # a2: xtregs offset | ||
287 | l32i a3, a3, 0 # a3: jump offset | ||
288 | add a2, a2, a4 | ||
289 | add a4, a3, a5 # a4: address of save routine | ||
290 | jx a4 | ||
291 | |||
292 | /* Note that only a0 and a1 were preserved. */ | ||
293 | |||
294 | 2: rsr a3, EXCCAUSE | ||
295 | addi a3, a3, -EXCCAUSE_COPROCESSOR0_DISABLED | ||
296 | movi a0, coprocessor_owner | ||
297 | addx4 a0, a3, a0 | ||
298 | |||
299 | /* Set new 'owner' (a0 points to the CP owner, a3 contains the CP nr) */ | ||
300 | |||
301 | 1: GET_THREAD_INFO (a4, a1) | ||
302 | s32i a4, a0, 0 | ||
303 | |||
304 | /* Get context save area and 'call' load routine. */ | ||
305 | |||
306 | movi a5, .Lload_cp_regs_jump_table | ||
307 | movi a0, 1f | ||
308 | addx8 a3, a3, a5 | ||
309 | l32i a2, a3, 4 # a2: xtregs offset | ||
310 | l32i a3, a3, 0 # a3: jump offset | ||
311 | add a2, a2, a4 | ||
312 | add a4, a3, a5 | ||
313 | jx a4 | ||
314 | |||
315 | /* Restore all registers and return from exception handler. */ | ||
316 | |||
317 | 1: l32i a6, a1, PT_AREG6 | ||
318 | l32i a5, a1, PT_AREG5 | ||
319 | l32i a4, a1, PT_AREG4 | ||
320 | |||
321 | l32i a0, a1, PT_SAR | ||
322 | l32i a3, a1, PT_AREG3 | ||
323 | l32i a2, a1, PT_AREG2 | ||
324 | wsr a0, SAR | ||
325 | l32i a0, a1, PT_AREG0 | ||
326 | l32i a1, a1, PT_AREG1 | ||
327 | |||
328 | rfe | ||
329 | |||
330 | .data | ||
331 | ENTRY(coprocessor_owner) | ||
332 | .fill XCHAL_CP_MAX, 4, 0 | ||
333 | |||
334 | #endif /* XTENSA_HAVE_COPROCESSORS */ | ||
200 | 335 | ||
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index 91a689eca43d..dfd35dcc1cb5 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S | |||
@@ -25,10 +25,10 @@ | |||
25 | #include <asm/page.h> | 25 | #include <asm/page.h> |
26 | #include <asm/signal.h> | 26 | #include <asm/signal.h> |
27 | #include <asm/tlbflush.h> | 27 | #include <asm/tlbflush.h> |
28 | #include <asm/variant/tie-asm.h> | ||
28 | 29 | ||
29 | /* Unimplemented features. */ | 30 | /* Unimplemented features. */ |
30 | 31 | ||
31 | #undef SIGNAL_HANDLING_IN_DOUBLE_EXCEPTION | ||
32 | #undef KERNEL_STACK_OVERFLOW_CHECK | 32 | #undef KERNEL_STACK_OVERFLOW_CHECK |
33 | #undef PREEMPTIBLE_KERNEL | 33 | #undef PREEMPTIBLE_KERNEL |
34 | #undef ALLOCA_EXCEPTION_IN_IRAM | 34 | #undef ALLOCA_EXCEPTION_IN_IRAM |
@@ -214,19 +214,7 @@ _user_exception: | |||
214 | 214 | ||
215 | /* We are back to the original stack pointer (a1) */ | 215 | /* We are back to the original stack pointer (a1) */ |
216 | 216 | ||
217 | 2: | 217 | 2: /* Now, jump to the common exception handler. */ |
218 | #if XCHAL_EXTRA_SA_SIZE | ||
219 | |||
220 | /* For user exceptions, save the extra state into the user's TCB. | ||
221 | * Note: We must assume that xchal_extra_store_funcbody destroys a2..a15 | ||
222 | */ | ||
223 | |||
224 | GET_CURRENT(a2,a1) | ||
225 | addi a2, a2, THREAD_CP_SAVE | ||
226 | xchal_extra_store_funcbody | ||
227 | #endif | ||
228 | |||
229 | /* Now, jump to the common exception handler. */ | ||
230 | 218 | ||
231 | j common_exception | 219 | j common_exception |
232 | 220 | ||
@@ -382,6 +370,10 @@ common_exception: | |||
382 | s32i a2, a1, PT_LBEG | 370 | s32i a2, a1, PT_LBEG |
383 | s32i a3, a1, PT_LEND | 371 | s32i a3, a1, PT_LEND |
384 | 372 | ||
373 | /* Save optional registers. */ | ||
374 | |||
375 | save_xtregs_opt a1 a2 a4 a5 a6 a7 PT_XTREGS_OPT | ||
376 | |||
385 | /* Go to second-level dispatcher. Set up parameters to pass to the | 377 | /* Go to second-level dispatcher. Set up parameters to pass to the |
386 | * exception handler and call the exception handler. | 378 | * exception handler and call the exception handler. |
387 | */ | 379 | */ |
@@ -403,74 +395,49 @@ common_exception_return: | |||
403 | /* Jump if we are returning from kernel exceptions. */ | 395 | /* Jump if we are returning from kernel exceptions. */ |
404 | 396 | ||
405 | 1: l32i a3, a1, PT_PS | 397 | 1: l32i a3, a1, PT_PS |
406 | _bbsi.l a3, PS_UM_BIT, 2f | 398 | _bbci.l a3, PS_UM_BIT, 4f |
407 | j kernel_exception_exit | ||
408 | 399 | ||
409 | /* Specific to a user exception exit: | 400 | /* Specific to a user exception exit: |
410 | * We need to check some flags for signal handling and rescheduling, | 401 | * We need to check some flags for signal handling and rescheduling, |
411 | * and have to restore WB and WS, extra states, and all registers | 402 | * and have to restore WB and WS, extra states, and all registers |
412 | * in the register file that were in use in the user task. | 403 | * in the register file that were in use in the user task. |
413 | */ | 404 | * Note that we don't disable interrupts here. |
414 | |||
415 | 2: wsr a3, PS /* disable interrupts */ | ||
416 | |||
417 | /* Check for signals (keep interrupts disabled while we read TI_FLAGS) | ||
418 | * Note: PS.INTLEVEL = 0, PS.EXCM = 1 | ||
419 | */ | 405 | */ |
420 | 406 | ||
421 | GET_THREAD_INFO(a2,a1) | 407 | GET_THREAD_INFO(a2,a1) |
422 | l32i a4, a2, TI_FLAGS | 408 | l32i a4, a2, TI_FLAGS |
423 | 409 | ||
424 | /* Enable interrupts again. | ||
425 | * Note: When we get here, we certainly have handled any interrupts. | ||
426 | * (Hint: There is only one user exception frame on stack) | ||
427 | */ | ||
428 | |||
429 | movi a3, 1 << PS_WOE_BIT | ||
430 | |||
431 | _bbsi.l a4, TIF_NEED_RESCHED, 3f | 410 | _bbsi.l a4, TIF_NEED_RESCHED, 3f |
432 | _bbci.l a4, TIF_SIGPENDING, 4f | 411 | _bbci.l a4, TIF_SIGPENDING, 4f |
433 | 412 | ||
434 | #ifndef SIGNAL_HANDLING_IN_DOUBLE_EXCEPTION | ||
435 | l32i a4, a1, PT_DEPC | 413 | l32i a4, a1, PT_DEPC |
436 | bgeui a4, VALID_DOUBLE_EXCEPTION_ADDRESS, 4f | 414 | bgeui a4, VALID_DOUBLE_EXCEPTION_ADDRESS, 4f |
437 | #endif | ||
438 | 415 | ||
439 | /* Reenable interrupts and call do_signal() */ | 416 | /* Call do_signal() */ |
440 | 417 | ||
441 | wsr a3, PS | ||
442 | movi a4, do_signal # int do_signal(struct pt_regs*, sigset_t*) | 418 | movi a4, do_signal # int do_signal(struct pt_regs*, sigset_t*) |
443 | mov a6, a1 | 419 | mov a6, a1 |
444 | movi a7, 0 | 420 | movi a7, 0 |
445 | callx4 a4 | 421 | callx4 a4 |
446 | j 1b | 422 | j 1b |
447 | 423 | ||
448 | 3: /* Reenable interrupts and reschedule */ | 424 | 3: /* Reschedule */ |
449 | 425 | ||
450 | wsr a3, PS | ||
451 | movi a4, schedule # void schedule (void) | 426 | movi a4, schedule # void schedule (void) |
452 | callx4 a4 | 427 | callx4 a4 |
453 | j 1b | 428 | j 1b |
454 | 429 | ||
455 | /* Restore the state of the task and return from the exception. */ | 430 | 4: /* Restore optional registers. */ |
456 | |||
457 | 4: /* a2 holds GET_CURRENT(a2,a1) */ | ||
458 | |||
459 | #if XCHAL_EXTRA_SA_SIZE | ||
460 | 431 | ||
461 | /* For user exceptions, restore the extra state from the user's TCB. */ | 432 | load_xtregs_opt a1 a2 a4 a5 a6 a7 PT_XTREGS_OPT |
462 | 433 | ||
463 | /* Note: a2 still contains GET_CURRENT(a2,a1) */ | 434 | wsr a3, PS /* disable interrupts */ |
464 | addi a2, a2, THREAD_CP_SAVE | ||
465 | xchal_extra_load_funcbody | ||
466 | 435 | ||
467 | /* We must assume that xchal_extra_store_funcbody destroys | 436 | _bbci.l a3, PS_UM_BIT, kernel_exception_exit |
468 | * registers a2..a15. FIXME, this list can eventually be | ||
469 | * reduced once real register requirements of the macro are | ||
470 | * finalized. */ | ||
471 | 437 | ||
472 | #endif /* XCHAL_EXTRA_SA_SIZE */ | 438 | user_exception_exit: |
473 | 439 | ||
440 | /* Restore the state of the task and return from the exception. */ | ||
474 | 441 | ||
475 | /* Switch to the user thread WINDOWBASE. Save SP temporarily in DEPC */ | 442 | /* Switch to the user thread WINDOWBASE. Save SP temporarily in DEPC */ |
476 | 443 | ||
@@ -536,10 +503,6 @@ common_exception_return: | |||
536 | 503 | ||
537 | kernel_exception_exit: | 504 | kernel_exception_exit: |
538 | 505 | ||
539 | /* Disable interrupts (a3 holds PT_PS) */ | ||
540 | |||
541 | wsr a3, PS | ||
542 | |||
543 | #ifdef PREEMPTIBLE_KERNEL | 506 | #ifdef PREEMPTIBLE_KERNEL |
544 | 507 | ||
545 | #ifdef CONFIG_PREEMPT | 508 | #ifdef CONFIG_PREEMPT |
@@ -618,6 +581,8 @@ kernel_exception_exit: | |||
618 | 581 | ||
619 | common_exception_exit: | 582 | common_exception_exit: |
620 | 583 | ||
584 | /* Restore address registers. */ | ||
585 | |||
621 | _bbsi.l a2, 1, 1f | 586 | _bbsi.l a2, 1, 1f |
622 | l32i a4, a1, PT_AREG4 | 587 | l32i a4, a1, PT_AREG4 |
623 | l32i a5, a1, PT_AREG5 | 588 | l32i a5, a1, PT_AREG5 |
@@ -1150,7 +1115,6 @@ CATCH | |||
1150 | * excsave_1: a3 | 1115 | * excsave_1: a3 |
1151 | * | 1116 | * |
1152 | * Note: We assume the stack pointer is EXC_TABLE_KSTK in the fixup handler. | 1117 | * Note: We assume the stack pointer is EXC_TABLE_KSTK in the fixup handler. |
1153 | * Note: We don't need to save a2 in depc (return value) | ||
1154 | */ | 1118 | */ |
1155 | 1119 | ||
1156 | ENTRY(fast_syscall_spill_registers) | 1120 | ENTRY(fast_syscall_spill_registers) |
@@ -1166,29 +1130,31 @@ ENTRY(fast_syscall_spill_registers) | |||
1166 | 1130 | ||
1167 | rsr a0, SAR | 1131 | rsr a0, SAR |
1168 | xsr a3, EXCSAVE_1 # restore a3 and excsave_1 | 1132 | xsr a3, EXCSAVE_1 # restore a3 and excsave_1 |
1169 | s32i a0, a2, PT_AREG4 # store SAR to PT_AREG4 | ||
1170 | s32i a3, a2, PT_AREG3 | 1133 | s32i a3, a2, PT_AREG3 |
1134 | s32i a4, a2, PT_AREG4 | ||
1135 | s32i a0, a2, PT_AREG5 # store SAR to PT_AREG5 | ||
1171 | 1136 | ||
1172 | /* The spill routine might clobber a7, a11, and a15. */ | 1137 | /* The spill routine might clobber a7, a11, and a15. */ |
1173 | 1138 | ||
1174 | s32i a7, a2, PT_AREG5 | 1139 | s32i a7, a2, PT_AREG7 |
1175 | s32i a11, a2, PT_AREG6 | 1140 | s32i a11, a2, PT_AREG11 |
1176 | s32i a15, a2, PT_AREG7 | 1141 | s32i a15, a2, PT_AREG15 |
1177 | 1142 | ||
1178 | call0 _spill_registers # destroys a3, DEPC, and SAR | 1143 | call0 _spill_registers # destroys a3, a4, and SAR |
1179 | 1144 | ||
1180 | /* Advance PC, restore registers and SAR, and return from exception. */ | 1145 | /* Advance PC, restore registers and SAR, and return from exception. */ |
1181 | 1146 | ||
1182 | l32i a3, a2, PT_AREG4 | 1147 | l32i a3, a2, PT_AREG5 |
1148 | l32i a4, a2, PT_AREG4 | ||
1183 | l32i a0, a2, PT_AREG0 | 1149 | l32i a0, a2, PT_AREG0 |
1184 | wsr a3, SAR | 1150 | wsr a3, SAR |
1185 | l32i a3, a2, PT_AREG3 | 1151 | l32i a3, a2, PT_AREG3 |
1186 | 1152 | ||
1187 | /* Restore clobbered registers. */ | 1153 | /* Restore clobbered registers. */ |
1188 | 1154 | ||
1189 | l32i a7, a2, PT_AREG5 | 1155 | l32i a7, a2, PT_AREG7 |
1190 | l32i a11, a2, PT_AREG6 | 1156 | l32i a11, a2, PT_AREG11 |
1191 | l32i a15, a2, PT_AREG7 | 1157 | l32i a15, a2, PT_AREG15 |
1192 | 1158 | ||
1193 | movi a2, 0 | 1159 | movi a2, 0 |
1194 | rfe | 1160 | rfe |
@@ -1247,16 +1213,6 @@ fast_syscall_spill_registers_fixup: | |||
1247 | * Note: This frame might be the same as above. | 1213 | * Note: This frame might be the same as above. |
1248 | */ | 1214 | */ |
1249 | 1215 | ||
1250 | #ifdef SIGNAL_HANDLING_IN_DOUBLE_EXCEPTION | ||
1251 | /* Restore registers we precautiously saved. | ||
1252 | * We have the value of the 'right' a3 | ||
1253 | */ | ||
1254 | |||
1255 | l32i a7, a2, PT_AREG5 | ||
1256 | l32i a11, a2, PT_AREG6 | ||
1257 | l32i a15, a2, PT_AREG7 | ||
1258 | #endif | ||
1259 | |||
1260 | /* Setup stack pointer. */ | 1216 | /* Setup stack pointer. */ |
1261 | 1217 | ||
1262 | addi a2, a2, -PT_USER_SIZE | 1218 | addi a2, a2, -PT_USER_SIZE |
@@ -1271,9 +1227,9 @@ fast_syscall_spill_registers_fixup: | |||
1271 | 1227 | ||
1272 | movi a3, exc_table | 1228 | movi a3, exc_table |
1273 | rsr a0, EXCCAUSE | 1229 | rsr a0, EXCCAUSE |
1274 | addx4 a0, a0, a3 # find entry in table | 1230 | addx4 a0, a0, a3 # find entry in table |
1275 | l32i a0, a0, EXC_TABLE_FAST_USER # load handler | 1231 | l32i a0, a0, EXC_TABLE_FAST_USER # load handler |
1276 | jx a0 | 1232 | jx a0 |
1277 | 1233 | ||
1278 | fast_syscall_spill_registers_fixup_return: | 1234 | fast_syscall_spill_registers_fixup_return: |
1279 | 1235 | ||
@@ -1290,14 +1246,6 @@ fast_syscall_spill_registers_fixup_return: | |||
1290 | s32i a2, a3, EXC_TABLE_PARAM | 1246 | s32i a2, a3, EXC_TABLE_PARAM |
1291 | l32i a2, a3, EXC_TABLE_KSTK | 1247 | l32i a2, a3, EXC_TABLE_KSTK |
1292 | 1248 | ||
1293 | #ifdef SIGNAL_HANDLING_IN_DOUBLE_EXCEPTION | ||
1294 | /* Save registers again that might be clobbered. */ | ||
1295 | |||
1296 | s32i a7, a2, PT_AREG5 | ||
1297 | s32i a11, a2, PT_AREG6 | ||
1298 | s32i a15, a2, PT_AREG7 | ||
1299 | #endif | ||
1300 | |||
1301 | /* Load WB at the time the exception occurred. */ | 1249 | /* Load WB at the time the exception occurred. */ |
1302 | 1250 | ||
1303 | rsr a3, SAR # WB is still in SAR | 1251 | rsr a3, SAR # WB is still in SAR |
@@ -1319,7 +1267,7 @@ fast_syscall_spill_registers_fixup_return: | |||
1319 | * This is not a real function. The following conditions must be met: | 1267 | * This is not a real function. The following conditions must be met: |
1320 | * | 1268 | * |
1321 | * - must be called with call0. | 1269 | * - must be called with call0. |
1322 | * - uses DEPC, a3 and SAR. | 1270 | * - uses a3, a4 and SAR. |
1323 | * - the last 'valid' register of each frame are clobbered. | 1271 | * - the last 'valid' register of each frame are clobbered. |
1324 | * - the caller must have registered a fixup handler | 1272 | * - the caller must have registered a fixup handler |
1325 | * (or be inside a critical section) | 1273 | * (or be inside a critical section) |
@@ -1331,41 +1279,39 @@ ENTRY(_spill_registers) | |||
1331 | /* | 1279 | /* |
1332 | * Rotate ws so that the current windowbase is at bit 0. | 1280 | * Rotate ws so that the current windowbase is at bit 0. |
1333 | * Assume ws = xxxwww1yy (www1 current window frame). | 1281 | * Assume ws = xxxwww1yy (www1 current window frame). |
1334 | * Rotate ws right so that a2 = yyxxxwww1. | 1282 | * Rotate ws right so that a4 = yyxxxwww1. |
1335 | */ | 1283 | */ |
1336 | 1284 | ||
1337 | wsr a2, DEPC # preserve a2 | 1285 | rsr a4, WINDOWBASE |
1338 | rsr a2, WINDOWBASE | 1286 | rsr a3, WINDOWSTART # a3 = xxxwww1yy |
1339 | rsr a3, WINDOWSTART | 1287 | ssr a4 # holds WB |
1340 | ssr a2 # holds WB | 1288 | slli a4, a3, WSBITS |
1341 | slli a2, a3, WSBITS | 1289 | or a3, a3, a4 # a3 = xxxwww1yyxxxwww1yy |
1342 | or a3, a3, a2 # a2 = xxxwww1yyxxxwww1yy | 1290 | srl a3, a3 # a3 = 00xxxwww1yyxxxwww1 |
1343 | srl a3, a3 | ||
1344 | 1291 | ||
1345 | /* We are done if there are no more than the current register frame. */ | 1292 | /* We are done if there are no more than the current register frame. */ |
1346 | 1293 | ||
1347 | extui a3, a3, 1, WSBITS-2 # a3 = 0yyxxxwww | 1294 | extui a3, a3, 1, WSBITS-1 # a3 = 0yyxxxwww |
1348 | movi a2, (1 << (WSBITS-1)) | 1295 | movi a4, (1 << (WSBITS-1)) |
1349 | _beqz a3, .Lnospill # only one active frame? jump | 1296 | _beqz a3, .Lnospill # only one active frame? jump |
1350 | 1297 | ||
1351 | /* We want 1 at the top, so that we return to the current windowbase */ | 1298 | /* We want 1 at the top, so that we return to the current windowbase */ |
1352 | 1299 | ||
1353 | or a3, a3, a2 # 1yyxxxwww | 1300 | or a3, a3, a4 # 1yyxxxwww |
1354 | 1301 | ||
1355 | /* Skip empty frames - get 'oldest' WINDOWSTART-bit. */ | 1302 | /* Skip empty frames - get 'oldest' WINDOWSTART-bit. */ |
1356 | 1303 | ||
1357 | wsr a3, WINDOWSTART # save shifted windowstart | 1304 | wsr a3, WINDOWSTART # save shifted windowstart |
1358 | neg a2, a3 | 1305 | neg a4, a3 |
1359 | and a3, a2, a3 # first bit set from right: 000010000 | 1306 | and a3, a4, a3 # first bit set from right: 000010000 |
1360 | 1307 | ||
1361 | ffs_ws a2, a3 # a2: shifts to skip empty frames | 1308 | ffs_ws a4, a3 # a4: shifts to skip empty frames |
1362 | movi a3, WSBITS | 1309 | movi a3, WSBITS |
1363 | sub a2, a3, a2 # WSBITS-a2:number of 0-bits from right | 1310 | sub a4, a3, a4 # WSBITS-a4:number of 0-bits from right |
1364 | ssr a2 # save in SAR for later. | 1311 | ssr a4 # save in SAR for later. |
1365 | 1312 | ||
1366 | rsr a3, WINDOWBASE | 1313 | rsr a3, WINDOWBASE |
1367 | add a3, a3, a2 | 1314 | add a3, a3, a4 |
1368 | rsr a2, DEPC # restore a2 | ||
1369 | wsr a3, WINDOWBASE | 1315 | wsr a3, WINDOWBASE |
1370 | rsync | 1316 | rsync |
1371 | 1317 | ||
@@ -1394,6 +1340,9 @@ ENTRY(_spill_registers) | |||
1394 | l32e a4, a1, -16 | 1340 | l32e a4, a1, -16 |
1395 | j .Lc12c | 1341 | j .Lc12c |
1396 | 1342 | ||
1343 | .Lnospill: | ||
1344 | ret | ||
1345 | |||
1397 | .Lloop: _bbsi.l a3, 1, .Lc4 | 1346 | .Lloop: _bbsi.l a3, 1, .Lc4 |
1398 | _bbci.l a3, 2, .Lc12 | 1347 | _bbci.l a3, 2, .Lc12 |
1399 | 1348 | ||
@@ -1419,9 +1368,7 @@ ENTRY(_spill_registers) | |||
1419 | movi a3, 1 | 1368 | movi a3, 1 |
1420 | sll a3, a3 | 1369 | sll a3, a3 |
1421 | wsr a3, WINDOWSTART | 1370 | wsr a3, WINDOWSTART |
1422 | 1371 | ret | |
1423 | .Lnospill: | ||
1424 | jx a0 | ||
1425 | 1372 | ||
1426 | .Lc4: s32e a4, a9, -16 | 1373 | .Lc4: s32e a4, a9, -16 |
1427 | s32e a5, a9, -12 | 1374 | s32e a5, a9, -12 |
@@ -1830,154 +1777,6 @@ ENTRY(fast_store_prohibited) | |||
1830 | 1: j _user_exception | 1777 | 1: j _user_exception |
1831 | 1778 | ||
1832 | 1779 | ||
1833 | #if XCHAL_EXTRA_SA_SIZE | ||
1834 | |||
1835 | #warning fast_coprocessor untested | ||
1836 | |||
1837 | /* | ||
1838 | * Entry condition: | ||
1839 | * | ||
1840 | * a0: trashed, original value saved on stack (PT_AREG0) | ||
1841 | * a1: a1 | ||
1842 | * a2: new stack pointer, original in DEPC | ||
1843 | * a3: dispatch table | ||
1844 | * depc: a2, original value saved on stack (PT_DEPC) | ||
1845 | * excsave_1: a3 | ||
1846 | * | ||
1847 | * PT_DEPC >= VALID_DOUBLE_EXCEPTION_ADDRESS: double exception, DEPC | ||
1848 | * < VALID_DOUBLE_EXCEPTION_ADDRESS: regular exception | ||
1849 | */ | ||
1850 | |||
1851 | ENTRY(fast_coprocessor_double) | ||
1852 | wsr a0, EXCSAVE_1 | ||
1853 | movi a0, unrecoverable_exception | ||
1854 | callx0 a0 | ||
1855 | |||
1856 | ENTRY(fast_coprocessor) | ||
1857 | |||
1858 | /* Fatal if we are in a double exception. */ | ||
1859 | |||
1860 | l32i a0, a2, PT_DEPC | ||
1861 | _bgeui a0, VALID_DOUBLE_EXCEPTION_ADDRESS, fast_coprocessor_double | ||
1862 | |||
1863 | /* Save some registers a1, a3, a4, SAR */ | ||
1864 | |||
1865 | xsr a3, EXCSAVE_1 | ||
1866 | s32i a3, a2, PT_AREG3 | ||
1867 | rsr a3, SAR | ||
1868 | s32i a4, a2, PT_AREG4 | ||
1869 | s32i a1, a2, PT_AREG1 | ||
1870 | s32i a5, a1, PT_AREG5 | ||
1871 | s32i a3, a2, PT_SAR | ||
1872 | mov a1, a2 | ||
1873 | |||
1874 | /* Currently, the HAL macros only guarantee saving a0 and a1. | ||
1875 | * These can and will be refined in the future, but for now, | ||
1876 | * just save the remaining registers of a2...a15. | ||
1877 | */ | ||
1878 | s32i a6, a1, PT_AREG6 | ||
1879 | s32i a7, a1, PT_AREG7 | ||
1880 | s32i a8, a1, PT_AREG8 | ||
1881 | s32i a9, a1, PT_AREG9 | ||
1882 | s32i a10, a1, PT_AREG10 | ||
1883 | s32i a11, a1, PT_AREG11 | ||
1884 | s32i a12, a1, PT_AREG12 | ||
1885 | s32i a13, a1, PT_AREG13 | ||
1886 | s32i a14, a1, PT_AREG14 | ||
1887 | s32i a15, a1, PT_AREG15 | ||
1888 | |||
1889 | /* Find coprocessor number. Subtract first CP EXCCAUSE from EXCCAUSE */ | ||
1890 | |||
1891 | rsr a0, EXCCAUSE | ||
1892 | addi a3, a0, -XCHAL_EXCCAUSE_COPROCESSOR0_DISABLED | ||
1893 | |||
1894 | /* Set corresponding CPENABLE bit */ | ||
1895 | |||
1896 | movi a4, 1 | ||
1897 | ssl a3 # SAR: 32 - coprocessor_number | ||
1898 | rsr a5, CPENABLE | ||
1899 | sll a4, a4 | ||
1900 | or a4, a5, a4 | ||
1901 | wsr a4, CPENABLE | ||
1902 | rsync | ||
1903 | movi a5, coprocessor_info # list of owner and offset into cp_save | ||
1904 | addx8 a0, a4, a5 # entry for CP | ||
1905 | |||
1906 | bne a4, a5, .Lload # bit wasn't set before, cp not in use | ||
1907 | |||
1908 | /* Now compare the current task with the owner of the coprocessor. | ||
1909 | * If they are the same, there is no reason to save or restore any | ||
1910 | * coprocessor state. Having already enabled the coprocessor, | ||
1911 | * branch ahead to return. | ||
1912 | */ | ||
1913 | GET_CURRENT(a5,a1) | ||
1914 | l32i a4, a0, COPROCESSOR_INFO_OWNER # a4: current owner for this CP | ||
1915 | beq a4, a5, .Ldone | ||
1916 | |||
1917 | /* Find location to dump current coprocessor state: | ||
1918 | * task_struct->task_cp_save_offset + coprocessor_offset[coprocessor] | ||
1919 | * | ||
1920 | * Note: a0 pointer to the entry in the coprocessor owner table, | ||
1921 | * a3 coprocessor number, | ||
1922 | * a4 current owner of coprocessor. | ||
1923 | */ | ||
1924 | l32i a5, a0, COPROCESSOR_INFO_OFFSET | ||
1925 | addi a2, a4, THREAD_CP_SAVE | ||
1926 | add a2, a2, a5 | ||
1927 | |||
1928 | /* Store current coprocessor states. (a5 still has CP number) */ | ||
1929 | |||
1930 | xchal_cpi_store_funcbody | ||
1931 | |||
1932 | /* The macro might have destroyed a3 (coprocessor number), but | ||
1933 | * SAR still has 32 - coprocessor_number! | ||
1934 | */ | ||
1935 | movi a3, 32 | ||
1936 | rsr a4, SAR | ||
1937 | sub a3, a3, a4 | ||
1938 | |||
1939 | .Lload: /* A new task now owns the corpocessors. Save its TCB pointer into | ||
1940 | * the coprocessor owner table. | ||
1941 | * | ||
1942 | * Note: a0 pointer to the entry in the coprocessor owner table, | ||
1943 | * a3 coprocessor number. | ||
1944 | */ | ||
1945 | GET_CURRENT(a4,a1) | ||
1946 | s32i a4, a0, 0 | ||
1947 | |||
1948 | /* Find location from where to restore the current coprocessor state.*/ | ||
1949 | |||
1950 | l32i a5, a0, COPROCESSOR_INFO_OFFSET | ||
1951 | addi a2, a4, THREAD_CP_SAVE | ||
1952 | add a2, a2, a4 | ||
1953 | |||
1954 | xchal_cpi_load_funcbody | ||
1955 | |||
1956 | /* We must assume that the xchal_cpi_store_funcbody macro destroyed | ||
1957 | * registers a2..a15. | ||
1958 | */ | ||
1959 | |||
1960 | .Ldone: l32i a15, a1, PT_AREG15 | ||
1961 | l32i a14, a1, PT_AREG14 | ||
1962 | l32i a13, a1, PT_AREG13 | ||
1963 | l32i a12, a1, PT_AREG12 | ||
1964 | l32i a11, a1, PT_AREG11 | ||
1965 | l32i a10, a1, PT_AREG10 | ||
1966 | l32i a9, a1, PT_AREG9 | ||
1967 | l32i a8, a1, PT_AREG8 | ||
1968 | l32i a7, a1, PT_AREG7 | ||
1969 | l32i a6, a1, PT_AREG6 | ||
1970 | l32i a5, a1, PT_AREG5 | ||
1971 | l32i a4, a1, PT_AREG4 | ||
1972 | l32i a3, a1, PT_AREG3 | ||
1973 | l32i a2, a1, PT_AREG2 | ||
1974 | l32i a0, a1, PT_AREG0 | ||
1975 | l32i a1, a1, PT_AREG1 | ||
1976 | |||
1977 | rfe | ||
1978 | |||
1979 | #endif /* XCHAL_EXTRA_SA_SIZE */ | ||
1980 | |||
1981 | /* | 1780 | /* |
1982 | * System Calls. | 1781 | * System Calls. |
1983 | * | 1782 | * |
@@ -2086,20 +1885,36 @@ ENTRY(_switch_to) | |||
2086 | 1885 | ||
2087 | entry a1, 16 | 1886 | entry a1, 16 |
2088 | 1887 | ||
2089 | mov a4, a3 # preserve a3 | 1888 | mov a12, a2 # preserve 'prev' (a2) |
1889 | mov a13, a3 # and 'next' (a3) | ||
1890 | |||
1891 | l32i a4, a2, TASK_THREAD_INFO | ||
1892 | l32i a5, a3, TASK_THREAD_INFO | ||
1893 | |||
1894 | save_xtregs_user a4 a6 a8 a9 a10 a11 THREAD_XTREGS_USER | ||
2090 | 1895 | ||
2091 | s32i a0, a2, THREAD_RA # save return address | 1896 | s32i a0, a12, THREAD_RA # save return address |
2092 | s32i a1, a2, THREAD_SP # save stack pointer | 1897 | s32i a1, a12, THREAD_SP # save stack pointer |
2093 | 1898 | ||
2094 | /* Disable ints while we manipulate the stack pointer; spill regs. */ | 1899 | /* Disable ints while we manipulate the stack pointer. */ |
2095 | 1900 | ||
2096 | movi a5, (1 << PS_EXCM_BIT) | LOCKLEVEL | 1901 | movi a14, (1 << PS_EXCM_BIT) | LOCKLEVEL |
2097 | xsr a5, PS | 1902 | xsr a14, PS |
2098 | rsr a3, EXCSAVE_1 | 1903 | rsr a3, EXCSAVE_1 |
2099 | rsync | 1904 | rsync |
2100 | s32i a3, a3, EXC_TABLE_FIXUP /* enter critical section */ | 1905 | s32i a3, a3, EXC_TABLE_FIXUP /* enter critical section */ |
2101 | 1906 | ||
2102 | call0 _spill_registers | 1907 | /* Switch CPENABLE */ |
1908 | |||
1909 | #if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS) | ||
1910 | l32i a3, a5, THREAD_CPENABLE | ||
1911 | xsr a3, CPENABLE | ||
1912 | s32i a3, a4, THREAD_CPENABLE | ||
1913 | #endif | ||
1914 | |||
1915 | /* Flush register file. */ | ||
1916 | |||
1917 | call0 _spill_registers # destroys a3, a4, and SAR | ||
2103 | 1918 | ||
2104 | /* Set kernel stack (and leave critical section) | 1919 | /* Set kernel stack (and leave critical section) |
2105 | * Note: It's save to set it here. The stack will not be overwritten | 1920 | * Note: It's save to set it here. The stack will not be overwritten |
@@ -2107,19 +1922,21 @@ ENTRY(_switch_to) | |||
2107 | * we return from kernel space. | 1922 | * we return from kernel space. |
2108 | */ | 1923 | */ |
2109 | 1924 | ||
2110 | l32i a0, a4, TASK_THREAD_INFO | ||
2111 | rsr a3, EXCSAVE_1 # exc_table | 1925 | rsr a3, EXCSAVE_1 # exc_table |
2112 | movi a1, 0 | 1926 | movi a6, 0 |
2113 | addi a0, a0, PT_REGS_OFFSET | 1927 | addi a7, a5, PT_REGS_OFFSET |
2114 | s32i a1, a3, EXC_TABLE_FIXUP | 1928 | s32i a6, a3, EXC_TABLE_FIXUP |
2115 | s32i a0, a3, EXC_TABLE_KSTK | 1929 | s32i a7, a3, EXC_TABLE_KSTK |
2116 | 1930 | ||
2117 | /* restore context of the task that 'next' addresses */ | 1931 | /* restore context of the task that 'next' addresses */ |
2118 | 1932 | ||
2119 | l32i a0, a4, THREAD_RA /* restore return address */ | 1933 | l32i a0, a13, THREAD_RA # restore return address |
2120 | l32i a1, a4, THREAD_SP /* restore stack pointer */ | 1934 | l32i a1, a13, THREAD_SP # restore stack pointer |
1935 | |||
1936 | load_xtregs_user a5 a6 a8 a9 a10 a11 THREAD_XTREGS_USER | ||
2121 | 1937 | ||
2122 | wsr a5, PS | 1938 | wsr a14, PS |
1939 | mov a2, a12 # return 'prev' | ||
2123 | rsync | 1940 | rsync |
2124 | 1941 | ||
2125 | retw | 1942 | retw |
diff --git a/arch/xtensa/kernel/module.c b/arch/xtensa/kernel/module.c index ddf14dcf2ad9..3981a466c779 100644 --- a/arch/xtensa/kernel/module.c +++ b/arch/xtensa/kernel/module.c | |||
@@ -28,7 +28,7 @@ void *module_alloc(unsigned long size) | |||
28 | { | 28 | { |
29 | if (size == 0) | 29 | if (size == 0) |
30 | return NULL; | 30 | return NULL; |
31 | return vmalloc(size); | 31 | return vmalloc_exec(size); |
32 | } | 32 | } |
33 | 33 | ||
34 | void module_free(struct module *mod, void *module_region) | 34 | void module_free(struct module *mod, void *module_region) |
diff --git a/arch/xtensa/kernel/process.c b/arch/xtensa/kernel/process.c index f53d7bd9dfb2..9185597eb6a0 100644 --- a/arch/xtensa/kernel/process.c +++ b/arch/xtensa/kernel/process.c | |||
@@ -52,6 +52,55 @@ void (*pm_power_off)(void) = NULL; | |||
52 | EXPORT_SYMBOL(pm_power_off); | 52 | EXPORT_SYMBOL(pm_power_off); |
53 | 53 | ||
54 | 54 | ||
55 | #if XTENSA_HAVE_COPROCESSORS | ||
56 | |||
57 | void coprocessor_release_all(struct thread_info *ti) | ||
58 | { | ||
59 | unsigned long cpenable; | ||
60 | int i; | ||
61 | |||
62 | /* Make sure we don't switch tasks during this operation. */ | ||
63 | |||
64 | preempt_disable(); | ||
65 | |||
66 | /* Walk through all cp owners and release it for the requested one. */ | ||
67 | |||
68 | cpenable = ti->cpenable; | ||
69 | |||
70 | for (i = 0; i < XCHAL_CP_MAX; i++) { | ||
71 | if (coprocessor_owner[i] == ti) { | ||
72 | coprocessor_owner[i] = 0; | ||
73 | cpenable &= ~(1 << i); | ||
74 | } | ||
75 | } | ||
76 | |||
77 | ti->cpenable = cpenable; | ||
78 | coprocessor_clear_cpenable(); | ||
79 | |||
80 | preempt_enable(); | ||
81 | } | ||
82 | |||
83 | void coprocessor_flush_all(struct thread_info *ti) | ||
84 | { | ||
85 | unsigned long cpenable; | ||
86 | int i; | ||
87 | |||
88 | preempt_disable(); | ||
89 | |||
90 | cpenable = ti->cpenable; | ||
91 | |||
92 | for (i = 0; i < XCHAL_CP_MAX; i++) { | ||
93 | if ((cpenable & 1) != 0 && coprocessor_owner[i] == ti) | ||
94 | coprocessor_flush(ti, i); | ||
95 | cpenable >>= 1; | ||
96 | } | ||
97 | |||
98 | preempt_enable(); | ||
99 | } | ||
100 | |||
101 | #endif | ||
102 | |||
103 | |||
55 | /* | 104 | /* |
56 | * Powermanagement idle function, if any is provided by the platform. | 105 | * Powermanagement idle function, if any is provided by the platform. |
57 | */ | 106 | */ |
@@ -71,15 +120,36 @@ void cpu_idle(void) | |||
71 | } | 120 | } |
72 | 121 | ||
73 | /* | 122 | /* |
74 | * Free current thread data structures etc.. | 123 | * This is called when the thread calls exit(). |
75 | */ | 124 | */ |
76 | |||
77 | void exit_thread(void) | 125 | void exit_thread(void) |
78 | { | 126 | { |
127 | #if XTENSA_HAVE_COPROCESSORS | ||
128 | coprocessor_release_all(current_thread_info()); | ||
129 | #endif | ||
79 | } | 130 | } |
80 | 131 | ||
132 | /* | ||
133 | * Flush thread state. This is called when a thread does an execve() | ||
134 | * Note that we flush coprocessor registers for the case execve fails. | ||
135 | */ | ||
81 | void flush_thread(void) | 136 | void flush_thread(void) |
82 | { | 137 | { |
138 | #if XTENSA_HAVE_COPROCESSORS | ||
139 | struct thread_info *ti = current_thread_info(); | ||
140 | coprocessor_flush_all(ti); | ||
141 | coprocessor_release_all(ti); | ||
142 | #endif | ||
143 | } | ||
144 | |||
145 | /* | ||
146 | * This is called before the thread is copied. | ||
147 | */ | ||
148 | void prepare_to_copy(struct task_struct *tsk) | ||
149 | { | ||
150 | #if XTENSA_HAVE_COPROCESSORS | ||
151 | coprocessor_flush_all(task_thread_info(tsk)); | ||
152 | #endif | ||
83 | } | 153 | } |
84 | 154 | ||
85 | /* | 155 | /* |
@@ -107,6 +177,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
107 | struct task_struct * p, struct pt_regs * regs) | 177 | struct task_struct * p, struct pt_regs * regs) |
108 | { | 178 | { |
109 | struct pt_regs *childregs; | 179 | struct pt_regs *childregs; |
180 | struct thread_info *ti; | ||
110 | unsigned long tos; | 181 | unsigned long tos; |
111 | int user_mode = user_mode(regs); | 182 | int user_mode = user_mode(regs); |
112 | 183 | ||
@@ -128,13 +199,14 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
128 | p->set_child_tid = p->clear_child_tid = NULL; | 199 | p->set_child_tid = p->clear_child_tid = NULL; |
129 | p->thread.ra = MAKE_RA_FOR_CALL((unsigned long)ret_from_fork, 0x1); | 200 | p->thread.ra = MAKE_RA_FOR_CALL((unsigned long)ret_from_fork, 0x1); |
130 | p->thread.sp = (unsigned long)childregs; | 201 | p->thread.sp = (unsigned long)childregs; |
202 | |||
131 | if (user_mode(regs)) { | 203 | if (user_mode(regs)) { |
132 | 204 | ||
133 | int len = childregs->wmask & ~0xf; | 205 | int len = childregs->wmask & ~0xf; |
134 | childregs->areg[1] = usp; | 206 | childregs->areg[1] = usp; |
135 | memcpy(&childregs->areg[XCHAL_NUM_AREGS - len/4], | 207 | memcpy(&childregs->areg[XCHAL_NUM_AREGS - len/4], |
136 | ®s->areg[XCHAL_NUM_AREGS - len/4], len); | 208 | ®s->areg[XCHAL_NUM_AREGS - len/4], len); |
137 | 209 | // FIXME: we need to set THREADPTR in thread_info... | |
138 | if (clone_flags & CLONE_SETTLS) | 210 | if (clone_flags & CLONE_SETTLS) |
139 | childregs->areg[2] = childregs->areg[6]; | 211 | childregs->areg[2] = childregs->areg[6]; |
140 | 212 | ||
@@ -142,6 +214,12 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
142 | /* In kernel space, we start a new thread with a new stack. */ | 214 | /* In kernel space, we start a new thread with a new stack. */ |
143 | childregs->wmask = 1; | 215 | childregs->wmask = 1; |
144 | } | 216 | } |
217 | |||
218 | #if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS) | ||
219 | ti = task_thread_info(p); | ||
220 | ti->cpenable = 0; | ||
221 | #endif | ||
222 | |||
145 | return 0; | 223 | return 0; |
146 | } | 224 | } |
147 | 225 | ||
@@ -179,10 +257,6 @@ unsigned long get_wchan(struct task_struct *p) | |||
179 | } | 257 | } |
180 | 258 | ||
181 | /* | 259 | /* |
182 | * do_copy_regs() gathers information from 'struct pt_regs' and | ||
183 | * 'current->thread.areg[]' to fill in the xtensa_gregset_t | ||
184 | * structure. | ||
185 | * | ||
186 | * xtensa_gregset_t and 'struct pt_regs' are vastly different formats | 260 | * xtensa_gregset_t and 'struct pt_regs' are vastly different formats |
187 | * of processor registers. Besides different ordering, | 261 | * of processor registers. Besides different ordering, |
188 | * xtensa_gregset_t contains non-live register information that | 262 | * xtensa_gregset_t contains non-live register information that |
@@ -191,18 +265,19 @@ unsigned long get_wchan(struct task_struct *p) | |||
191 | * | 265 | * |
192 | */ | 266 | */ |
193 | 267 | ||
194 | void do_copy_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs, | 268 | void xtensa_elf_core_copy_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs) |
195 | struct task_struct *tsk) | ||
196 | { | 269 | { |
197 | int i, n, wb_offset; | 270 | unsigned long wb, ws, wm; |
271 | int live, last; | ||
198 | 272 | ||
199 | elfregs->xchal_config_id0 = XCHAL_HW_CONFIGID0; | 273 | wb = regs->windowbase; |
200 | elfregs->xchal_config_id1 = XCHAL_HW_CONFIGID1; | 274 | ws = regs->windowstart; |
275 | wm = regs->wmask; | ||
276 | ws = ((ws >> wb) | (ws << (WSBITS - wb))) & ((1 << WSBITS) - 1); | ||
201 | 277 | ||
202 | __asm__ __volatile__ ("rsr %0, 176\n" : "=a" (i)); | 278 | /* Don't leak any random bits. */ |
203 | elfregs->cpux = i; | 279 | |
204 | __asm__ __volatile__ ("rsr %0, 208\n" : "=a" (i)); | 280 | memset(elfregs, 0, sizeof (elfregs)); |
205 | elfregs->cpuy = i; | ||
206 | 281 | ||
207 | /* Note: PS.EXCM is not set while user task is running; its | 282 | /* Note: PS.EXCM is not set while user task is running; its |
208 | * being set in regs->ps is for exception handling convenience. | 283 | * being set in regs->ps is for exception handling convenience. |
@@ -210,204 +285,22 @@ void do_copy_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs, | |||
210 | 285 | ||
211 | elfregs->pc = regs->pc; | 286 | elfregs->pc = regs->pc; |
212 | elfregs->ps = (regs->ps & ~(1 << PS_EXCM_BIT)); | 287 | elfregs->ps = (regs->ps & ~(1 << PS_EXCM_BIT)); |
213 | elfregs->exccause = regs->exccause; | ||
214 | elfregs->excvaddr = regs->excvaddr; | ||
215 | elfregs->windowbase = regs->windowbase; | ||
216 | elfregs->windowstart = regs->windowstart; | ||
217 | elfregs->lbeg = regs->lbeg; | 288 | elfregs->lbeg = regs->lbeg; |
218 | elfregs->lend = regs->lend; | 289 | elfregs->lend = regs->lend; |
219 | elfregs->lcount = regs->lcount; | 290 | elfregs->lcount = regs->lcount; |
220 | elfregs->sar = regs->sar; | 291 | elfregs->sar = regs->sar; |
221 | elfregs->syscall = regs->syscall; | 292 | elfregs->windowstart = ws; |
222 | |||
223 | /* Copy register file. | ||
224 | * The layout looks like this: | ||
225 | * | ||
226 | * | a0 ... a15 | Z ... Z | arX ... arY | | ||
227 | * current window unused saved frames | ||
228 | */ | ||
229 | |||
230 | memset (elfregs->ar, 0, sizeof(elfregs->ar)); | ||
231 | 293 | ||
232 | wb_offset = regs->windowbase * 4; | 294 | live = (wm & 2) ? 4 : (wm & 4) ? 8 : (wm & 8) ? 12 : 16; |
233 | n = (regs->wmask&1)? 4 : (regs->wmask&2)? 8 : (regs->wmask&4)? 12 : 16; | 295 | last = XCHAL_NUM_AREGS - (wm >> 4) * 4; |
234 | 296 | memcpy(elfregs->a, regs->areg, live * 4); | |
235 | for (i = 0; i < n; i++) | 297 | memcpy(elfregs->a + last, regs->areg + last, (wm >> 4) * 16); |
236 | elfregs->ar[(wb_offset + i) % XCHAL_NUM_AREGS] = regs->areg[i]; | ||
237 | |||
238 | n = (regs->wmask >> 4) * 4; | ||
239 | |||
240 | for (i = XCHAL_NUM_AREGS - n; n > 0; i++, n--) | ||
241 | elfregs->ar[(wb_offset + i) % XCHAL_NUM_AREGS] = regs->areg[i]; | ||
242 | } | 298 | } |
243 | 299 | ||
244 | void xtensa_elf_core_copy_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs) | 300 | int dump_fpu(void) |
245 | { | 301 | { |
246 | do_copy_regs ((xtensa_gregset_t *)elfregs, regs, current); | ||
247 | } | ||
248 | |||
249 | |||
250 | /* The inverse of do_copy_regs(). No error or sanity checking. */ | ||
251 | |||
252 | void do_restore_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs, | ||
253 | struct task_struct *tsk) | ||
254 | { | ||
255 | int i, n, wb_offset; | ||
256 | |||
257 | /* Note: PS.EXCM is not set while user task is running; it | ||
258 | * needs to be set in regs->ps is for exception handling convenience. | ||
259 | */ | ||
260 | |||
261 | regs->pc = elfregs->pc; | ||
262 | regs->ps = (elfregs->ps | (1 << PS_EXCM_BIT)); | ||
263 | regs->exccause = elfregs->exccause; | ||
264 | regs->excvaddr = elfregs->excvaddr; | ||
265 | regs->windowbase = elfregs->windowbase; | ||
266 | regs->windowstart = elfregs->windowstart; | ||
267 | regs->lbeg = elfregs->lbeg; | ||
268 | regs->lend = elfregs->lend; | ||
269 | regs->lcount = elfregs->lcount; | ||
270 | regs->sar = elfregs->sar; | ||
271 | regs->syscall = elfregs->syscall; | ||
272 | |||
273 | /* Clear everything. */ | ||
274 | |||
275 | memset (regs->areg, 0, sizeof(regs->areg)); | ||
276 | |||
277 | /* Copy regs from live window frame. */ | ||
278 | |||
279 | wb_offset = regs->windowbase * 4; | ||
280 | n = (regs->wmask&1)? 4 : (regs->wmask&2)? 8 : (regs->wmask&4)? 12 : 16; | ||
281 | |||
282 | for (i = 0; i < n; i++) | ||
283 | regs->areg[(wb_offset+i) % XCHAL_NUM_AREGS] = elfregs->ar[i]; | ||
284 | |||
285 | n = (regs->wmask >> 4) * 4; | ||
286 | |||
287 | for (i = XCHAL_NUM_AREGS - n; n > 0; i++, n--) | ||
288 | regs->areg[(wb_offset+i) % XCHAL_NUM_AREGS] = elfregs->ar[i]; | ||
289 | } | ||
290 | |||
291 | /* | ||
292 | * do_save_fpregs() gathers information from 'struct pt_regs' and | ||
293 | * 'current->thread' to fill in the elf_fpregset_t structure. | ||
294 | * | ||
295 | * Core files and ptrace use elf_fpregset_t. | ||
296 | */ | ||
297 | |||
298 | void do_save_fpregs (elf_fpregset_t *fpregs, struct pt_regs *regs, | ||
299 | struct task_struct *tsk) | ||
300 | { | ||
301 | #if XCHAL_HAVE_CP | ||
302 | |||
303 | extern unsigned char _xtensa_reginfo_tables[]; | ||
304 | extern unsigned _xtensa_reginfo_table_size; | ||
305 | int i; | ||
306 | unsigned long flags; | ||
307 | |||
308 | /* Before dumping coprocessor state from memory, | ||
309 | * ensure any live coprocessor contents for this | ||
310 | * task are first saved to memory: | ||
311 | */ | ||
312 | local_irq_save(flags); | ||
313 | |||
314 | for (i = 0; i < XCHAL_CP_MAX; i++) { | ||
315 | if (tsk == coprocessor_info[i].owner) { | ||
316 | enable_coprocessor(i); | ||
317 | save_coprocessor_registers( | ||
318 | tsk->thread.cp_save+coprocessor_info[i].offset,i); | ||
319 | disable_coprocessor(i); | ||
320 | } | ||
321 | } | ||
322 | |||
323 | local_irq_restore(flags); | ||
324 | |||
325 | /* Now dump coprocessor & extra state: */ | ||
326 | memcpy((unsigned char*)fpregs, | ||
327 | _xtensa_reginfo_tables, _xtensa_reginfo_table_size); | ||
328 | memcpy((unsigned char*)fpregs + _xtensa_reginfo_table_size, | ||
329 | tsk->thread.cp_save, XTENSA_CP_EXTRA_SIZE); | ||
330 | #endif | ||
331 | } | ||
332 | |||
333 | /* | ||
334 | * The inverse of do_save_fpregs(). | ||
335 | * Copies coprocessor and extra state from fpregs into regs and tsk->thread. | ||
336 | * Returns 0 on success, non-zero if layout doesn't match. | ||
337 | */ | ||
338 | |||
339 | int do_restore_fpregs (elf_fpregset_t *fpregs, struct pt_regs *regs, | ||
340 | struct task_struct *tsk) | ||
341 | { | ||
342 | #if XCHAL_HAVE_CP | ||
343 | |||
344 | extern unsigned char _xtensa_reginfo_tables[]; | ||
345 | extern unsigned _xtensa_reginfo_table_size; | ||
346 | int i; | ||
347 | unsigned long flags; | ||
348 | |||
349 | /* Make sure save area layouts match. | ||
350 | * FIXME: in the future we could allow restoring from | ||
351 | * a different layout of the same registers, by comparing | ||
352 | * fpregs' table with _xtensa_reginfo_tables and matching | ||
353 | * entries and copying registers one at a time. | ||
354 | * Not too sure yet whether that's very useful. | ||
355 | */ | ||
356 | |||
357 | if( memcmp((unsigned char*)fpregs, | ||
358 | _xtensa_reginfo_tables, _xtensa_reginfo_table_size) ) { | ||
359 | return -1; | ||
360 | } | ||
361 | |||
362 | /* Before restoring coprocessor state from memory, | ||
363 | * ensure any live coprocessor contents for this | ||
364 | * task are first invalidated. | ||
365 | */ | ||
366 | |||
367 | local_irq_save(flags); | ||
368 | |||
369 | for (i = 0; i < XCHAL_CP_MAX; i++) { | ||
370 | if (tsk == coprocessor_info[i].owner) { | ||
371 | enable_coprocessor(i); | ||
372 | save_coprocessor_registers( | ||
373 | tsk->thread.cp_save+coprocessor_info[i].offset,i); | ||
374 | coprocessor_info[i].owner = 0; | ||
375 | disable_coprocessor(i); | ||
376 | } | ||
377 | } | ||
378 | |||
379 | local_irq_restore(flags); | ||
380 | |||
381 | /* Now restore coprocessor & extra state: */ | ||
382 | |||
383 | memcpy(tsk->thread.cp_save, | ||
384 | (unsigned char*)fpregs + _xtensa_reginfo_table_size, | ||
385 | XTENSA_CP_EXTRA_SIZE); | ||
386 | #endif | ||
387 | return 0; | 302 | return 0; |
388 | } | 303 | } |
389 | /* | ||
390 | * Fill in the CP structure for a core dump for a particular task. | ||
391 | */ | ||
392 | |||
393 | int | ||
394 | dump_task_fpu(struct pt_regs *regs, struct task_struct *task, elf_fpregset_t *r) | ||
395 | { | ||
396 | return 0; /* no coprocessors active on this processor */ | ||
397 | } | ||
398 | |||
399 | /* | ||
400 | * Fill in the CP structure for a core dump. | ||
401 | * This includes any FPU coprocessor. | ||
402 | * Here, we dump all coprocessors, and other ("extra") custom state. | ||
403 | * | ||
404 | * This function is called by elf_core_dump() in fs/binfmt_elf.c | ||
405 | * (in which case 'regs' comes from calls to do_coredump, see signals.c). | ||
406 | */ | ||
407 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r) | ||
408 | { | ||
409 | return dump_task_fpu(regs, current, r); | ||
410 | } | ||
411 | 304 | ||
412 | asmlinkage | 305 | asmlinkage |
413 | long xtensa_clone(unsigned long clone_flags, unsigned long newsp, | 306 | long xtensa_clone(unsigned long clone_flags, unsigned long newsp, |
@@ -421,8 +314,8 @@ long xtensa_clone(unsigned long clone_flags, unsigned long newsp, | |||
421 | } | 314 | } |
422 | 315 | ||
423 | /* | 316 | /* |
424 | * * xtensa_execve() executes a new program. | 317 | * xtensa_execve() executes a new program. |
425 | * */ | 318 | */ |
426 | 319 | ||
427 | asmlinkage | 320 | asmlinkage |
428 | long xtensa_execve(char __user *name, char __user * __user *argv, | 321 | long xtensa_execve(char __user *name, char __user * __user *argv, |
@@ -437,7 +330,6 @@ long xtensa_execve(char __user *name, char __user * __user *argv, | |||
437 | error = PTR_ERR(filename); | 330 | error = PTR_ERR(filename); |
438 | if (IS_ERR(filename)) | 331 | if (IS_ERR(filename)) |
439 | goto out; | 332 | goto out; |
440 | // FIXME: release coprocessor?? | ||
441 | error = do_execve(filename, argv, envp, regs); | 333 | error = do_execve(filename, argv, envp, regs); |
442 | if (error == 0) { | 334 | if (error == 0) { |
443 | task_lock(current); | 335 | task_lock(current); |
diff --git a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c index 5533c7850d53..9486882ef0af 100644 --- a/arch/xtensa/kernel/ptrace.c +++ b/arch/xtensa/kernel/ptrace.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * License. See the file "COPYING" in the main directory of this archive | 4 | * License. See the file "COPYING" in the main directory of this archive |
5 | * for more details. | 5 | * for more details. |
6 | * | 6 | * |
7 | * Copyright (C) 2001 - 2005 Tensilica Inc. | 7 | * Copyright (C) 2001 - 2007 Tensilica Inc. |
8 | * | 8 | * |
9 | * Joe Taylor <joe@tensilica.com, joetylr@yahoo.com> | 9 | * Joe Taylor <joe@tensilica.com, joetylr@yahoo.com> |
10 | * Chris Zankel <chris@zankel.net> | 10 | * Chris Zankel <chris@zankel.net> |
@@ -28,14 +28,10 @@ | |||
28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
29 | #include <asm/ptrace.h> | 29 | #include <asm/ptrace.h> |
30 | #include <asm/elf.h> | 30 | #include <asm/elf.h> |
31 | 31 | #include <asm/coprocessor.h> | |
32 | #define TEST_KERNEL // verify kernel operations FIXME: remove | ||
33 | |||
34 | 32 | ||
35 | /* | 33 | /* |
36 | * Called by kernel/ptrace.c when detaching.. | 34 | * Called by kernel/ptrace.c when detaching to disable single stepping. |
37 | * | ||
38 | * Make sure single step bits etc are not set. | ||
39 | */ | 35 | */ |
40 | 36 | ||
41 | void ptrace_disable(struct task_struct *child) | 37 | void ptrace_disable(struct task_struct *child) |
@@ -43,136 +39,237 @@ void ptrace_disable(struct task_struct *child) | |||
43 | /* Nothing to do.. */ | 39 | /* Nothing to do.. */ |
44 | } | 40 | } |
45 | 41 | ||
46 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) | 42 | int ptrace_getregs(struct task_struct *child, void __user *uregs) |
47 | { | 43 | { |
48 | int ret = -EPERM; | 44 | struct pt_regs *regs = task_pt_regs(child); |
45 | xtensa_gregset_t __user *gregset = uregs; | ||
46 | unsigned long wm = regs->wmask; | ||
47 | unsigned long wb = regs->windowbase; | ||
48 | int live, i; | ||
49 | |||
50 | if (!access_ok(VERIFY_WRITE, uregs, sizeof(xtensa_gregset_t))) | ||
51 | return -EIO; | ||
52 | |||
53 | __put_user(regs->pc, &gregset->pc); | ||
54 | __put_user(regs->ps & ~(1 << PS_EXCM_BIT), &gregset->ps); | ||
55 | __put_user(regs->lbeg, &gregset->lbeg); | ||
56 | __put_user(regs->lend, &gregset->lend); | ||
57 | __put_user(regs->lcount, &gregset->lcount); | ||
58 | __put_user(regs->windowstart, &gregset->windowstart); | ||
59 | __put_user(regs->windowbase, &gregset->windowbase); | ||
60 | |||
61 | live = (wm & 2) ? 4 : (wm & 4) ? 8 : (wm & 8) ? 12 : 16; | ||
62 | |||
63 | for (i = 0; i < live; i++) | ||
64 | __put_user(regs->areg[i],gregset->a+((wb*4+i)%XCHAL_NUM_AREGS)); | ||
65 | for (i = XCHAL_NUM_AREGS - (wm >> 4) * 4; i < XCHAL_NUM_AREGS; i++) | ||
66 | __put_user(regs->areg[i],gregset->a+((wb*4+i)%XCHAL_NUM_AREGS)); | ||
67 | |||
68 | return 0; | ||
69 | } | ||
49 | 70 | ||
50 | switch (request) { | 71 | int ptrace_setregs(struct task_struct *child, void __user *uregs) |
51 | case PTRACE_PEEKTEXT: /* read word at location addr. */ | 72 | { |
52 | case PTRACE_PEEKDATA: | 73 | struct pt_regs *regs = task_pt_regs(child); |
53 | ret = generic_ptrace_peekdata(child, addr, data); | 74 | xtensa_gregset_t *gregset = uregs; |
54 | goto out; | 75 | const unsigned long ps_mask = PS_CALLINC_MASK | PS_OWB_MASK; |
76 | unsigned long ps; | ||
77 | unsigned long wb; | ||
55 | 78 | ||
56 | /* Read the word at location addr in the USER area. */ | 79 | if (!access_ok(VERIFY_WRITE, uregs, sizeof(xtensa_gregset_t))) |
80 | return -EIO; | ||
57 | 81 | ||
58 | case PTRACE_PEEKUSR: | 82 | __get_user(regs->pc, &gregset->pc); |
59 | { | 83 | __get_user(ps, &gregset->ps); |
60 | struct pt_regs *regs; | 84 | __get_user(regs->lbeg, &gregset->lbeg); |
61 | unsigned long tmp; | 85 | __get_user(regs->lend, &gregset->lend); |
86 | __get_user(regs->lcount, &gregset->lcount); | ||
87 | __get_user(regs->windowstart, &gregset->windowstart); | ||
88 | __get_user(wb, &gregset->windowbase); | ||
89 | |||
90 | regs->ps = (regs->ps & ~ps_mask) | (ps & ps_mask) | (1 << PS_EXCM_BIT); | ||
91 | |||
92 | if (wb >= XCHAL_NUM_AREGS / 4) | ||
93 | return -EFAULT; | ||
94 | |||
95 | regs->windowbase = wb; | ||
96 | |||
97 | if (wb != 0 && __copy_from_user(regs->areg + XCHAL_NUM_AREGS - wb * 4, | ||
98 | gregset->a, wb * 16)) | ||
99 | return -EFAULT; | ||
100 | |||
101 | if (__copy_from_user(regs->areg, gregset->a + wb*4, (WSBITS-wb) * 16)) | ||
102 | return -EFAULT; | ||
103 | |||
104 | return 0; | ||
105 | } | ||
106 | |||
107 | |||
108 | int ptrace_getxregs(struct task_struct *child, void __user *uregs) | ||
109 | { | ||
110 | struct pt_regs *regs = task_pt_regs(child); | ||
111 | struct thread_info *ti = task_thread_info(child); | ||
112 | elf_xtregs_t __user *xtregs = uregs; | ||
113 | int ret = 0; | ||
114 | |||
115 | if (!access_ok(VERIFY_WRITE, uregs, sizeof(elf_xtregs_t))) | ||
116 | return -EIO; | ||
117 | |||
118 | #if XTENSA_HAVE_COPROCESSORS | ||
119 | /* Flush all coprocessor registers to memory. */ | ||
120 | coprocessor_flush_all(ti); | ||
121 | ret |= __copy_to_user(&xtregs->cp0, &ti->xtregs_cp, | ||
122 | sizeof(xtregs_coprocessor_t)); | ||
123 | #endif | ||
124 | ret |= __copy_to_user(&xtregs->opt, ®s->xtregs_opt, | ||
125 | sizeof(xtregs->opt)); | ||
126 | ret |= __copy_to_user(&xtregs->user,&ti->xtregs_user, | ||
127 | sizeof(xtregs->user)); | ||
128 | |||
129 | return ret ? -EFAULT : 0; | ||
130 | } | ||
131 | |||
132 | int ptrace_setxregs(struct task_struct *child, void __user *uregs) | ||
133 | { | ||
134 | struct thread_info *ti = task_thread_info(child); | ||
135 | struct pt_regs *regs = task_pt_regs(child); | ||
136 | elf_xtregs_t *xtregs = uregs; | ||
137 | int ret = 0; | ||
138 | |||
139 | #if XTENSA_HAVE_COPROCESSORS | ||
140 | /* Flush all coprocessors before we overwrite them. */ | ||
141 | coprocessor_flush_all(ti); | ||
142 | coprocessor_release_all(ti); | ||
143 | |||
144 | ret |= __copy_from_user(&ti->xtregs_cp, &xtregs->cp0, | ||
145 | sizeof(xtregs_coprocessor_t)); | ||
146 | #endif | ||
147 | ret |= __copy_from_user(®s->xtregs_opt, &xtregs->opt, | ||
148 | sizeof(xtregs->opt)); | ||
149 | ret |= __copy_from_user(&ti->xtregs_user, &xtregs->user, | ||
150 | sizeof(xtregs->user)); | ||
151 | |||
152 | return ret ? -EFAULT : 0; | ||
153 | } | ||
154 | |||
155 | int ptrace_peekusr(struct task_struct *child, long regno, long __user *ret) | ||
156 | { | ||
157 | struct pt_regs *regs; | ||
158 | unsigned long tmp; | ||
62 | 159 | ||
63 | regs = task_pt_regs(child); | 160 | regs = task_pt_regs(child); |
64 | tmp = 0; /* Default return value. */ | 161 | tmp = 0; /* Default return value. */ |
65 | 162 | ||
66 | switch(addr) { | 163 | switch(regno) { |
67 | 164 | ||
68 | case REG_AR_BASE ... REG_AR_BASE + XCHAL_NUM_AREGS - 1: | 165 | case REG_AR_BASE ... REG_AR_BASE + XCHAL_NUM_AREGS - 1: |
69 | { | 166 | tmp = regs->areg[regno - REG_AR_BASE]; |
70 | int ar = addr - REG_AR_BASE - regs->windowbase * 4; | ||
71 | ar &= (XCHAL_NUM_AREGS - 1); | ||
72 | if (ar < 16 && ar + (regs->wmask >> 4) * 4 >= 0) | ||
73 | tmp = regs->areg[ar]; | ||
74 | else | ||
75 | ret = -EIO; | ||
76 | break; | 167 | break; |
77 | } | 168 | |
78 | case REG_A_BASE ... REG_A_BASE + 15: | 169 | case REG_A_BASE ... REG_A_BASE + 15: |
79 | tmp = regs->areg[addr - REG_A_BASE]; | 170 | tmp = regs->areg[regno - REG_A_BASE]; |
80 | break; | 171 | break; |
172 | |||
81 | case REG_PC: | 173 | case REG_PC: |
82 | tmp = regs->pc; | 174 | tmp = regs->pc; |
83 | break; | 175 | break; |
176 | |||
84 | case REG_PS: | 177 | case REG_PS: |
85 | /* Note: PS.EXCM is not set while user task is running; | 178 | /* Note: PS.EXCM is not set while user task is running; |
86 | * its being set in regs is for exception handling | 179 | * its being set in regs is for exception handling |
87 | * convenience. */ | 180 | * convenience. */ |
88 | tmp = (regs->ps & ~(1 << PS_EXCM_BIT)); | 181 | tmp = (regs->ps & ~(1 << PS_EXCM_BIT)); |
89 | break; | 182 | break; |
183 | |||
90 | case REG_WB: | 184 | case REG_WB: |
91 | tmp = regs->windowbase; | 185 | break; /* tmp = 0 */ |
92 | break; | 186 | |
93 | case REG_WS: | 187 | case REG_WS: |
94 | tmp = regs->windowstart; | 188 | { |
189 | unsigned long wb = regs->windowbase; | ||
190 | unsigned long ws = regs->windowstart; | ||
191 | tmp = ((ws>>wb) | (ws<<(WSBITS-wb))) & ((1<<WSBITS)-1); | ||
95 | break; | 192 | break; |
193 | } | ||
96 | case REG_LBEG: | 194 | case REG_LBEG: |
97 | tmp = regs->lbeg; | 195 | tmp = regs->lbeg; |
98 | break; | 196 | break; |
197 | |||
99 | case REG_LEND: | 198 | case REG_LEND: |
100 | tmp = regs->lend; | 199 | tmp = regs->lend; |
101 | break; | 200 | break; |
201 | |||
102 | case REG_LCOUNT: | 202 | case REG_LCOUNT: |
103 | tmp = regs->lcount; | 203 | tmp = regs->lcount; |
104 | break; | 204 | break; |
205 | |||
105 | case REG_SAR: | 206 | case REG_SAR: |
106 | tmp = regs->sar; | 207 | tmp = regs->sar; |
107 | break; | 208 | break; |
108 | case REG_DEPC: | 209 | |
109 | tmp = regs->depc; | ||
110 | break; | ||
111 | case REG_EXCCAUSE: | ||
112 | tmp = regs->exccause; | ||
113 | break; | ||
114 | case REG_EXCVADDR: | ||
115 | tmp = regs->excvaddr; | ||
116 | break; | ||
117 | case SYSCALL_NR: | 210 | case SYSCALL_NR: |
118 | tmp = regs->syscall; | 211 | tmp = regs->syscall; |
119 | break; | 212 | break; |
120 | default: | ||
121 | tmp = 0; | ||
122 | ret = -EIO; | ||
123 | goto out; | ||
124 | } | ||
125 | ret = put_user(tmp, (unsigned long *) data); | ||
126 | goto out; | ||
127 | } | ||
128 | 213 | ||
129 | case PTRACE_POKETEXT: /* write the word at location addr. */ | 214 | default: |
130 | case PTRACE_POKEDATA: | 215 | return -EIO; |
131 | ret = generic_ptrace_pokedata(child, addr, data); | 216 | } |
132 | goto out; | 217 | return put_user(tmp, ret); |
218 | } | ||
133 | 219 | ||
134 | case PTRACE_POKEUSR: | 220 | int ptrace_pokeusr(struct task_struct *child, long regno, long val) |
135 | { | 221 | { |
136 | struct pt_regs *regs; | 222 | struct pt_regs *regs; |
137 | regs = task_pt_regs(child); | 223 | regs = task_pt_regs(child); |
138 | 224 | ||
139 | switch (addr) { | 225 | switch (regno) { |
140 | case REG_AR_BASE ... REG_AR_BASE + XCHAL_NUM_AREGS - 1: | 226 | case REG_AR_BASE ... REG_AR_BASE + XCHAL_NUM_AREGS - 1: |
141 | { | 227 | regs->areg[regno - REG_AR_BASE] = val; |
142 | int ar = addr - REG_AR_BASE - regs->windowbase * 4; | ||
143 | if (ar < 16 && ar + (regs->wmask >> 4) * 4 >= 0) | ||
144 | regs->areg[ar & (XCHAL_NUM_AREGS - 1)] = data; | ||
145 | else | ||
146 | ret = -EIO; | ||
147 | break; | 228 | break; |
148 | } | 229 | |
149 | case REG_A_BASE ... REG_A_BASE + 15: | 230 | case REG_A_BASE ... REG_A_BASE + 15: |
150 | regs->areg[addr - REG_A_BASE] = data; | 231 | regs->areg[regno - REG_A_BASE] = val; |
151 | break; | 232 | break; |
233 | |||
152 | case REG_PC: | 234 | case REG_PC: |
153 | regs->pc = data; | 235 | regs->pc = val; |
154 | break; | 236 | break; |
237 | |||
155 | case SYSCALL_NR: | 238 | case SYSCALL_NR: |
156 | regs->syscall = data; | 239 | regs->syscall = val; |
157 | break; | ||
158 | #ifdef TEST_KERNEL | ||
159 | case REG_WB: | ||
160 | regs->windowbase = data; | ||
161 | break; | ||
162 | case REG_WS: | ||
163 | regs->windowstart = data; | ||
164 | break; | 240 | break; |
165 | #endif | ||
166 | 241 | ||
167 | default: | 242 | default: |
168 | /* The rest are not allowed. */ | 243 | return -EIO; |
169 | ret = -EIO; | 244 | } |
170 | break; | 245 | return 0; |
171 | } | 246 | } |
247 | |||
248 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) | ||
249 | { | ||
250 | int ret = -EPERM; | ||
251 | |||
252 | switch (request) { | ||
253 | case PTRACE_PEEKTEXT: /* read word at location addr. */ | ||
254 | case PTRACE_PEEKDATA: | ||
255 | ret = generic_ptrace_peekdata(child, addr, data); | ||
256 | break; | ||
257 | |||
258 | case PTRACE_PEEKUSR: /* read register specified by addr. */ | ||
259 | ret = ptrace_peekusr(child, addr, (void __user *) data); | ||
260 | break; | ||
261 | |||
262 | case PTRACE_POKETEXT: /* write the word at location addr. */ | ||
263 | case PTRACE_POKEDATA: | ||
264 | ret = generic_ptrace_pokedata(child, addr, data); | ||
265 | break; | ||
266 | |||
267 | case PTRACE_POKEUSR: /* write register specified by addr. */ | ||
268 | ret = ptrace_pokeusr(child, addr, data); | ||
172 | break; | 269 | break; |
173 | } | ||
174 | 270 | ||
175 | /* continue and stop at next (return from) syscall */ | 271 | /* continue and stop at next (return from) syscall */ |
272 | |||
176 | case PTRACE_SYSCALL: | 273 | case PTRACE_SYSCALL: |
177 | case PTRACE_CONT: /* restart after signal. */ | 274 | case PTRACE_CONT: /* restart after signal. */ |
178 | { | 275 | { |
@@ -217,98 +314,26 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
217 | break; | 314 | break; |
218 | 315 | ||
219 | case PTRACE_GETREGS: | 316 | case PTRACE_GETREGS: |
220 | { | 317 | ret = ptrace_getregs(child, (void __user *) data); |
221 | /* 'data' points to user memory in which to write. | ||
222 | * Mainly due to the non-live register values, we | ||
223 | * reformat the register values into something more | ||
224 | * standard. For convenience, we use the handy | ||
225 | * elf_gregset_t format. */ | ||
226 | |||
227 | xtensa_gregset_t format; | ||
228 | struct pt_regs *regs = task_pt_regs(child); | ||
229 | |||
230 | do_copy_regs (&format, regs, child); | ||
231 | |||
232 | /* Now, copy to user space nice and easy... */ | ||
233 | ret = 0; | ||
234 | if (copy_to_user((void *)data, &format, sizeof(elf_gregset_t))) | ||
235 | ret = -EFAULT; | ||
236 | break; | 318 | break; |
237 | } | ||
238 | 319 | ||
239 | case PTRACE_SETREGS: | 320 | case PTRACE_SETREGS: |
240 | { | 321 | ret = ptrace_setregs(child, (void __user *) data); |
241 | /* 'data' points to user memory that contains the new | ||
242 | * values in the elf_gregset_t format. */ | ||
243 | |||
244 | xtensa_gregset_t format; | ||
245 | struct pt_regs *regs = task_pt_regs(child); | ||
246 | |||
247 | if (copy_from_user(&format,(void *)data,sizeof(elf_gregset_t))){ | ||
248 | ret = -EFAULT; | ||
249 | break; | ||
250 | } | ||
251 | |||
252 | /* FIXME: Perhaps we want some sanity checks on | ||
253 | * these user-space values? See ARM version. Are | ||
254 | * debuggers a security concern? */ | ||
255 | |||
256 | do_restore_regs (&format, regs, child); | ||
257 | |||
258 | ret = 0; | ||
259 | break; | ||
260 | } | ||
261 | |||
262 | case PTRACE_GETFPREGS: | ||
263 | { | ||
264 | /* 'data' points to user memory in which to write. | ||
265 | * For convenience, we use the handy | ||
266 | * elf_fpregset_t format. */ | ||
267 | |||
268 | elf_fpregset_t fpregs; | ||
269 | struct pt_regs *regs = task_pt_regs(child); | ||
270 | |||
271 | do_save_fpregs (&fpregs, regs, child); | ||
272 | |||
273 | /* Now, copy to user space nice and easy... */ | ||
274 | ret = 0; | ||
275 | if (copy_to_user((void *)data, &fpregs, sizeof(elf_fpregset_t))) | ||
276 | ret = -EFAULT; | ||
277 | |||
278 | break; | 322 | break; |
279 | } | ||
280 | |||
281 | case PTRACE_SETFPREGS: | ||
282 | { | ||
283 | /* 'data' points to user memory that contains the new | ||
284 | * values in the elf_fpregset_t format. | ||
285 | */ | ||
286 | elf_fpregset_t fpregs; | ||
287 | struct pt_regs *regs = task_pt_regs(child); | ||
288 | 323 | ||
289 | ret = 0; | 324 | case PTRACE_GETXTREGS: |
290 | if (copy_from_user(&fpregs, (void *)data, sizeof(elf_fpregset_t))) { | 325 | ret = ptrace_getxregs(child, (void __user *) data); |
291 | ret = -EFAULT; | ||
292 | break; | ||
293 | } | ||
294 | |||
295 | if (do_restore_fpregs (&fpregs, regs, child)) | ||
296 | ret = -EIO; | ||
297 | break; | 326 | break; |
298 | } | ||
299 | 327 | ||
300 | case PTRACE_GETFPREGSIZE: | 328 | case PTRACE_SETXTREGS: |
301 | /* 'data' points to 'unsigned long' set to the size | 329 | ret = ptrace_setxregs(child, (void __user *) data); |
302 | * of elf_fpregset_t | ||
303 | */ | ||
304 | ret = put_user(sizeof(elf_fpregset_t), (unsigned long *) data); | ||
305 | break; | 330 | break; |
306 | 331 | ||
307 | default: | 332 | default: |
308 | ret = ptrace_request(child, request, addr, data); | 333 | ret = ptrace_request(child, request, addr, data); |
309 | goto out; | 334 | break; |
310 | } | 335 | } |
311 | out: | 336 | |
312 | return ret; | 337 | return ret; |
313 | } | 338 | } |
314 | 339 | ||
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index b80f2cb1b4fb..5e6d75c9f92b 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c | |||
@@ -60,11 +60,6 @@ struct ide_ops *ide_ops; | |||
60 | extern struct rtc_ops no_rtc_ops; | 60 | extern struct rtc_ops no_rtc_ops; |
61 | struct rtc_ops *rtc_ops; | 61 | struct rtc_ops *rtc_ops; |
62 | 62 | ||
63 | #ifdef CONFIG_PC_KEYB | ||
64 | extern struct kbd_ops no_kbd_ops; | ||
65 | struct kbd_ops *kbd_ops; | ||
66 | #endif | ||
67 | |||
68 | #ifdef CONFIG_BLK_DEV_INITRD | 63 | #ifdef CONFIG_BLK_DEV_INITRD |
69 | extern void *initrd_start; | 64 | extern void *initrd_start; |
70 | extern void *initrd_end; | 65 | extern void *initrd_end; |
diff --git a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c index 033aae0336d2..f2220b5bdce6 100644 --- a/arch/xtensa/kernel/signal.c +++ b/arch/xtensa/kernel/signal.c | |||
@@ -35,13 +35,17 @@ asmlinkage int do_signal(struct pt_regs *regs, sigset_t *oldset); | |||
35 | 35 | ||
36 | extern struct task_struct *coproc_owners[]; | 36 | extern struct task_struct *coproc_owners[]; |
37 | 37 | ||
38 | extern void release_all_cp (struct task_struct *); | ||
39 | |||
40 | struct rt_sigframe | 38 | struct rt_sigframe |
41 | { | 39 | { |
42 | struct siginfo info; | 40 | struct siginfo info; |
43 | struct ucontext uc; | 41 | struct ucontext uc; |
44 | cp_state_t cpstate; | 42 | struct { |
43 | xtregs_opt_t opt; | ||
44 | xtregs_user_t user; | ||
45 | #if XTENSA_HAVE_COPROCESSORS | ||
46 | xtregs_coprocessor_t cp; | ||
47 | #endif | ||
48 | } xtregs; | ||
45 | unsigned char retcode[6]; | 49 | unsigned char retcode[6]; |
46 | unsigned int window[4]; | 50 | unsigned int window[4]; |
47 | }; | 51 | }; |
@@ -49,8 +53,6 @@ struct rt_sigframe | |||
49 | /* | 53 | /* |
50 | * Flush register windows stored in pt_regs to stack. | 54 | * Flush register windows stored in pt_regs to stack. |
51 | * Returns 1 for errors. | 55 | * Returns 1 for errors. |
52 | * | ||
53 | * Note that windowbase, windowstart, and wmask are not updated! | ||
54 | */ | 56 | */ |
55 | 57 | ||
56 | int | 58 | int |
@@ -116,6 +118,9 @@ flush_window_regs_user(struct pt_regs *regs) | |||
116 | base += inc; | 118 | base += inc; |
117 | } | 119 | } |
118 | 120 | ||
121 | regs->wmask = 1; | ||
122 | regs->windowstart = 1 << wb; | ||
123 | |||
119 | return 0; | 124 | return 0; |
120 | 125 | ||
121 | errout: | 126 | errout: |
@@ -131,9 +136,10 @@ errout: | |||
131 | */ | 136 | */ |
132 | 137 | ||
133 | static int | 138 | static int |
134 | setup_sigcontext(struct sigcontext __user *sc, cp_state_t *cpstate, | 139 | setup_sigcontext(struct rt_sigframe __user *frame, struct pt_regs *regs) |
135 | struct pt_regs *regs, unsigned long mask) | ||
136 | { | 140 | { |
141 | struct sigcontext __user *sc = &frame->uc.uc_mcontext; | ||
142 | struct thread_info *ti = current_thread_info(); | ||
137 | int err = 0; | 143 | int err = 0; |
138 | 144 | ||
139 | #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) | 145 | #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) |
@@ -147,23 +153,32 @@ setup_sigcontext(struct sigcontext __user *sc, cp_state_t *cpstate, | |||
147 | 153 | ||
148 | err |= flush_window_regs_user(regs); | 154 | err |= flush_window_regs_user(regs); |
149 | err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); | 155 | err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); |
156 | err |= __put_user(0, &sc->sc_xtregs); | ||
150 | 157 | ||
151 | // err |= __copy_to_user (sc->sc_a, regs->areg, XCHAL_NUM_AREGS * 4) | 158 | if (err) |
159 | return err; | ||
152 | 160 | ||
153 | #if XCHAL_HAVE_CP | 161 | #if XTENSA_HAVE_COPROCESSORS |
154 | # error Coprocessors unsupported | 162 | coprocessor_flush_all(ti); |
155 | err |= save_cpextra(cpstate); | 163 | coprocessor_release_all(ti); |
156 | err |= __put_user(err ? NULL : cpstate, &sc->sc_cpstate); | 164 | err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, |
165 | sizeof (frame->xtregs.cp)); | ||
157 | #endif | 166 | #endif |
158 | /* non-iBCS2 extensions.. */ | 167 | err |= __copy_to_user(&frame->xtregs.opt, ®s->xtregs_opt, |
159 | err |= __put_user(mask, &sc->oldmask); | 168 | sizeof (xtregs_opt_t)); |
169 | err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, | ||
170 | sizeof (xtregs_user_t)); | ||
171 | |||
172 | err |= __put_user(err ? NULL : &frame->xtregs, &sc->sc_xtregs); | ||
160 | 173 | ||
161 | return err; | 174 | return err; |
162 | } | 175 | } |
163 | 176 | ||
164 | static int | 177 | static int |
165 | restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | 178 | restore_sigcontext(struct pt_regs *regs, struct rt_sigframe __user *frame) |
166 | { | 179 | { |
180 | struct sigcontext __user *sc = &frame->uc.uc_mcontext; | ||
181 | struct thread_info *ti = current_thread_info(); | ||
167 | unsigned int err = 0; | 182 | unsigned int err = 0; |
168 | unsigned long ps; | 183 | unsigned long ps; |
169 | 184 | ||
@@ -181,6 +196,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
181 | regs->windowbase = 0; | 196 | regs->windowbase = 0; |
182 | regs->windowstart = 1; | 197 | regs->windowstart = 1; |
183 | 198 | ||
199 | regs->syscall = -1; /* disable syscall checks */ | ||
200 | |||
184 | /* For PS, restore only PS.CALLINC. | 201 | /* For PS, restore only PS.CALLINC. |
185 | * Assume that all other bits are either the same as for the signal | 202 | * Assume that all other bits are either the same as for the signal |
186 | * handler, or the user mode value doesn't matter (e.g. PS.OWB). | 203 | * handler, or the user mode value doesn't matter (e.g. PS.OWB). |
@@ -196,8 +213,9 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
196 | 213 | ||
197 | err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); | 214 | err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); |
198 | 215 | ||
199 | #if XCHAL_HAVE_CP | 216 | if (err) |
200 | # error Coprocessors unsupported | 217 | return err; |
218 | |||
201 | /* The signal handler may have used coprocessors in which | 219 | /* The signal handler may have used coprocessors in which |
202 | * case they are still enabled. We disable them to force a | 220 | * case they are still enabled. We disable them to force a |
203 | * reloading of the original task's CP state by the lazy | 221 | * reloading of the original task's CP state by the lazy |
@@ -205,20 +223,20 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | |||
205 | * Also, we essentially discard any coprocessor state that the | 223 | * Also, we essentially discard any coprocessor state that the |
206 | * signal handler created. */ | 224 | * signal handler created. */ |
207 | 225 | ||
208 | if (!err) { | 226 | #if XTENSA_HAVE_COPROCESSORS |
209 | struct task_struct *tsk = current; | 227 | coprocessor_release_all(ti); |
210 | release_all_cp(tsk); | 228 | err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, |
211 | err |= __copy_from_user(tsk->thread.cpextra, sc->sc_cpstate, | 229 | sizeof (frame->xtregs.cp)); |
212 | XTENSA_CP_EXTRA_SIZE); | ||
213 | } | ||
214 | #endif | 230 | #endif |
231 | err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, | ||
232 | sizeof (xtregs_user_t)); | ||
233 | err |= __copy_from_user(®s->xtregs_opt, &frame->xtregs.opt, | ||
234 | sizeof (xtregs_opt_t)); | ||
215 | 235 | ||
216 | regs->syscall = -1; /* disable syscall checks */ | ||
217 | return err; | 236 | return err; |
218 | } | 237 | } |
219 | 238 | ||
220 | 239 | ||
221 | |||
222 | /* | 240 | /* |
223 | * Do a signal return; undo the signal stack. | 241 | * Do a signal return; undo the signal stack. |
224 | */ | 242 | */ |
@@ -247,7 +265,7 @@ asmlinkage long xtensa_rt_sigreturn(long a0, long a1, long a2, long a3, | |||
247 | recalc_sigpending(); | 265 | recalc_sigpending(); |
248 | spin_unlock_irq(¤t->sighand->siglock); | 266 | spin_unlock_irq(¤t->sighand->siglock); |
249 | 267 | ||
250 | if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) | 268 | if (restore_sigcontext(regs, frame)) |
251 | goto badframe; | 269 | goto badframe; |
252 | 270 | ||
253 | ret = regs->areg[2]; | 271 | ret = regs->areg[2]; |
@@ -360,18 +378,22 @@ static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
360 | err |= __put_user(sas_ss_flags(regs->areg[1]), | 378 | err |= __put_user(sas_ss_flags(regs->areg[1]), |
361 | &frame->uc.uc_stack.ss_flags); | 379 | &frame->uc.uc_stack.ss_flags); |
362 | err |= __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size); | 380 | err |= __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size); |
363 | err |= setup_sigcontext(&frame->uc.uc_mcontext, &frame->cpstate, | 381 | err |= setup_sigcontext(frame, regs); |
364 | regs, set->sig[0]); | ||
365 | err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); | 382 | err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); |
366 | 383 | ||
367 | /* Create sys_rt_sigreturn syscall in stack frame */ | 384 | if (ka->sa.sa_flags & SA_RESTORER) { |
385 | ra = (unsigned long)ka->sa.sa_restorer; | ||
386 | } else { | ||
368 | 387 | ||
369 | err |= gen_return_code(frame->retcode); | 388 | /* Create sys_rt_sigreturn syscall in stack frame */ |
370 | 389 | ||
371 | if (err) { | 390 | err |= gen_return_code(frame->retcode); |
372 | goto give_sigsegv; | 391 | |
392 | if (err) { | ||
393 | goto give_sigsegv; | ||
394 | } | ||
395 | ra = (unsigned long) frame->retcode; | ||
373 | } | 396 | } |
374 | |||
375 | 397 | ||
376 | /* | 398 | /* |
377 | * Create signal handler execution context. | 399 | * Create signal handler execution context. |
@@ -385,7 +407,6 @@ static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
385 | /* Set up a stack frame for a call4 | 407 | /* Set up a stack frame for a call4 |
386 | * Note: PS.CALLINC is set to one by start_thread | 408 | * Note: PS.CALLINC is set to one by start_thread |
387 | */ | 409 | */ |
388 | ra = (unsigned long) frame->retcode; | ||
389 | regs->areg[4] = (((unsigned long) ra) & 0x3fffffff) | 0x40000000; | 410 | regs->areg[4] = (((unsigned long) ra) & 0x3fffffff) | 0x40000000; |
390 | regs->areg[6] = (unsigned long) signal; | 411 | regs->areg[6] = (unsigned long) signal; |
391 | regs->areg[7] = (unsigned long) &frame->info; | 412 | regs->areg[7] = (unsigned long) &frame->info; |
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index 397bcd6ad08d..c7a021d9f696 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c | |||
@@ -118,28 +118,28 @@ static dispatch_init_table_t __initdata dispatch_init_table[] = { | |||
118 | { EXCCAUSE_STORE_CACHE_ATTRIBUTE, 0, do_page_fault }, | 118 | { EXCCAUSE_STORE_CACHE_ATTRIBUTE, 0, do_page_fault }, |
119 | { EXCCAUSE_LOAD_CACHE_ATTRIBUTE, 0, do_page_fault }, | 119 | { EXCCAUSE_LOAD_CACHE_ATTRIBUTE, 0, do_page_fault }, |
120 | /* XCCHAL_EXCCAUSE_FLOATING_POINT unhandled */ | 120 | /* XCCHAL_EXCCAUSE_FLOATING_POINT unhandled */ |
121 | #if (XCHAL_CP_MASK & 1) | 121 | #if XTENSA_HAVE_COPROCESSOR(0) |
122 | COPROCESSOR(0), | 122 | COPROCESSOR(0), |
123 | #endif | 123 | #endif |
124 | #if (XCHAL_CP_MASK & 2) | 124 | #if XTENSA_HAVE_COPROCESSOR(1) |
125 | COPROCESSOR(1), | 125 | COPROCESSOR(1), |
126 | #endif | 126 | #endif |
127 | #if (XCHAL_CP_MASK & 4) | 127 | #if XTENSA_HAVE_COPROCESSOR(2) |
128 | COPROCESSOR(2), | 128 | COPROCESSOR(2), |
129 | #endif | 129 | #endif |
130 | #if (XCHAL_CP_MASK & 8) | 130 | #if XTENSA_HAVE_COPROCESSOR(3) |
131 | COPROCESSOR(3), | 131 | COPROCESSOR(3), |
132 | #endif | 132 | #endif |
133 | #if (XCHAL_CP_MASK & 16) | 133 | #if XTENSA_HAVE_COPROCESSOR(4) |
134 | COPROCESSOR(4), | 134 | COPROCESSOR(4), |
135 | #endif | 135 | #endif |
136 | #if (XCHAL_CP_MASK & 32) | 136 | #if XTENSA_HAVE_COPROCESSOR(5) |
137 | COPROCESSOR(5), | 137 | COPROCESSOR(5), |
138 | #endif | 138 | #endif |
139 | #if (XCHAL_CP_MASK & 64) | 139 | #if XTENSA_HAVE_COPROCESSOR(6) |
140 | COPROCESSOR(6), | 140 | COPROCESSOR(6), |
141 | #endif | 141 | #endif |
142 | #if (XCHAL_CP_MASK & 128) | 142 | #if XTENSA_HAVE_COPROCESSOR(7) |
143 | COPROCESSOR(7), | 143 | COPROCESSOR(7), |
144 | #endif | 144 | #endif |
145 | { EXCCAUSE_MAPPED_DEBUG, 0, do_debug }, | 145 | { EXCCAUSE_MAPPED_DEBUG, 0, do_debug }, |
@@ -349,9 +349,7 @@ void show_regs(struct pt_regs * regs) | |||
349 | 349 | ||
350 | wmask = regs->wmask & ~1; | 350 | wmask = regs->wmask & ~1; |
351 | 351 | ||
352 | for (i = 0; i < 32; i++) { | 352 | for (i = 0; i < 16; i++) { |
353 | if (wmask & (1 << (i / 4))) | ||
354 | break; | ||
355 | if ((i % 8) == 0) | 353 | if ((i % 8) == 0) |
356 | printk ("\n" KERN_INFO "a%02d: ", i); | 354 | printk ("\n" KERN_INFO "a%02d: ", i); |
357 | printk("%08lx ", regs->areg[i]); | 355 | printk("%08lx ", regs->areg[i]); |
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index 7d0f55a4982d..51f4fb6f16f9 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -136,7 +136,9 @@ SECTIONS | |||
136 | __init_begin = .; | 136 | __init_begin = .; |
137 | .init.text : { | 137 | .init.text : { |
138 | _sinittext = .; | 138 | _sinittext = .; |
139 | *(.init.literal) INIT_TEXT | 139 | *(.init.literal) *(.cpuinit.literal) |
140 | *(.devinit.literal) *(.meminit.literal) | ||
141 | INIT_TEXT | ||
140 | _einittext = .; | 142 | _einittext = .; |
141 | } | 143 | } |
142 | 144 | ||
@@ -161,6 +163,8 @@ SECTIONS | |||
161 | .DoubleExceptionVector.literal); | 163 | .DoubleExceptionVector.literal); |
162 | RELOCATE_ENTRY(_DoubleExceptionVector_text, | 164 | RELOCATE_ENTRY(_DoubleExceptionVector_text, |
163 | .DoubleExceptionVector.text); | 165 | .DoubleExceptionVector.text); |
166 | RELOCATE_ENTRY(_DebugInterruptVector_text, | ||
167 | .DebugInterruptVector.text); | ||
164 | 168 | ||
165 | __boot_reloc_table_end = ABSOLUTE(.) ; | 169 | __boot_reloc_table_end = ABSOLUTE(.) ; |
166 | } | 170 | } |
diff --git a/arch/xtensa/mm/cache.c b/arch/xtensa/mm/cache.c index 9a1fa9478ae7..3ba990c67676 100644 --- a/arch/xtensa/mm/cache.c +++ b/arch/xtensa/mm/cache.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/swap.h> | 25 | #include <linux/swap.h> |
26 | #include <linux/pagemap.h> | 26 | #include <linux/pagemap.h> |
27 | 27 | ||
28 | #include <asm/pgtable.h> | ||
29 | #include <asm/bootparam.h> | 28 | #include <asm/bootparam.h> |
30 | #include <asm/mmu_context.h> | 29 | #include <asm/mmu_context.h> |
31 | #include <asm/tlb.h> | 30 | #include <asm/tlb.h> |
@@ -181,9 +180,9 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t pte) | |||
181 | #else | 180 | #else |
182 | if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags) | 181 | if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags) |
183 | && (vma->vm_flags & VM_EXEC) != 0) { | 182 | && (vma->vm_flags & VM_EXEC) != 0) { |
184 | unsigned long vaddr = addr & PAGE_MASK; | 183 | unsigned long paddr = (unsigned long) page_address(page); |
185 | __flush_dcache_page(vaddr); | 184 | __flush_dcache_page(paddr); |
186 | __invalidate_icache_page(vaddr); | 185 | __invalidate_icache_page(paddr); |
187 | set_bit(PG_arch_1, &page->flags); | 186 | set_bit(PG_arch_1, &page->flags); |
188 | } | 187 | } |
189 | #endif | 188 | #endif |
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index b3086f34a8e7..81d0560eaea2 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -309,7 +309,7 @@ void show_mem(void) | |||
309 | 309 | ||
310 | struct kmem_cache *pgtable_cache __read_mostly; | 310 | struct kmem_cache *pgtable_cache __read_mostly; |
311 | 311 | ||
312 | static void pgd_ctor(void *addr, struct kmem_cache *cache, unsigned long flags) | 312 | static void pgd_ctor(struct kmem_cache *cache, void* addr) |
313 | { | 313 | { |
314 | pte_t* ptep = (pte_t*)addr; | 314 | pte_t* ptep = (pte_t*)addr; |
315 | int i; | 315 | int i; |
diff --git a/arch/xtensa/mm/misc.S b/arch/xtensa/mm/misc.S index e1f880368e32..c885664211d1 100644 --- a/arch/xtensa/mm/misc.S +++ b/arch/xtensa/mm/misc.S | |||
@@ -295,7 +295,7 @@ ENTRY(__tlbtemp_mapping_itlb) | |||
295 | ENTRY(__invalidate_icache_page_alias) | 295 | ENTRY(__invalidate_icache_page_alias) |
296 | entry sp, 16 | 296 | entry sp, 16 |
297 | 297 | ||
298 | addi a6, a3, (PAGE_KERNEL | _PAGE_HW_WRITE) | 298 | addi a6, a3, (PAGE_KERNEL_EXEC | _PAGE_HW_WRITE) |
299 | mov a4, a2 | 299 | mov a4, a2 |
300 | witlb a6, a2 | 300 | witlb a6, a2 |
301 | isync | 301 | isync |
diff --git a/arch/xtensa/platform-iss/Makefile b/arch/xtensa/platforms/iss/Makefile index af96e314d71f..af96e314d71f 100644 --- a/arch/xtensa/platform-iss/Makefile +++ b/arch/xtensa/platforms/iss/Makefile | |||
diff --git a/arch/xtensa/platform-iss/console.c b/arch/xtensa/platforms/iss/console.c index 854677d0c3f6..9141e3690731 100644 --- a/arch/xtensa/platform-iss/console.c +++ b/arch/xtensa/platforms/iss/console.c | |||
@@ -43,6 +43,7 @@ static DEFINE_SPINLOCK(timer_lock); | |||
43 | 43 | ||
44 | int errno; | 44 | int errno; |
45 | 45 | ||
46 | static int __simc (int a, int b, int c, int d, int e, int f) __attribute__((__noinline__)); | ||
46 | static int __simc (int a, int b, int c, int d, int e, int f) | 47 | static int __simc (int a, int b, int c, int d, int e, int f) |
47 | { | 48 | { |
48 | int ret; | 49 | int ret; |
diff --git a/arch/xtensa/platform-iss/io.c b/arch/xtensa/platforms/iss/io.c index 5b161a5cb65f..5b161a5cb65f 100644 --- a/arch/xtensa/platform-iss/io.c +++ b/arch/xtensa/platforms/iss/io.c | |||
diff --git a/arch/xtensa/platform-iss/network.c b/arch/xtensa/platforms/iss/network.c index f21b9b0899a8..a2e252217428 100644 --- a/arch/xtensa/platform-iss/network.c +++ b/arch/xtensa/platforms/iss/network.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/bootmem.h> | 31 | #include <linux/bootmem.h> |
32 | #include <linux/ethtool.h> | 32 | #include <linux/ethtool.h> |
33 | #include <linux/rtnetlink.h> | 33 | #include <linux/rtnetlink.h> |
34 | #include <linux/timer.h> | ||
35 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
36 | 35 | ||
37 | #include <asm/platform/simcall.h> | 36 | #include <asm/platform/simcall.h> |
@@ -108,6 +107,7 @@ struct iss_net_private { | |||
108 | 107 | ||
109 | static int errno; | 108 | static int errno; |
110 | 109 | ||
110 | static int __simc (int a, int b, int c, int d, int e, int f) __attribute__((__noinline__)); | ||
111 | static int __simc (int a, int b, int c, int d, int e, int f) | 111 | static int __simc (int a, int b, int c, int d, int e, int f) |
112 | { | 112 | { |
113 | int ret; | 113 | int ret; |
diff --git a/arch/xtensa/platform-iss/setup.c b/arch/xtensa/platforms/iss/setup.c index f60c8cf6dfbe..f60c8cf6dfbe 100644 --- a/arch/xtensa/platform-iss/setup.c +++ b/arch/xtensa/platforms/iss/setup.c | |||
diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c b/drivers/infiniband/hw/mthca/mthca_mr.c index 3b6985557cb2..3538da16e3fe 100644 --- a/drivers/infiniband/hw/mthca/mthca_mr.c +++ b/drivers/infiniband/hw/mthca/mthca_mr.c | |||
@@ -686,7 +686,7 @@ err_out_table: | |||
686 | mthca_table_put(dev, dev->mr_table.mpt_table, key); | 686 | mthca_table_put(dev, dev->mr_table.mpt_table, key); |
687 | 687 | ||
688 | err_out_mpt_free: | 688 | err_out_mpt_free: |
689 | mthca_free(&dev->mr_table.mpt_alloc, mr->ibmr.lkey); | 689 | mthca_free(&dev->mr_table.mpt_alloc, key); |
690 | return err; | 690 | return err; |
691 | } | 691 | } |
692 | 692 | ||
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 7dd2ec473d24..52b1bebfa744 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c | |||
@@ -824,7 +824,6 @@ void ipoib_cm_dev_stop(struct net_device *dev) | |||
824 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 824 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
825 | struct ipoib_cm_rx *p; | 825 | struct ipoib_cm_rx *p; |
826 | unsigned long begin; | 826 | unsigned long begin; |
827 | LIST_HEAD(list); | ||
828 | int ret; | 827 | int ret; |
829 | 828 | ||
830 | if (!IPOIB_CM_SUPPORTED(dev->dev_addr) || !priv->cm.id) | 829 | if (!IPOIB_CM_SUPPORTED(dev->dev_addr) || !priv->cm.id) |
@@ -857,9 +856,12 @@ void ipoib_cm_dev_stop(struct net_device *dev) | |||
857 | /* | 856 | /* |
858 | * assume the HW is wedged and just free up everything. | 857 | * assume the HW is wedged and just free up everything. |
859 | */ | 858 | */ |
860 | list_splice_init(&priv->cm.rx_flush_list, &list); | 859 | list_splice_init(&priv->cm.rx_flush_list, |
861 | list_splice_init(&priv->cm.rx_error_list, &list); | 860 | &priv->cm.rx_reap_list); |
862 | list_splice_init(&priv->cm.rx_drain_list, &list); | 861 | list_splice_init(&priv->cm.rx_error_list, |
862 | &priv->cm.rx_reap_list); | ||
863 | list_splice_init(&priv->cm.rx_drain_list, | ||
864 | &priv->cm.rx_reap_list); | ||
863 | break; | 865 | break; |
864 | } | 866 | } |
865 | spin_unlock_irq(&priv->lock); | 867 | spin_unlock_irq(&priv->lock); |
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 2928ef228101..51605870f898 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -1695,14 +1695,15 @@ static int mirror_end_io(struct dm_target *ti, struct bio *bio, | |||
1695 | * information for a retry or there was no other | 1695 | * information for a retry or there was no other |
1696 | * mirror in-sync. | 1696 | * mirror in-sync. |
1697 | */ | 1697 | */ |
1698 | DMERR_LIMIT("Mirror read failed from %s.", | 1698 | DMERR_LIMIT("Mirror read failed."); |
1699 | m->dev->name); | ||
1700 | return -EIO; | 1699 | return -EIO; |
1701 | } | 1700 | } |
1701 | |||
1702 | m = read_record->m; | ||
1703 | |||
1702 | DMERR("Mirror read failed from %s. Trying alternative device.", | 1704 | DMERR("Mirror read failed from %s. Trying alternative device.", |
1703 | m->dev->name); | 1705 | m->dev->name); |
1704 | 1706 | ||
1705 | m = read_record->m; | ||
1706 | fail_mirror(m, DM_RAID1_READ_ERROR); | 1707 | fail_mirror(m, DM_RAID1_READ_ERROR); |
1707 | 1708 | ||
1708 | /* | 1709 | /* |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index f784d2f34149..f054778e916c 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -238,6 +238,9 @@ | |||
238 | *(.kprobes.text) \ | 238 | *(.kprobes.text) \ |
239 | VMLINUX_SYMBOL(__kprobes_text_end) = .; | 239 | VMLINUX_SYMBOL(__kprobes_text_end) = .; |
240 | 240 | ||
241 | /* Section used for early init (in .S files) */ | ||
242 | #define HEAD_TEXT *(.head.text) | ||
243 | |||
241 | /* init and exit section handling */ | 244 | /* init and exit section handling */ |
242 | #define INIT_DATA \ | 245 | #define INIT_DATA \ |
243 | *(.init.data) \ | 246 | *(.init.data) \ |
diff --git a/include/asm-mips/mach-ip27/dma-coherence.h b/include/asm-mips/mach-ip27/dma-coherence.h index 3fdbbf68e952..ed7e6222dc15 100644 --- a/include/asm-mips/mach-ip27/dma-coherence.h +++ b/include/asm-mips/mach-ip27/dma-coherence.h | |||
@@ -35,7 +35,7 @@ static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) | |||
35 | 35 | ||
36 | static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) | 36 | static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) |
37 | { | 37 | { |
38 | return dma_addr & (0xffUL << 56); | 38 | return dma_addr & ~(0xffUL << 56); |
39 | } | 39 | } |
40 | 40 | ||
41 | static inline void plat_unmap_dma_mem(dma_addr_t dma_addr) | 41 | static inline void plat_unmap_dma_mem(dma_addr_t dma_addr) |
diff --git a/include/asm-mips/qemu.h b/include/asm-mips/qemu.h deleted file mode 100644 index 487ced4a40de..000000000000 --- a/include/asm-mips/qemu.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2005 by Ralf Baechle (ralf@linux-mips.org) | ||
7 | */ | ||
8 | #ifndef __ASM_QEMU_H | ||
9 | #define __ASM_QEMU_H | ||
10 | |||
11 | /* | ||
12 | * Interrupt numbers | ||
13 | */ | ||
14 | #define Q_PIC_IRQ_BASE 0 | ||
15 | #define Q_COUNT_COMPARE_IRQ 23 | ||
16 | |||
17 | /* | ||
18 | * Qemu clock rate. Unlike on real MIPS this has no relation to the | ||
19 | * instruction issue rate, so the choosen value is pure fiction, just needs | ||
20 | * to match the value in Qemu itself. | ||
21 | */ | ||
22 | #define QEMU_C0_COUNTER_CLOCK 100000000 | ||
23 | |||
24 | /* | ||
25 | * Magic qemu system control location. | ||
26 | */ | ||
27 | #define QEMU_RESTART_REG 0xBFBF0000 | ||
28 | #define QEMU_HALT_REG 0xBFBF0004 | ||
29 | |||
30 | #endif /* __ASM_QEMU_H */ | ||
diff --git a/include/asm-mips/sni.h b/include/asm-mips/sni.h index e716447e5e03..8c1eb02c6d16 100644 --- a/include/asm-mips/sni.h +++ b/include/asm-mips/sni.h | |||
@@ -228,7 +228,14 @@ extern void sni_pcimt_irq_init(void); | |||
228 | extern void sni_cpu_time_init(void); | 228 | extern void sni_cpu_time_init(void); |
229 | 229 | ||
230 | /* eisa init for RM200/400 */ | 230 | /* eisa init for RM200/400 */ |
231 | #ifdef CONFIG_EISA | ||
231 | extern int sni_eisa_root_init(void); | 232 | extern int sni_eisa_root_init(void); |
233 | #else | ||
234 | static inline int sni_eisa_root_init(void) | ||
235 | { | ||
236 | return 0; | ||
237 | } | ||
238 | #endif | ||
232 | 239 | ||
233 | /* common irq stuff */ | 240 | /* common irq stuff */ |
234 | extern void (*sni_hwint)(void); | 241 | extern void (*sni_hwint)(void); |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index fa9a587b3bf1..4964c82f85f9 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -341,16 +341,19 @@ | |||
341 | #define __NR_timerfd (__NR_Linux + 318) | 341 | #define __NR_timerfd (__NR_Linux + 318) |
342 | #define __NR_eventfd (__NR_Linux + 319) | 342 | #define __NR_eventfd (__NR_Linux + 319) |
343 | #define __NR_fallocate (__NR_Linux + 320) | 343 | #define __NR_fallocate (__NR_Linux + 320) |
344 | #define __NR_timerfd_create (__NR_Linux + 321) | ||
345 | #define __NR_timerfd_gettime (__NR_Linux + 322) | ||
346 | #define __NR_timerfd_settime (__NR_Linux + 323) | ||
344 | 347 | ||
345 | /* | 348 | /* |
346 | * Offset of the last Linux o32 flavoured syscall | 349 | * Offset of the last Linux o32 flavoured syscall |
347 | */ | 350 | */ |
348 | #define __NR_Linux_syscalls 320 | 351 | #define __NR_Linux_syscalls 323 |
349 | 352 | ||
350 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 353 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
351 | 354 | ||
352 | #define __NR_O32_Linux 4000 | 355 | #define __NR_O32_Linux 4000 |
353 | #define __NR_O32_Linux_syscalls 320 | 356 | #define __NR_O32_Linux_syscalls 323 |
354 | 357 | ||
355 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 358 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
356 | 359 | ||
@@ -638,16 +641,19 @@ | |||
638 | #define __NR_timerfd (__NR_Linux + 277) | 641 | #define __NR_timerfd (__NR_Linux + 277) |
639 | #define __NR_eventfd (__NR_Linux + 278) | 642 | #define __NR_eventfd (__NR_Linux + 278) |
640 | #define __NR_fallocate (__NR_Linux + 279) | 643 | #define __NR_fallocate (__NR_Linux + 279) |
644 | #define __NR_timerfd_create (__NR_Linux + 280) | ||
645 | #define __NR_timerfd_gettime (__NR_Linux + 281) | ||
646 | #define __NR_timerfd_settime (__NR_Linux + 282) | ||
641 | 647 | ||
642 | /* | 648 | /* |
643 | * Offset of the last Linux 64-bit flavoured syscall | 649 | * Offset of the last Linux 64-bit flavoured syscall |
644 | */ | 650 | */ |
645 | #define __NR_Linux_syscalls 279 | 651 | #define __NR_Linux_syscalls 282 |
646 | 652 | ||
647 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 653 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
648 | 654 | ||
649 | #define __NR_64_Linux 5000 | 655 | #define __NR_64_Linux 5000 |
650 | #define __NR_64_Linux_syscalls 279 | 656 | #define __NR_64_Linux_syscalls 282 |
651 | 657 | ||
652 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 658 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
653 | 659 | ||
@@ -939,16 +945,19 @@ | |||
939 | #define __NR_timerfd (__NR_Linux + 281) | 945 | #define __NR_timerfd (__NR_Linux + 281) |
940 | #define __NR_eventfd (__NR_Linux + 282) | 946 | #define __NR_eventfd (__NR_Linux + 282) |
941 | #define __NR_fallocate (__NR_Linux + 283) | 947 | #define __NR_fallocate (__NR_Linux + 283) |
948 | #define __NR_timerfd_create (__NR_Linux + 284) | ||
949 | #define __NR_timerfd_gettime (__NR_Linux + 285) | ||
950 | #define __NR_timerfd_settime (__NR_Linux + 286) | ||
942 | 951 | ||
943 | /* | 952 | /* |
944 | * Offset of the last N32 flavoured syscall | 953 | * Offset of the last N32 flavoured syscall |
945 | */ | 954 | */ |
946 | #define __NR_Linux_syscalls 283 | 955 | #define __NR_Linux_syscalls 286 |
947 | 956 | ||
948 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 957 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
949 | 958 | ||
950 | #define __NR_N32_Linux 6000 | 959 | #define __NR_N32_Linux 6000 |
951 | #define __NR_N32_Linux_syscalls 283 | 960 | #define __NR_N32_Linux_syscalls 286 |
952 | 961 | ||
953 | #ifdef __KERNEL__ | 962 | #ifdef __KERNEL__ |
954 | 963 | ||
diff --git a/include/asm-x86/i387.h b/include/asm-x86/i387.h index 6b1895ccd6b7..f377b76b2f34 100644 --- a/include/asm-x86/i387.h +++ b/include/asm-x86/i387.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <asm/uaccess.h> | 20 | #include <asm/uaccess.h> |
21 | 21 | ||
22 | extern void fpu_init(void); | 22 | extern void fpu_init(void); |
23 | extern unsigned int mxcsr_feature_mask; | ||
24 | extern void mxcsr_feature_mask_init(void); | 23 | extern void mxcsr_feature_mask_init(void); |
25 | extern void init_fpu(struct task_struct *child); | 24 | extern void init_fpu(struct task_struct *child); |
26 | extern asmlinkage void math_state_restore(void); | 25 | extern asmlinkage void math_state_restore(void); |
diff --git a/include/asm-x86/pgtable_64.h b/include/asm-x86/pgtable_64.h index 7fd5e0e2361e..0a0b77bc736a 100644 --- a/include/asm-x86/pgtable_64.h +++ b/include/asm-x86/pgtable_64.h | |||
@@ -188,6 +188,7 @@ static inline unsigned long pmd_bad(pmd_t pmd) | |||
188 | #define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr)) | 188 | #define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr)) |
189 | #define pgd_offset_k(address) (init_level4_pgt + pgd_index(address)) | 189 | #define pgd_offset_k(address) (init_level4_pgt + pgd_index(address)) |
190 | #define pgd_present(pgd) (pgd_val(pgd) & _PAGE_PRESENT) | 190 | #define pgd_present(pgd) (pgd_val(pgd) & _PAGE_PRESENT) |
191 | static inline int pgd_large(pgd_t pgd) { return 0; } | ||
191 | #define mk_kernel_pgd(address) ((pgd_t){ (address) | _KERNPG_TABLE }) | 192 | #define mk_kernel_pgd(address) ((pgd_t){ (address) | _KERNPG_TABLE }) |
192 | 193 | ||
193 | /* PUD - Level3 access */ | 194 | /* PUD - Level3 access */ |
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 149920dcd341..45a2f0ab33d0 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -302,10 +302,6 @@ union i387_union { | |||
302 | }; | 302 | }; |
303 | 303 | ||
304 | #ifdef CONFIG_X86_32 | 304 | #ifdef CONFIG_X86_32 |
305 | /* | ||
306 | * the following now lives in the per cpu area: | ||
307 | * extern int cpu_llc_id[NR_CPUS]; | ||
308 | */ | ||
309 | DECLARE_PER_CPU(u8, cpu_llc_id); | 305 | DECLARE_PER_CPU(u8, cpu_llc_id); |
310 | #else | 306 | #else |
311 | DECLARE_PER_CPU(struct orig_ist, orig_ist); | 307 | DECLARE_PER_CPU(struct orig_ist, orig_ist); |
@@ -671,7 +667,6 @@ extern void init_gdt(int cpu); | |||
671 | extern unsigned int machine_id; | 667 | extern unsigned int machine_id; |
672 | extern unsigned int machine_submodel_id; | 668 | extern unsigned int machine_submodel_id; |
673 | extern unsigned int BIOS_revision; | 669 | extern unsigned int BIOS_revision; |
674 | extern unsigned int mca_pentium_flag; | ||
675 | 670 | ||
676 | /* Boot loader type from the setup header */ | 671 | /* Boot loader type from the setup header */ |
677 | extern int bootloader_type; | 672 | extern int bootloader_type; |
diff --git a/include/asm-xtensa/cacheflush.h b/include/asm-xtensa/cacheflush.h index b773c57e75a5..94c4c53a099e 100644 --- a/include/asm-xtensa/cacheflush.h +++ b/include/asm-xtensa/cacheflush.h | |||
@@ -70,6 +70,8 @@ extern void __flush_invalidate_dcache_page_alias(unsigned long, unsigned long); | |||
70 | #endif | 70 | #endif |
71 | #if (ICACHE_WAY_SIZE > PAGE_SIZE) | 71 | #if (ICACHE_WAY_SIZE > PAGE_SIZE) |
72 | extern void __invalidate_icache_page_alias(unsigned long, unsigned long); | 72 | extern void __invalidate_icache_page_alias(unsigned long, unsigned long); |
73 | #else | ||
74 | # define __invalidate_icache_page_alias(v,p) do { } while(0) | ||
73 | #endif | 75 | #endif |
74 | 76 | ||
75 | /* | 77 | /* |
diff --git a/include/asm-xtensa/coprocessor.h b/include/asm-xtensa/coprocessor.h index aa2121034558..1cbcf9001a41 100644 --- a/include/asm-xtensa/coprocessor.h +++ b/include/asm-xtensa/coprocessor.h | |||
@@ -5,81 +5,173 @@ | |||
5 | * License. See the file "COPYING" in the main directory of this archive | 5 | * License. See the file "COPYING" in the main directory of this archive |
6 | * for more details. | 6 | * for more details. |
7 | * | 7 | * |
8 | * Copyright (C) 2003 - 2005 Tensilica Inc. | 8 | * Copyright (C) 2003 - 2007 Tensilica Inc. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | |||
11 | #ifndef _XTENSA_COPROCESSOR_H | 12 | #ifndef _XTENSA_COPROCESSOR_H |
12 | #define _XTENSA_COPROCESSOR_H | 13 | #define _XTENSA_COPROCESSOR_H |
13 | 14 | ||
14 | #include <asm/variant/core.h> | 15 | #include <linux/stringify.h> |
15 | #include <asm/variant/tie.h> | 16 | #include <asm/variant/tie.h> |
17 | #include <asm/types.h> | ||
18 | |||
19 | #ifdef __ASSEMBLY__ | ||
20 | # include <asm/variant/tie-asm.h> | ||
21 | |||
22 | .macro xchal_sa_start a b | ||
23 | .set .Lxchal_pofs_, 0 | ||
24 | .set .Lxchal_ofs_, 0 | ||
25 | .endm | ||
26 | |||
27 | .macro xchal_sa_align ptr minofs maxofs ofsalign totalign | ||
28 | .set .Lxchal_ofs_, .Lxchal_ofs_ + .Lxchal_pofs_ + \totalign - 1 | ||
29 | .set .Lxchal_ofs_, (.Lxchal_ofs_ & -\totalign) - .Lxchal_pofs_ | ||
30 | .endm | ||
31 | |||
32 | #define _SELECT ( XTHAL_SAS_TIE | XTHAL_SAS_OPT \ | ||
33 | | XTHAL_SAS_CC \ | ||
34 | | XTHAL_SAS_CALR | XTHAL_SAS_CALE ) | ||
35 | |||
36 | .macro save_xtregs_opt ptr clb at1 at2 at3 at4 offset | ||
37 | .if XTREGS_OPT_SIZE > 0 | ||
38 | addi \clb, \ptr, \offset | ||
39 | xchal_ncp_store \clb \at1 \at2 \at3 \at4 select=_SELECT | ||
40 | .endif | ||
41 | .endm | ||
42 | |||
43 | .macro load_xtregs_opt ptr clb at1 at2 at3 at4 offset | ||
44 | .if XTREGS_OPT_SIZE > 0 | ||
45 | addi \clb, \ptr, \offset | ||
46 | xchal_ncp_load \clb \at1 \at2 \at3 \at4 select=_SELECT | ||
47 | .endif | ||
48 | .endm | ||
49 | #undef _SELECT | ||
50 | |||
51 | #define _SELECT ( XTHAL_SAS_TIE | XTHAL_SAS_OPT \ | ||
52 | | XTHAL_SAS_NOCC \ | ||
53 | | XTHAL_SAS_CALR | XTHAL_SAS_CALE | XTHAL_SAS_GLOB ) | ||
54 | |||
55 | .macro save_xtregs_user ptr clb at1 at2 at3 at4 offset | ||
56 | .if XTREGS_USER_SIZE > 0 | ||
57 | addi \clb, \ptr, \offset | ||
58 | xchal_ncp_store \clb \at1 \at2 \at3 \at4 select=_SELECT | ||
59 | .endif | ||
60 | .endm | ||
61 | |||
62 | .macro load_xtregs_user ptr clb at1 at2 at3 at4 offset | ||
63 | .if XTREGS_USER_SIZE > 0 | ||
64 | addi \clb, \ptr, \offset | ||
65 | xchal_ncp_load \clb \at1 \at2 \at3 \at4 select=_SELECT | ||
66 | .endif | ||
67 | .endm | ||
68 | #undef _SELECT | ||
69 | |||
70 | |||
71 | |||
72 | #endif /* __ASSEMBLY__ */ | ||
16 | 73 | ||
17 | #if !XCHAL_HAVE_CP | ||
18 | |||
19 | #define XTENSA_CP_EXTRA_OFFSET 0 | ||
20 | #define XTENSA_CP_EXTRA_ALIGN 1 /* must be a power of 2 */ | ||
21 | #define XTENSA_CP_EXTRA_SIZE 0 | ||
22 | |||
23 | #else | ||
24 | |||
25 | #define XTOFS(last_start,last_size,align) \ | ||
26 | ((last_start+last_size+align-1) & -align) | ||
27 | |||
28 | #define XTENSA_CP_EXTRA_OFFSET 0 | ||
29 | #define XTENSA_CP_EXTRA_ALIGN XCHAL_EXTRA_SA_ALIGN | ||
30 | |||
31 | #define XTENSA_CPE_CP0_OFFSET \ | ||
32 | XTOFS(XTENSA_CP_EXTRA_OFFSET, XCHAL_EXTRA_SA_SIZE, XCHAL_CP0_SA_ALIGN) | ||
33 | #define XTENSA_CPE_CP1_OFFSET \ | ||
34 | XTOFS(XTENSA_CPE_CP0_OFFSET, XCHAL_CP0_SA_SIZE, XCHAL_CP1_SA_ALIGN) | ||
35 | #define XTENSA_CPE_CP2_OFFSET \ | ||
36 | XTOFS(XTENSA_CPE_CP1_OFFSET, XCHAL_CP1_SA_SIZE, XCHAL_CP2_SA_ALIGN) | ||
37 | #define XTENSA_CPE_CP3_OFFSET \ | ||
38 | XTOFS(XTENSA_CPE_CP2_OFFSET, XCHAL_CP2_SA_SIZE, XCHAL_CP3_SA_ALIGN) | ||
39 | #define XTENSA_CPE_CP4_OFFSET \ | ||
40 | XTOFS(XTENSA_CPE_CP3_OFFSET, XCHAL_CP3_SA_SIZE, XCHAL_CP4_SA_ALIGN) | ||
41 | #define XTENSA_CPE_CP5_OFFSET \ | ||
42 | XTOFS(XTENSA_CPE_CP4_OFFSET, XCHAL_CP4_SA_SIZE, XCHAL_CP5_SA_ALIGN) | ||
43 | #define XTENSA_CPE_CP6_OFFSET \ | ||
44 | XTOFS(XTENSA_CPE_CP5_OFFSET, XCHAL_CP5_SA_SIZE, XCHAL_CP6_SA_ALIGN) | ||
45 | #define XTENSA_CPE_CP7_OFFSET \ | ||
46 | XTOFS(XTENSA_CPE_CP6_OFFSET, XCHAL_CP6_SA_SIZE, XCHAL_CP7_SA_ALIGN) | ||
47 | #define XTENSA_CP_EXTRA_SIZE \ | ||
48 | XTOFS(XTENSA_CPE_CP7_OFFSET, XCHAL_CP7_SA_SIZE, 16) | ||
49 | |||
50 | #if XCHAL_CP_NUM > 0 | ||
51 | # ifndef __ASSEMBLY__ | ||
52 | /* | 74 | /* |
53 | * Tasks that own contents of (last user) each coprocessor. | 75 | * XTENSA_HAVE_COPROCESSOR(x) returns 1 if coprocessor x is configured. |
54 | * Entries are 0 for not-owned or non-existent coprocessors. | 76 | * |
55 | * Note: The size of this structure is fixed to 8 bytes in entry.S | 77 | * XTENSA_HAVE_IO_PORT(x) returns 1 if io-port x is configured. |
78 | * | ||
56 | */ | 79 | */ |
57 | typedef struct { | ||
58 | struct task_struct *owner; /* owner */ | ||
59 | int offset; /* offset in cpextra space. */ | ||
60 | } coprocessor_info_t; | ||
61 | # else | ||
62 | # define COPROCESSOR_INFO_OWNER 0 | ||
63 | # define COPROCESSOR_INFO_OFFSET 4 | ||
64 | # define COPROCESSOR_INFO_SIZE 8 | ||
65 | # endif | ||
66 | #endif | ||
67 | #endif /* XCHAL_HAVE_CP */ | ||
68 | 80 | ||
81 | #define XTENSA_HAVE_COPROCESSOR(x) \ | ||
82 | ((XCHAL_CP_MASK ^ XCHAL_CP_PORT_MASK) & (1 << (x))) | ||
83 | #define XTENSA_HAVE_COPROCESSORS \ | ||
84 | (XCHAL_CP_MASK ^ XCHAL_CP_PORT_MASK) | ||
85 | #define XTENSA_HAVE_IO_PORT(x) \ | ||
86 | (XCHAL_CP_PORT_MASK & (1 << (x))) | ||
87 | #define XTENSA_HAVE_IO_PORTS \ | ||
88 | XCHAL_CP_PORT_MASK | ||
69 | 89 | ||
70 | #ifndef __ASSEMBLY__ | 90 | #ifndef __ASSEMBLY__ |
71 | # if XCHAL_CP_NUM > 0 | ||
72 | struct task_struct; | ||
73 | extern void release_coprocessors (struct task_struct*); | ||
74 | extern void save_coprocessor_registers(void*, int); | ||
75 | # else | ||
76 | # define release_coprocessors(task) | ||
77 | # endif | ||
78 | 91 | ||
79 | typedef unsigned char cp_state_t[XTENSA_CP_EXTRA_SIZE] | ||
80 | __attribute__ ((aligned (XTENSA_CP_EXTRA_ALIGN))); | ||
81 | 92 | ||
82 | #endif /* !__ASSEMBLY__ */ | 93 | #if XCHAL_HAVE_CP |
94 | |||
95 | #define RSR_CPENABLE(x) do { \ | ||
96 | __asm__ __volatile__("rsr %0," __stringify(CPENABLE) : "=a" (x)); \ | ||
97 | } while(0); | ||
98 | #define WSR_CPENABLE(x) do { \ | ||
99 | __asm__ __volatile__("wsr %0," __stringify(CPENABLE) "; rsync" \ | ||
100 | :: "a" (x)); \ | ||
101 | } while(0); | ||
83 | 102 | ||
103 | #endif /* XCHAL_HAVE_CP */ | ||
84 | 104 | ||
105 | |||
106 | /* | ||
107 | * Additional registers. | ||
108 | * We define three types of additional registers: | ||
109 | * ext: extra registers that are used by the compiler | ||
110 | * cpn: optional registers that can be used by a user application | ||
111 | * cpX: coprocessor registers that can only be used if the corresponding | ||
112 | * CPENABLE bit is set. | ||
113 | */ | ||
114 | |||
115 | #define XCHAL_SA_REG(list,cc,abi,type,y,name,z,align,size,...) \ | ||
116 | __REG ## list (cc, abi, type, name, size, align) | ||
117 | |||
118 | #define __REG0(cc,abi,t,name,s,a) __REG0_ ## cc (abi,name) | ||
119 | #define __REG1(cc,abi,t,name,s,a) __REG1_ ## cc (name) | ||
120 | #define __REG2(cc,abi,type,...) __REG2_ ## type (__VA_ARGS__) | ||
121 | |||
122 | #define __REG0_0(abi,name) | ||
123 | #define __REG0_1(abi,name) __REG0_1 ## abi (name) | ||
124 | #define __REG0_10(name) __u32 name; | ||
125 | #define __REG0_11(name) __u32 name; | ||
126 | #define __REG0_12(name) | ||
127 | |||
128 | #define __REG1_0(name) __u32 name; | ||
129 | #define __REG1_1(name) | ||
130 | |||
131 | #define __REG2_0(n,s,a) __u32 name; | ||
132 | #define __REG2_1(n,s,a) unsigned char n[s] __attribute__ ((aligned(a))); | ||
133 | #define __REG2_2(n,s,a) unsigned char n[s] __attribute__ ((aligned(a))); | ||
134 | |||
135 | typedef struct { XCHAL_NCP_SA_LIST(0) } xtregs_opt_t | ||
136 | __attribute__ ((aligned (XCHAL_NCP_SA_ALIGN))); | ||
137 | typedef struct { XCHAL_NCP_SA_LIST(1) } xtregs_user_t | ||
138 | __attribute__ ((aligned (XCHAL_NCP_SA_ALIGN))); | ||
139 | |||
140 | #if XTENSA_HAVE_COPROCESSORS | ||
141 | |||
142 | typedef struct { XCHAL_CP0_SA_LIST(2) } xtregs_cp0_t | ||
143 | __attribute__ ((aligned (XCHAL_CP0_SA_ALIGN))); | ||
144 | typedef struct { XCHAL_CP1_SA_LIST(2) } xtregs_cp1_t | ||
145 | __attribute__ ((aligned (XCHAL_CP1_SA_ALIGN))); | ||
146 | typedef struct { XCHAL_CP2_SA_LIST(2) } xtregs_cp2_t | ||
147 | __attribute__ ((aligned (XCHAL_CP2_SA_ALIGN))); | ||
148 | typedef struct { XCHAL_CP3_SA_LIST(2) } xtregs_cp3_t | ||
149 | __attribute__ ((aligned (XCHAL_CP3_SA_ALIGN))); | ||
150 | typedef struct { XCHAL_CP4_SA_LIST(2) } xtregs_cp4_t | ||
151 | __attribute__ ((aligned (XCHAL_CP4_SA_ALIGN))); | ||
152 | typedef struct { XCHAL_CP5_SA_LIST(2) } xtregs_cp5_t | ||
153 | __attribute__ ((aligned (XCHAL_CP5_SA_ALIGN))); | ||
154 | typedef struct { XCHAL_CP6_SA_LIST(2) } xtregs_cp6_t | ||
155 | __attribute__ ((aligned (XCHAL_CP6_SA_ALIGN))); | ||
156 | typedef struct { XCHAL_CP7_SA_LIST(2) } xtregs_cp7_t | ||
157 | __attribute__ ((aligned (XCHAL_CP7_SA_ALIGN))); | ||
158 | |||
159 | extern struct thread_info* coprocessor_owner[XCHAL_CP_MAX]; | ||
160 | extern void coprocessor_save(void*, int); | ||
161 | extern void coprocessor_load(void*, int); | ||
162 | extern void coprocessor_flush(struct thread_info*, int); | ||
163 | extern void coprocessor_restore(struct thread_info*, int); | ||
164 | |||
165 | extern void coprocessor_release_all(struct thread_info*); | ||
166 | extern void coprocessor_flush_all(struct thread_info*); | ||
167 | |||
168 | static inline void coprocessor_clear_cpenable(void) | ||
169 | { | ||
170 | unsigned long i = 0; | ||
171 | WSR_CPENABLE(i); | ||
172 | } | ||
173 | |||
174 | #endif /* XTENSA_HAVE_COPROCESSORS */ | ||
175 | |||
176 | #endif /* !__ASSEMBLY__ */ | ||
85 | #endif /* _XTENSA_COPROCESSOR_H */ | 177 | #endif /* _XTENSA_COPROCESSOR_H */ |
diff --git a/include/asm-xtensa/elf.h b/include/asm-xtensa/elf.h index 467384542502..ca6e5101a2cb 100644 --- a/include/asm-xtensa/elf.h +++ b/include/asm-xtensa/elf.h | |||
@@ -72,115 +72,32 @@ | |||
72 | 72 | ||
73 | /* ELF register definitions. This is needed for core dump support. */ | 73 | /* ELF register definitions. This is needed for core dump support. */ |
74 | 74 | ||
75 | /* | ||
76 | * elf_gregset_t contains the application-level state in the following order: | ||
77 | * Processor info: config_version, cpuxy | ||
78 | * Processor state: pc, ps, exccause, excvaddr, wb, ws, | ||
79 | * lbeg, lend, lcount, sar | ||
80 | * GP regs: ar0 - arXX | ||
81 | */ | ||
82 | |||
83 | typedef unsigned long elf_greg_t; | 75 | typedef unsigned long elf_greg_t; |
84 | 76 | ||
85 | typedef struct { | 77 | typedef struct { |
86 | elf_greg_t xchal_config_id0; | ||
87 | elf_greg_t xchal_config_id1; | ||
88 | elf_greg_t cpux; | ||
89 | elf_greg_t cpuy; | ||
90 | elf_greg_t pc; | 78 | elf_greg_t pc; |
91 | elf_greg_t ps; | 79 | elf_greg_t ps; |
92 | elf_greg_t exccause; | ||
93 | elf_greg_t excvaddr; | ||
94 | elf_greg_t windowbase; | ||
95 | elf_greg_t windowstart; | ||
96 | elf_greg_t lbeg; | 80 | elf_greg_t lbeg; |
97 | elf_greg_t lend; | 81 | elf_greg_t lend; |
98 | elf_greg_t lcount; | 82 | elf_greg_t lcount; |
99 | elf_greg_t sar; | 83 | elf_greg_t sar; |
100 | elf_greg_t syscall; | 84 | elf_greg_t windowstart; |
101 | elf_greg_t ar[64]; | 85 | elf_greg_t windowbase; |
86 | elf_greg_t reserved[8+48]; | ||
87 | elf_greg_t a[64]; | ||
102 | } xtensa_gregset_t; | 88 | } xtensa_gregset_t; |
103 | 89 | ||
104 | #define ELF_NGREG (sizeof(xtensa_gregset_t) / sizeof(elf_greg_t)) | 90 | #define ELF_NGREG (sizeof(xtensa_gregset_t) / sizeof(elf_greg_t)) |
105 | 91 | ||
106 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | 92 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; |
107 | 93 | ||
108 | /* | 94 | #define ELF_NFPREG 18 |
109 | * Compute the size of the coprocessor and extra state layout (register info) | ||
110 | * table (in bytes). | ||
111 | * This is actually the maximum size of the table, as opposed to the size, | ||
112 | * which is available from the _xtensa_reginfo_table_size global variable. | ||
113 | * | ||
114 | * (See also arch/xtensa/kernel/coprocessor.S) | ||
115 | * | ||
116 | */ | ||
117 | |||
118 | #ifndef XCHAL_EXTRA_SA_CONTENTS_LIBDB_NUM | ||
119 | # define XTENSA_CPE_LTABLE_SIZE 0 | ||
120 | #else | ||
121 | # define XTENSA_CPE_SEGMENT(num) (num ? (1+num) : 0) | ||
122 | # define XTENSA_CPE_LTABLE_ENTRIES \ | ||
123 | ( XTENSA_CPE_SEGMENT(XCHAL_EXTRA_SA_CONTENTS_LIBDB_NUM) \ | ||
124 | + XTENSA_CPE_SEGMENT(XCHAL_CP0_SA_CONTENTS_LIBDB_NUM) \ | ||
125 | + XTENSA_CPE_SEGMENT(XCHAL_CP1_SA_CONTENTS_LIBDB_NUM) \ | ||
126 | + XTENSA_CPE_SEGMENT(XCHAL_CP2_SA_CONTENTS_LIBDB_NUM) \ | ||
127 | + XTENSA_CPE_SEGMENT(XCHAL_CP3_SA_CONTENTS_LIBDB_NUM) \ | ||
128 | + XTENSA_CPE_SEGMENT(XCHAL_CP4_SA_CONTENTS_LIBDB_NUM) \ | ||
129 | + XTENSA_CPE_SEGMENT(XCHAL_CP5_SA_CONTENTS_LIBDB_NUM) \ | ||
130 | + XTENSA_CPE_SEGMENT(XCHAL_CP6_SA_CONTENTS_LIBDB_NUM) \ | ||
131 | + XTENSA_CPE_SEGMENT(XCHAL_CP7_SA_CONTENTS_LIBDB_NUM) \ | ||
132 | + 1 /* final entry */ \ | ||
133 | ) | ||
134 | # define XTENSA_CPE_LTABLE_SIZE (XTENSA_CPE_LTABLE_ENTRIES * 8) | ||
135 | #endif | ||
136 | |||
137 | |||
138 | /* | ||
139 | * Instantiations of the elf_fpregset_t type contain, in most | ||
140 | * architectures, the floating point (FPU) register set. | ||
141 | * For Xtensa, this type is extended to contain all custom state, | ||
142 | * ie. coprocessor and "extra" (non-coprocessor) state (including, | ||
143 | * for example, TIE-defined states and register files; as well | ||
144 | * as other optional processor state). | ||
145 | * This includes FPU state if a floating-point coprocessor happens | ||
146 | * to have been configured within the Xtensa processor. | ||
147 | * | ||
148 | * TOTAL_FPREGS_SIZE is the required size (without rounding) | ||
149 | * of elf_fpregset_t. It provides space for the following: | ||
150 | * | ||
151 | * a) 32-bit mask of active coprocessors for this task (similar | ||
152 | * to CPENABLE in single-threaded Xtensa processor systems) | ||
153 | * | ||
154 | * b) table describing the layout of custom states (ie. of | ||
155 | * individual registers, etc) within the save areas | ||
156 | * | ||
157 | * c) save areas for each coprocessor and for non-coprocessor | ||
158 | * ("extra") state | ||
159 | * | ||
160 | * Note that save areas may require up to 16-byte alignment when | ||
161 | * accessed by save/restore sequences. We do not need to ensure | ||
162 | * such alignment in an elf_fpregset_t structure because custom | ||
163 | * state is not directly loaded/stored into it; rather, save area | ||
164 | * contents are copied to elf_fpregset_t from the active save areas | ||
165 | * (see 'struct task_struct' definition in processor.h for that) | ||
166 | * using memcpy(). But we do allow space for such alignment, | ||
167 | * to allow optimizations of layout and copying. | ||
168 | */ | ||
169 | #if 0 | ||
170 | #define TOTAL_FPREGS_SIZE \ | ||
171 | (4 + XTENSA_CPE_LTABLE_SIZE + XTENSA_CP_EXTRA_SIZE) | ||
172 | #define ELF_NFPREG \ | ||
173 | ((TOTAL_FPREGS_SIZE + sizeof(elf_fpreg_t) - 1) / sizeof(elf_fpreg_t)) | ||
174 | #else | ||
175 | #define TOTAL_FPREGS_SIZE 0 | ||
176 | #define ELF_NFPREG 0 | ||
177 | #endif | ||
178 | 95 | ||
179 | typedef unsigned int elf_fpreg_t; | 96 | typedef unsigned int elf_fpreg_t; |
180 | typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; | 97 | typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; |
181 | 98 | ||
182 | #define ELF_CORE_COPY_REGS(_eregs, _pregs) \ | 99 | #define ELF_CORE_COPY_REGS(_eregs, _pregs) \ |
183 | xtensa_elf_core_copy_regs (&_eregs, _pregs); | 100 | xtensa_elf_core_copy_regs ((xtensa_gregset_t*)&(_eregs), _pregs); |
184 | 101 | ||
185 | extern void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *); | 102 | extern void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *); |
186 | 103 | ||
@@ -257,6 +174,21 @@ extern void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *); | |||
257 | _r->areg[12]=0; _r->areg[13]=0; _r->areg[14]=0; _r->areg[15]=0; \ | 174 | _r->areg[12]=0; _r->areg[13]=0; _r->areg[14]=0; _r->areg[15]=0; \ |
258 | } while (0) | 175 | } while (0) |
259 | 176 | ||
177 | typedef struct { | ||
178 | xtregs_opt_t opt; | ||
179 | xtregs_user_t user; | ||
180 | #if XTENSA_HAVE_COPROCESSORS | ||
181 | xtregs_cp0_t cp0; | ||
182 | xtregs_cp1_t cp1; | ||
183 | xtregs_cp2_t cp2; | ||
184 | xtregs_cp3_t cp3; | ||
185 | xtregs_cp4_t cp4; | ||
186 | xtregs_cp5_t cp5; | ||
187 | xtregs_cp6_t cp6; | ||
188 | xtregs_cp7_t cp7; | ||
189 | #endif | ||
190 | } elf_xtregs_t; | ||
191 | |||
260 | #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT) | 192 | #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT) |
261 | 193 | ||
262 | struct task_struct; | 194 | struct task_struct; |
diff --git a/include/asm-xtensa/module.h b/include/asm-xtensa/module.h index ffb25bfdf6a1..d9b34bee4d42 100644 --- a/include/asm-xtensa/module.h +++ b/include/asm-xtensa/module.h | |||
@@ -15,9 +15,11 @@ | |||
15 | 15 | ||
16 | struct mod_arch_specific | 16 | struct mod_arch_specific |
17 | { | 17 | { |
18 | /* Module support is not completely implemented. */ | 18 | /* No special elements, yet. */ |
19 | }; | 19 | }; |
20 | 20 | ||
21 | #define MODULE_ARCH_VERMAGIC "xtensa-" __stringify(XCHAL_CORE_ID) " " | ||
22 | |||
21 | #define Elf_Shdr Elf32_Shdr | 23 | #define Elf_Shdr Elf32_Shdr |
22 | #define Elf_Sym Elf32_Sym | 24 | #define Elf_Sym Elf32_Sym |
23 | #define Elf_Ehdr Elf32_Ehdr | 25 | #define Elf_Ehdr Elf32_Ehdr |
diff --git a/include/asm-xtensa/pgalloc.h b/include/asm-xtensa/pgalloc.h index 8d1544eb461e..4f4a7987eded 100644 --- a/include/asm-xtensa/pgalloc.h +++ b/include/asm-xtensa/pgalloc.h | |||
@@ -47,7 +47,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, | |||
47 | return kmem_cache_alloc(pgtable_cache, GFP_KERNEL|__GFP_REPEAT); | 47 | return kmem_cache_alloc(pgtable_cache, GFP_KERNEL|__GFP_REPEAT); |
48 | } | 48 | } |
49 | 49 | ||
50 | static inline pte_token_t pte_alloc_one(struct mm_struct *mm, | 50 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm, |
51 | unsigned long addr) | 51 | unsigned long addr) |
52 | { | 52 | { |
53 | struct page *page; | 53 | struct page *page; |
diff --git a/include/asm-xtensa/pgtable.h b/include/asm-xtensa/pgtable.h index c0fcc1c9660c..c8b024a48b4d 100644 --- a/include/asm-xtensa/pgtable.h +++ b/include/asm-xtensa/pgtable.h | |||
@@ -66,11 +66,9 @@ | |||
66 | */ | 66 | */ |
67 | 67 | ||
68 | #define VMALLOC_START 0xC0000000 | 68 | #define VMALLOC_START 0xC0000000 |
69 | #define VMALLOC_END 0xC6FEFFFF | 69 | #define VMALLOC_END 0xC7FEFFFF |
70 | #define TLBTEMP_BASE_1 0xC6FF0000 | 70 | #define TLBTEMP_BASE_1 0xC7FF0000 |
71 | #define TLBTEMP_BASE_2 0xC6FF8000 | 71 | #define TLBTEMP_BASE_2 0xC7FF8000 |
72 | #define MODULE_START 0xC7000000 | ||
73 | #define MODULE_END 0xC7FFFFFF | ||
74 | 72 | ||
75 | /* | 73 | /* |
76 | * Xtensa Linux config PTE layout (when present): | 74 | * Xtensa Linux config PTE layout (when present): |
diff --git a/include/asm-xtensa/processor.h b/include/asm-xtensa/processor.h index 96408f436624..4918a4e96d42 100644 --- a/include/asm-xtensa/processor.h +++ b/include/asm-xtensa/processor.h | |||
@@ -103,10 +103,6 @@ struct thread_struct { | |||
103 | unsigned long dbreaka[XCHAL_NUM_DBREAK]; | 103 | unsigned long dbreaka[XCHAL_NUM_DBREAK]; |
104 | unsigned long dbreakc[XCHAL_NUM_DBREAK]; | 104 | unsigned long dbreakc[XCHAL_NUM_DBREAK]; |
105 | 105 | ||
106 | /* Allocate storage for extra state and coprocessor state. */ | ||
107 | unsigned char cp_save[XTENSA_CP_EXTRA_SIZE] | ||
108 | __attribute__ ((aligned(XTENSA_CP_EXTRA_ALIGN))); | ||
109 | |||
110 | /* Make structure 16 bytes aligned. */ | 106 | /* Make structure 16 bytes aligned. */ |
111 | int align[0] __attribute__ ((aligned(16))); | 107 | int align[0] __attribute__ ((aligned(16))); |
112 | }; | 108 | }; |
@@ -162,21 +158,16 @@ struct thread_struct { | |||
162 | struct task_struct; | 158 | struct task_struct; |
163 | struct mm_struct; | 159 | struct mm_struct; |
164 | 160 | ||
165 | // FIXME: do we need release_thread for CP?? | ||
166 | /* Free all resources held by a thread. */ | 161 | /* Free all resources held by a thread. */ |
167 | #define release_thread(thread) do { } while(0) | 162 | #define release_thread(thread) do { } while(0) |
168 | 163 | ||
169 | // FIXME: do we need prepare_to_copy (lazy status) for CP?? | ||
170 | /* Prepare to copy thread state - unlazy all lazy status */ | 164 | /* Prepare to copy thread state - unlazy all lazy status */ |
171 | #define prepare_to_copy(tsk) do { } while (0) | 165 | extern void prepare_to_copy(struct task_struct*); |
172 | 166 | ||
173 | /* | 167 | /* Create a kernel thread without removing it from tasklists */ |
174 | * create a kernel thread without removing it from tasklists | ||
175 | */ | ||
176 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | 168 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); |
177 | 169 | ||
178 | /* Copy and release all segment info associated with a VM */ | 170 | /* Copy and release all segment info associated with a VM */ |
179 | |||
180 | #define copy_segments(p, mm) do { } while(0) | 171 | #define copy_segments(p, mm) do { } while(0) |
181 | #define release_segments(mm) do { } while(0) | 172 | #define release_segments(mm) do { } while(0) |
182 | #define forget_segments() do { } while (0) | 173 | #define forget_segments() do { } while (0) |
diff --git a/include/asm-xtensa/ptrace.h b/include/asm-xtensa/ptrace.h index 77ff02d307bb..422c73e26937 100644 --- a/include/asm-xtensa/ptrace.h +++ b/include/asm-xtensa/ptrace.h | |||
@@ -53,33 +53,30 @@ | |||
53 | 53 | ||
54 | /* Registers used by strace */ | 54 | /* Registers used by strace */ |
55 | 55 | ||
56 | #define REG_A_BASE 0xfc000000 | 56 | #define REG_A_BASE 0x0000 |
57 | #define REG_AR_BASE 0x04000000 | 57 | #define REG_AR_BASE 0x0100 |
58 | #define REG_PC 0x14000000 | 58 | #define REG_PC 0x0020 |
59 | #define REG_PS 0x080000e6 | 59 | #define REG_PS 0x02e6 |
60 | #define REG_WB 0x08000048 | 60 | #define REG_WB 0x0248 |
61 | #define REG_WS 0x08000049 | 61 | #define REG_WS 0x0249 |
62 | #define REG_LBEG 0x08000000 | 62 | #define REG_LBEG 0x0200 |
63 | #define REG_LEND 0x08000001 | 63 | #define REG_LEND 0x0201 |
64 | #define REG_LCOUNT 0x08000002 | 64 | #define REG_LCOUNT 0x0202 |
65 | #define REG_SAR 0x08000003 | 65 | #define REG_SAR 0x0203 |
66 | #define REG_DEPC 0x080000c0 | 66 | |
67 | #define REG_EXCCAUSE 0x080000e8 | 67 | #define SYSCALL_NR 0x00ff |
68 | #define REG_EXCVADDR 0x080000ee | ||
69 | #define SYSCALL_NR 0x1 | ||
70 | |||
71 | #define AR_REGNO_TO_A_REGNO(ar, wb) (ar - wb*4) & ~(XCHAL_NUM_AREGS - 1) | ||
72 | 68 | ||
73 | /* Other PTRACE_ values defined in <linux/ptrace.h> using values 0-9,16,17,24 */ | 69 | /* Other PTRACE_ values defined in <linux/ptrace.h> using values 0-9,16,17,24 */ |
74 | 70 | ||
75 | #define PTRACE_GETREGS 12 | 71 | #define PTRACE_GETREGS 12 |
76 | #define PTRACE_SETREGS 13 | 72 | #define PTRACE_SETREGS 13 |
77 | #define PTRACE_GETFPREGS 14 | 73 | #define PTRACE_GETXTREGS 18 |
78 | #define PTRACE_SETFPREGS 15 | 74 | #define PTRACE_SETXTREGS 19 |
79 | #define PTRACE_GETFPREGSIZE 18 | ||
80 | 75 | ||
81 | #ifndef __ASSEMBLY__ | 76 | #ifndef __ASSEMBLY__ |
82 | 77 | ||
78 | #ifdef __KERNEL__ | ||
79 | |||
83 | /* | 80 | /* |
84 | * This struct defines the way the registers are stored on the | 81 | * This struct defines the way the registers are stored on the |
85 | * kernel stack during a system call or other kernel entry. | 82 | * kernel stack during a system call or other kernel entry. |
@@ -102,6 +99,9 @@ struct pt_regs { | |||
102 | unsigned long icountlevel; /* 60 */ | 99 | unsigned long icountlevel; /* 60 */ |
103 | int reserved[1]; /* 64 */ | 100 | int reserved[1]; /* 64 */ |
104 | 101 | ||
102 | /* Additional configurable registers that are used by the compiler. */ | ||
103 | xtregs_opt_t xtregs_opt; | ||
104 | |||
105 | /* Make sure the areg field is 16 bytes aligned. */ | 105 | /* Make sure the areg field is 16 bytes aligned. */ |
106 | int align[0] __attribute__ ((aligned(16))); | 106 | int align[0] __attribute__ ((aligned(16))); |
107 | 107 | ||
@@ -111,8 +111,6 @@ struct pt_regs { | |||
111 | unsigned long areg[16]; /* 128 (64) */ | 111 | unsigned long areg[16]; /* 128 (64) */ |
112 | }; | 112 | }; |
113 | 113 | ||
114 | #ifdef __KERNEL__ | ||
115 | |||
116 | #include <asm/variant/core.h> | 114 | #include <asm/variant/core.h> |
117 | 115 | ||
118 | # define task_pt_regs(tsk) ((struct pt_regs*) \ | 116 | # define task_pt_regs(tsk) ((struct pt_regs*) \ |
diff --git a/include/asm-xtensa/regs.h b/include/asm-xtensa/regs.h index c913d259faaa..d4baed246928 100644 --- a/include/asm-xtensa/regs.h +++ b/include/asm-xtensa/regs.h | |||
@@ -100,7 +100,14 @@ | |||
100 | #define EXCCAUSE_DTLB_SIZE_RESTRICTION 27 | 100 | #define EXCCAUSE_DTLB_SIZE_RESTRICTION 27 |
101 | #define EXCCAUSE_LOAD_CACHE_ATTRIBUTE 28 | 101 | #define EXCCAUSE_LOAD_CACHE_ATTRIBUTE 28 |
102 | #define EXCCAUSE_STORE_CACHE_ATTRIBUTE 29 | 102 | #define EXCCAUSE_STORE_CACHE_ATTRIBUTE 29 |
103 | #define EXCCAUSE_FLOATING_POINT 40 | 103 | #define EXCCAUSE_COPROCESSOR0_DISABLED 32 |
104 | #define EXCCAUSE_COPROCESSOR1_DISABLED 33 | ||
105 | #define EXCCAUSE_COPROCESSOR2_DISABLED 34 | ||
106 | #define EXCCAUSE_COPROCESSOR3_DISABLED 35 | ||
107 | #define EXCCAUSE_COPROCESSOR4_DISABLED 36 | ||
108 | #define EXCCAUSE_COPROCESSOR5_DISABLED 37 | ||
109 | #define EXCCAUSE_COPROCESSOR6_DISABLED 38 | ||
110 | #define EXCCAUSE_COPROCESSOR7_DISABLED 39 | ||
104 | 111 | ||
105 | /* PS register fields. */ | 112 | /* PS register fields. */ |
106 | 113 | ||
diff --git a/include/asm-xtensa/sigcontext.h b/include/asm-xtensa/sigcontext.h index e3381cee5059..03383af8c3b7 100644 --- a/include/asm-xtensa/sigcontext.h +++ b/include/asm-xtensa/sigcontext.h | |||
@@ -13,9 +13,6 @@ | |||
13 | 13 | ||
14 | 14 | ||
15 | struct sigcontext { | 15 | struct sigcontext { |
16 | unsigned long oldmask; | ||
17 | |||
18 | /* CPU registers */ | ||
19 | unsigned long sc_pc; | 16 | unsigned long sc_pc; |
20 | unsigned long sc_ps; | 17 | unsigned long sc_ps; |
21 | unsigned long sc_lbeg; | 18 | unsigned long sc_lbeg; |
@@ -25,6 +22,7 @@ struct sigcontext { | |||
25 | unsigned long sc_acclo; | 22 | unsigned long sc_acclo; |
26 | unsigned long sc_acchi; | 23 | unsigned long sc_acchi; |
27 | unsigned long sc_a[16]; | 24 | unsigned long sc_a[16]; |
25 | void *sc_xtregs; | ||
28 | }; | 26 | }; |
29 | 27 | ||
30 | #endif /* _XTENSA_SIGCONTEXT_H */ | 28 | #endif /* _XTENSA_SIGCONTEXT_H */ |
diff --git a/include/asm-xtensa/stat.h b/include/asm-xtensa/stat.h index 149f4bce092f..c4992038cee0 100644 --- a/include/asm-xtensa/stat.h +++ b/include/asm-xtensa/stat.h | |||
@@ -5,25 +5,23 @@ | |||
5 | * License. See the file "COPYING" in the main directory of this archive | 5 | * License. See the file "COPYING" in the main directory of this archive |
6 | * for more details. | 6 | * for more details. |
7 | * | 7 | * |
8 | * Copyright (C) 2001 - 2005 Tensilica Inc. | 8 | * Copyright (C) 2001 - 2007 Tensilica Inc. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef _XTENSA_STAT_H | 11 | #ifndef _XTENSA_STAT_H |
12 | #define _XTENSA_STAT_H | 12 | #define _XTENSA_STAT_H |
13 | 13 | ||
14 | #include <linux/types.h> | ||
15 | |||
16 | #define STAT_HAVE_NSEC 1 | 14 | #define STAT_HAVE_NSEC 1 |
17 | 15 | ||
18 | struct stat { | 16 | struct stat { |
19 | unsigned long st_dev; | 17 | unsigned long st_dev; |
20 | ino_t st_ino; | 18 | unsigned long st_ino; |
21 | mode_t st_mode; | 19 | unsigned int st_mode; |
22 | nlink_t st_nlink; | 20 | unsigned int st_nlink; |
23 | uid_t st_uid; | 21 | unsigned int st_uid; |
24 | gid_t st_gid; | 22 | unsigned int st_gid; |
25 | unsigned int st_rdev; | 23 | unsigned long st_rdev; |
26 | off_t st_size; | 24 | long st_size; |
27 | unsigned long st_blksize; | 25 | unsigned long st_blksize; |
28 | unsigned long st_blocks; | 26 | unsigned long st_blocks; |
29 | unsigned long st_atime; | 27 | unsigned long st_atime; |
@@ -36,8 +34,6 @@ struct stat { | |||
36 | unsigned long __unused5; | 34 | unsigned long __unused5; |
37 | }; | 35 | }; |
38 | 36 | ||
39 | /* This matches struct stat64 in glibc-2.3 */ | ||
40 | |||
41 | struct stat64 { | 37 | struct stat64 { |
42 | unsigned long long st_dev; /* Device */ | 38 | unsigned long long st_dev; /* Device */ |
43 | unsigned long long st_ino; /* File serial number */ | 39 | unsigned long long st_ino; /* File serial number */ |
@@ -47,20 +43,14 @@ struct stat64 { | |||
47 | unsigned int st_gid; /* Group ID of the file's group. */ | 43 | unsigned int st_gid; /* Group ID of the file's group. */ |
48 | unsigned long long st_rdev; /* Device number, if device. */ | 44 | unsigned long long st_rdev; /* Device number, if device. */ |
49 | long long st_size; /* Size of file, in bytes. */ | 45 | long long st_size; /* Size of file, in bytes. */ |
50 | long st_blksize; /* Optimal block size for I/O. */ | 46 | unsigned long st_blksize; /* Optimal block size for I/O. */ |
51 | unsigned long __unused2; | 47 | unsigned long __unused2; |
52 | #ifdef __XTENSA_EB__ | 48 | unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ |
53 | unsigned long __unused3; | 49 | unsigned long st_atime; /* Time of last access. */ |
54 | long st_blocks; /* Number 512-byte blocks allocated. */ | ||
55 | #else | ||
56 | long st_blocks; /* Number 512-byte blocks allocated. */ | ||
57 | unsigned long __unused3; | ||
58 | #endif | ||
59 | long st_atime; /* Time of last access. */ | ||
60 | unsigned long st_atime_nsec; | 50 | unsigned long st_atime_nsec; |
61 | long st_mtime; /* Time of last modification. */ | 51 | unsigned long st_mtime; /* Time of last modification. */ |
62 | unsigned long st_mtime_nsec; | 52 | unsigned long st_mtime_nsec; |
63 | long st_ctime; /* Time of last status change. */ | 53 | unsigned long st_ctime; /* Time of last status change. */ |
64 | unsigned long st_ctime_nsec; | 54 | unsigned long st_ctime_nsec; |
65 | unsigned long __unused4; | 55 | unsigned long __unused4; |
66 | unsigned long __unused5; | 56 | unsigned long __unused5; |
diff --git a/include/asm-xtensa/system.h b/include/asm-xtensa/system.h index e0cb9116d8ab..62b1e8f3c13c 100644 --- a/include/asm-xtensa/system.h +++ b/include/asm-xtensa/system.h | |||
@@ -46,42 +46,6 @@ static inline int irqs_disabled(void) | |||
46 | return flags & 0xf; | 46 | return flags & 0xf; |
47 | } | 47 | } |
48 | 48 | ||
49 | #define RSR_CPENABLE(x) do { \ | ||
50 | __asm__ __volatile__("rsr %0," __stringify(CPENABLE) : "=a" (x)); \ | ||
51 | } while(0); | ||
52 | #define WSR_CPENABLE(x) do { \ | ||
53 | __asm__ __volatile__("wsr %0," __stringify(CPENABLE)";rsync" \ | ||
54 | :: "a" (x));} while(0); | ||
55 | |||
56 | #define clear_cpenable() __clear_cpenable() | ||
57 | |||
58 | static inline void __clear_cpenable(void) | ||
59 | { | ||
60 | #if XCHAL_HAVE_CP | ||
61 | unsigned long i = 0; | ||
62 | WSR_CPENABLE(i); | ||
63 | #endif | ||
64 | } | ||
65 | |||
66 | static inline void enable_coprocessor(int i) | ||
67 | { | ||
68 | #if XCHAL_HAVE_CP | ||
69 | int cp; | ||
70 | RSR_CPENABLE(cp); | ||
71 | cp |= 1 << i; | ||
72 | WSR_CPENABLE(cp); | ||
73 | #endif | ||
74 | } | ||
75 | |||
76 | static inline void disable_coprocessor(int i) | ||
77 | { | ||
78 | #if XCHAL_HAVE_CP | ||
79 | int cp; | ||
80 | RSR_CPENABLE(cp); | ||
81 | cp &= ~(1 << i); | ||
82 | WSR_CPENABLE(cp); | ||
83 | #endif | ||
84 | } | ||
85 | 49 | ||
86 | #define smp_read_barrier_depends() do { } while(0) | 50 | #define smp_read_barrier_depends() do { } while(0) |
87 | #define read_barrier_depends() do { } while(0) | 51 | #define read_barrier_depends() do { } while(0) |
@@ -111,7 +75,6 @@ extern void *_switch_to(void *last, void *next); | |||
111 | 75 | ||
112 | #define switch_to(prev,next,last) \ | 76 | #define switch_to(prev,next,last) \ |
113 | do { \ | 77 | do { \ |
114 | clear_cpenable(); \ | ||
115 | (last) = _switch_to(prev, next); \ | 78 | (last) = _switch_to(prev, next); \ |
116 | } while(0) | 79 | } while(0) |
117 | 80 | ||
@@ -244,7 +207,7 @@ static inline void spill_registers(void) | |||
244 | "wsr a13," __stringify(SAR) "\n\t" | 207 | "wsr a13," __stringify(SAR) "\n\t" |
245 | "wsr a14," __stringify(PS) "\n\t" | 208 | "wsr a14," __stringify(PS) "\n\t" |
246 | :: "a" (&a0), "a" (&ps) | 209 | :: "a" (&a0), "a" (&ps) |
247 | : "a2", "a3", "a12", "a13", "a14", "a15", "memory"); | 210 | : "a2", "a3", "a4", "a7", "a11", "a12", "a13", "a14", "a15", "memory"); |
248 | } | 211 | } |
249 | 212 | ||
250 | #define arch_align_stack(x) (x) | 213 | #define arch_align_stack(x) (x) |
diff --git a/include/asm-xtensa/thread_info.h b/include/asm-xtensa/thread_info.h index 52c958285bcb..a2c640682ed9 100644 --- a/include/asm-xtensa/thread_info.h +++ b/include/asm-xtensa/thread_info.h | |||
@@ -27,6 +27,21 @@ | |||
27 | 27 | ||
28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
29 | 29 | ||
30 | #if XTENSA_HAVE_COPROCESSORS | ||
31 | |||
32 | typedef struct xtregs_coprocessor { | ||
33 | xtregs_cp0_t cp0; | ||
34 | xtregs_cp1_t cp1; | ||
35 | xtregs_cp2_t cp2; | ||
36 | xtregs_cp3_t cp3; | ||
37 | xtregs_cp4_t cp4; | ||
38 | xtregs_cp5_t cp5; | ||
39 | xtregs_cp6_t cp6; | ||
40 | xtregs_cp7_t cp7; | ||
41 | } xtregs_coprocessor_t; | ||
42 | |||
43 | #endif | ||
44 | |||
30 | struct thread_info { | 45 | struct thread_info { |
31 | struct task_struct *task; /* main task structure */ | 46 | struct task_struct *task; /* main task structure */ |
32 | struct exec_domain *exec_domain; /* execution domain */ | 47 | struct exec_domain *exec_domain; /* execution domain */ |
@@ -38,7 +53,13 @@ struct thread_info { | |||
38 | mm_segment_t addr_limit; /* thread address space */ | 53 | mm_segment_t addr_limit; /* thread address space */ |
39 | struct restart_block restart_block; | 54 | struct restart_block restart_block; |
40 | 55 | ||
56 | unsigned long cpenable; | ||
41 | 57 | ||
58 | /* Allocate storage for extra user states and coprocessor states. */ | ||
59 | #if XTENSA_HAVE_COPROCESSORS | ||
60 | xtregs_coprocessor_t xtregs_cp; | ||
61 | #endif | ||
62 | xtregs_user_t xtregs_user; | ||
42 | }; | 63 | }; |
43 | 64 | ||
44 | #else /* !__ASSEMBLY__ */ | 65 | #else /* !__ASSEMBLY__ */ |
diff --git a/include/asm-xtensa/timex.h b/include/asm-xtensa/timex.h index a5fca59fba9e..b83a8181d448 100644 --- a/include/asm-xtensa/timex.h +++ b/include/asm-xtensa/timex.h | |||
@@ -63,10 +63,10 @@ extern cycles_t cacheflush_time; | |||
63 | * Register access. | 63 | * Register access. |
64 | */ | 64 | */ |
65 | 65 | ||
66 | #define WSR_CCOUNT(r) __asm__("wsr %0,"__stringify(CCOUNT) :: "a" (r)) | 66 | #define WSR_CCOUNT(r) asm volatile ("wsr %0,"__stringify(CCOUNT) :: "a" (r)) |
67 | #define RSR_CCOUNT(r) __asm__("rsr %0,"__stringify(CCOUNT) : "=a" (r)) | 67 | #define RSR_CCOUNT(r) asm volatile ("rsr %0,"__stringify(CCOUNT) : "=a" (r)) |
68 | #define WSR_CCOMPARE(x,r) __asm__("wsr %0,"__stringify(CCOMPARE)"+"__stringify(x) :: "a"(r)) | 68 | #define WSR_CCOMPARE(x,r) asm volatile ("wsr %0,"__stringify(CCOMPARE)"+"__stringify(x) :: "a"(r)) |
69 | #define RSR_CCOMPARE(x,r) __asm__("rsr %0,"__stringify(CCOMPARE)"+"__stringify(x) : "=a"(r)) | 69 | #define RSR_CCOMPARE(x,r) asm volatile ("rsr %0,"__stringify(CCOMPARE)"+"__stringify(x) : "=a"(r)) |
70 | 70 | ||
71 | static inline unsigned long get_ccount (void) | 71 | static inline unsigned long get_ccount (void) |
72 | { | 72 | { |
diff --git a/include/asm-xtensa/uaccess.h b/include/asm-xtensa/uaccess.h index d6352da05b10..b8528426ab1f 100644 --- a/include/asm-xtensa/uaccess.h +++ b/include/asm-xtensa/uaccess.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/current.h> | 26 | #include <asm/current.h> |
27 | #include <asm/asm-offsets.h> | 27 | #include <asm/asm-offsets.h> |
28 | #include <asm/processor.h> | 28 | #include <asm/processor.h> |
29 | #include <asm/types.h> | ||
29 | 30 | ||
30 | /* | 31 | /* |
31 | * These assembly macros mirror the C macros that follow below. They | 32 | * These assembly macros mirror the C macros that follow below. They |
@@ -118,7 +119,7 @@ | |||
118 | * <at> destroyed (actually, (TASK_SIZE + 1 - size)) | 119 | * <at> destroyed (actually, (TASK_SIZE + 1 - size)) |
119 | */ | 120 | */ |
120 | .macro user_ok aa, as, at, error | 121 | .macro user_ok aa, as, at, error |
121 | movi \at, (TASK_SIZE+1) | 122 | movi \at, __XTENSA_UL_CONST(TASK_SIZE) |
122 | bgeu \as, \at, \error | 123 | bgeu \as, \at, \error |
123 | sub \at, \at, \as | 124 | sub \at, \at, \as |
124 | bgeu \aa, \at, \error | 125 | bgeu \aa, \at, \error |
@@ -226,20 +227,21 @@ extern long __put_user_bad(void); | |||
226 | __pu_err; \ | 227 | __pu_err; \ |
227 | }) | 228 | }) |
228 | 229 | ||
229 | #define __put_user_size(x,ptr,size,retval) \ | 230 | #define __put_user_size(x,ptr,size,retval) \ |
230 | do { \ | 231 | do { \ |
231 | retval = 0; \ | 232 | int __cb; \ |
232 | switch (size) { \ | 233 | retval = 0; \ |
233 | case 1: __put_user_asm(x,ptr,retval,1,"s8i"); break; \ | 234 | switch (size) { \ |
234 | case 2: __put_user_asm(x,ptr,retval,2,"s16i"); break; \ | 235 | case 1: __put_user_asm(x,ptr,retval,1,"s8i",__cb); break; \ |
235 | case 4: __put_user_asm(x,ptr,retval,4,"s32i"); break; \ | 236 | case 2: __put_user_asm(x,ptr,retval,2,"s16i",__cb); break; \ |
236 | case 8: { \ | 237 | case 4: __put_user_asm(x,ptr,retval,4,"s32i",__cb); break; \ |
237 | __typeof__(*ptr) __v64 = x; \ | 238 | case 8: { \ |
238 | retval = __copy_to_user(ptr,&__v64,8); \ | 239 | __typeof__(*ptr) __v64 = x; \ |
239 | break; \ | 240 | retval = __copy_to_user(ptr,&__v64,8); \ |
240 | } \ | 241 | break; \ |
241 | default: __put_user_bad(); \ | 242 | } \ |
242 | } \ | 243 | default: __put_user_bad(); \ |
244 | } \ | ||
243 | } while (0) | 245 | } while (0) |
244 | 246 | ||
245 | 247 | ||
@@ -267,14 +269,14 @@ do { \ | |||
267 | #define __check_align_1 "" | 269 | #define __check_align_1 "" |
268 | 270 | ||
269 | #define __check_align_2 \ | 271 | #define __check_align_2 \ |
270 | " _bbci.l %2, 0, 1f \n" \ | 272 | " _bbci.l %3, 0, 1f \n" \ |
271 | " movi %0, %3 \n" \ | 273 | " movi %0, %4 \n" \ |
272 | " _j 2f \n" | 274 | " _j 2f \n" |
273 | 275 | ||
274 | #define __check_align_4 \ | 276 | #define __check_align_4 \ |
275 | " _bbsi.l %2, 0, 0f \n" \ | 277 | " _bbsi.l %3, 0, 0f \n" \ |
276 | " _bbci.l %2, 1, 1f \n" \ | 278 | " _bbci.l %3, 1, 1f \n" \ |
277 | "0: movi %0, %3 \n" \ | 279 | "0: movi %0, %4 \n" \ |
278 | " _j 2f \n" | 280 | " _j 2f \n" |
279 | 281 | ||
280 | 282 | ||
@@ -286,24 +288,24 @@ do { \ | |||
286 | * WARNING: If you modify this macro at all, verify that the | 288 | * WARNING: If you modify this macro at all, verify that the |
287 | * __check_align_* macros still work. | 289 | * __check_align_* macros still work. |
288 | */ | 290 | */ |
289 | #define __put_user_asm(x, addr, err, align, insn) \ | 291 | #define __put_user_asm(x, addr, err, align, insn, cb) \ |
290 | __asm__ __volatile__( \ | 292 | __asm__ __volatile__( \ |
291 | __check_align_##align \ | 293 | __check_align_##align \ |
292 | "1: "insn" %1, %2, 0 \n" \ | 294 | "1: "insn" %2, %3, 0 \n" \ |
293 | "2: \n" \ | 295 | "2: \n" \ |
294 | " .section .fixup,\"ax\" \n" \ | 296 | " .section .fixup,\"ax\" \n" \ |
295 | " .align 4 \n" \ | 297 | " .align 4 \n" \ |
296 | "4: \n" \ | 298 | "4: \n" \ |
297 | " .long 2b \n" \ | 299 | " .long 2b \n" \ |
298 | "5: \n" \ | 300 | "5: \n" \ |
299 | " l32r %2, 4b \n" \ | 301 | " l32r %1, 4b \n" \ |
300 | " movi %0, %3 \n" \ | 302 | " movi %0, %4 \n" \ |
301 | " jx %2 \n" \ | 303 | " jx %1 \n" \ |
302 | " .previous \n" \ | 304 | " .previous \n" \ |
303 | " .section __ex_table,\"a\" \n" \ | 305 | " .section __ex_table,\"a\" \n" \ |
304 | " .long 1b, 5b \n" \ | 306 | " .long 1b, 5b \n" \ |
305 | " .previous" \ | 307 | " .previous" \ |
306 | :"=r" (err) \ | 308 | :"=r" (err), "=r" (cb) \ |
307 | :"r" ((int)(x)), "r" (addr), "i" (-EFAULT), "0" (err)) | 309 | :"r" ((int)(x)), "r" (addr), "i" (-EFAULT), "0" (err)) |
308 | 310 | ||
309 | #define __get_user_nocheck(x,ptr,size) \ | 311 | #define __get_user_nocheck(x,ptr,size) \ |
@@ -328,11 +330,12 @@ extern long __get_user_bad(void); | |||
328 | 330 | ||
329 | #define __get_user_size(x,ptr,size,retval) \ | 331 | #define __get_user_size(x,ptr,size,retval) \ |
330 | do { \ | 332 | do { \ |
333 | int __cb; \ | ||
331 | retval = 0; \ | 334 | retval = 0; \ |
332 | switch (size) { \ | 335 | switch (size) { \ |
333 | case 1: __get_user_asm(x,ptr,retval,1,"l8ui"); break; \ | 336 | case 1: __get_user_asm(x,ptr,retval,1,"l8ui",__cb); break; \ |
334 | case 2: __get_user_asm(x,ptr,retval,2,"l16ui"); break; \ | 337 | case 2: __get_user_asm(x,ptr,retval,2,"l16ui",__cb); break; \ |
335 | case 4: __get_user_asm(x,ptr,retval,4,"l32i"); break; \ | 338 | case 4: __get_user_asm(x,ptr,retval,4,"l32i",__cb); break; \ |
336 | case 8: retval = __copy_from_user(&x,ptr,8); break; \ | 339 | case 8: retval = __copy_from_user(&x,ptr,8); break; \ |
337 | default: (x) = __get_user_bad(); \ | 340 | default: (x) = __get_user_bad(); \ |
338 | } \ | 341 | } \ |
@@ -343,25 +346,25 @@ do { \ | |||
343 | * WARNING: If you modify this macro at all, verify that the | 346 | * WARNING: If you modify this macro at all, verify that the |
344 | * __check_align_* macros still work. | 347 | * __check_align_* macros still work. |
345 | */ | 348 | */ |
346 | #define __get_user_asm(x, addr, err, align, insn) \ | 349 | #define __get_user_asm(x, addr, err, align, insn, cb) \ |
347 | __asm__ __volatile__( \ | 350 | __asm__ __volatile__( \ |
348 | __check_align_##align \ | 351 | __check_align_##align \ |
349 | "1: "insn" %1, %2, 0 \n" \ | 352 | "1: "insn" %2, %3, 0 \n" \ |
350 | "2: \n" \ | 353 | "2: \n" \ |
351 | " .section .fixup,\"ax\" \n" \ | 354 | " .section .fixup,\"ax\" \n" \ |
352 | " .align 4 \n" \ | 355 | " .align 4 \n" \ |
353 | "4: \n" \ | 356 | "4: \n" \ |
354 | " .long 2b \n" \ | 357 | " .long 2b \n" \ |
355 | "5: \n" \ | 358 | "5: \n" \ |
356 | " l32r %2, 4b \n" \ | 359 | " l32r %1, 4b \n" \ |
357 | " movi %1, 0 \n" \ | 360 | " movi %2, 0 \n" \ |
358 | " movi %0, %3 \n" \ | 361 | " movi %0, %4 \n" \ |
359 | " jx %2 \n" \ | 362 | " jx %1 \n" \ |
360 | " .previous \n" \ | 363 | " .previous \n" \ |
361 | " .section __ex_table,\"a\" \n" \ | 364 | " .section __ex_table,\"a\" \n" \ |
362 | " .long 1b, 5b \n" \ | 365 | " .long 1b, 5b \n" \ |
363 | " .previous" \ | 366 | " .previous" \ |
364 | :"=r" (err), "=r" (x) \ | 367 | :"=r" (err), "=r" (cb), "=r" (x) \ |
365 | :"r" (addr), "i" (-EFAULT), "0" (err)) | 368 | :"r" (addr), "i" (-EFAULT), "0" (err)) |
366 | 369 | ||
367 | 370 | ||
diff --git a/include/asm-xtensa/variant-fsf/tie-asm.h b/include/asm-xtensa/variant-fsf/tie-asm.h new file mode 100644 index 000000000000..68a73bf4ffc5 --- /dev/null +++ b/include/asm-xtensa/variant-fsf/tie-asm.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * This header file contains assembly-language definitions (assembly | ||
3 | * macros, etc.) for this specific Xtensa processor's TIE extensions | ||
4 | * and options. It is customized to this Xtensa processor configuration. | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | * | ||
10 | * Copyright (C) 1999-2008 Tensilica Inc. | ||
11 | */ | ||
12 | |||
13 | #ifndef _XTENSA_CORE_TIE_ASM_H | ||
14 | #define _XTENSA_CORE_TIE_ASM_H | ||
15 | |||
16 | /* Selection parameter values for save-area save/restore macros: */ | ||
17 | /* Option vs. TIE: */ | ||
18 | #define XTHAL_SAS_TIE 0x0001 /* custom extension or coprocessor */ | ||
19 | #define XTHAL_SAS_OPT 0x0002 /* optional (and not a coprocessor) */ | ||
20 | /* Whether used automatically by compiler: */ | ||
21 | #define XTHAL_SAS_NOCC 0x0004 /* not used by compiler w/o special opts/code */ | ||
22 | #define XTHAL_SAS_CC 0x0008 /* used by compiler without special opts/code */ | ||
23 | /* ABI handling across function calls: */ | ||
24 | #define XTHAL_SAS_CALR 0x0010 /* caller-saved */ | ||
25 | #define XTHAL_SAS_CALE 0x0020 /* callee-saved */ | ||
26 | #define XTHAL_SAS_GLOB 0x0040 /* global across function calls (in thread) */ | ||
27 | /* Misc */ | ||
28 | #define XTHAL_SAS_ALL 0xFFFF /* include all default NCP contents */ | ||
29 | |||
30 | |||
31 | |||
32 | /* Macro to save all non-coprocessor (extra) custom TIE and optional state | ||
33 | * (not including zero-overhead loop registers). | ||
34 | * Save area ptr (clobbered): ptr (1 byte aligned) | ||
35 | * Scratch regs (clobbered): at1..at4 (only first XCHAL_NCP_NUM_ATMPS needed) | ||
36 | */ | ||
37 | .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL | ||
38 | xchal_sa_start \continue, \ofs | ||
39 | .ifeq (XTHAL_SAS_OPT | XTHAL_SAS_CC | XTHAL_SAS_GLOB) & ~\select | ||
40 | xchal_sa_align \ptr, 0, 1024-4, 4, 4 | ||
41 | rur \at1, THREADPTR // threadptr option | ||
42 | s32i \at1, \ptr, .Lxchal_ofs_ + 0 | ||
43 | .set .Lxchal_ofs_, .Lxchal_ofs_ + 4 | ||
44 | .endif | ||
45 | .endm // xchal_ncp_store | ||
46 | |||
47 | /* Macro to save all non-coprocessor (extra) custom TIE and optional state | ||
48 | * (not including zero-overhead loop registers). | ||
49 | * Save area ptr (clobbered): ptr (1 byte aligned) | ||
50 | * Scratch regs (clobbered): at1..at4 (only first XCHAL_NCP_NUM_ATMPS needed) | ||
51 | */ | ||
52 | .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL | ||
53 | xchal_sa_start \continue, \ofs | ||
54 | .ifeq (XTHAL_SAS_OPT | XTHAL_SAS_CC | XTHAL_SAS_GLOB) & ~\select | ||
55 | xchal_sa_align \ptr, 0, 1024-4, 4, 4 | ||
56 | l32i \at1, \ptr, .Lxchal_ofs_ + 0 | ||
57 | wur \at1, THREADPTR // threadptr option | ||
58 | .set .Lxchal_ofs_, .Lxchal_ofs_ + 4 | ||
59 | .endif | ||
60 | .endm // xchal_ncp_load | ||
61 | |||
62 | |||
63 | |||
64 | #define XCHAL_NCP_NUM_ATMPS 1 | ||
65 | |||
66 | |||
67 | #define XCHAL_SA_NUM_ATMPS 1 | ||
68 | |||
69 | #endif /*_XTENSA_CORE_TIE_ASM_H*/ | ||
70 | |||
diff --git a/include/asm-xtensa/variant-fsf/tie.h b/include/asm-xtensa/variant-fsf/tie.h index a73c71664918..bf4020116df5 100644 --- a/include/asm-xtensa/variant-fsf/tie.h +++ b/include/asm-xtensa/variant-fsf/tie.h | |||
@@ -1,22 +1,77 @@ | |||
1 | /* | 1 | /* |
2 | * Xtensa processor core configuration information. | 2 | * This header file describes this specific Xtensa processor's TIE extensions |
3 | * that extend basic Xtensa core functionality. It is customized to this | ||
4 | * Xtensa processor configuration. | ||
3 | * | 5 | * |
4 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
5 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
6 | * for more details. | 8 | * for more details. |
7 | * | 9 | * |
8 | * Copyright (C) 1999-2006 Tensilica Inc. | 10 | * Copyright (C) 1999-2007 Tensilica Inc. |
9 | */ | 11 | */ |
10 | 12 | ||
11 | #ifndef XTENSA_TIE_H | 13 | #ifndef _XTENSA_CORE_TIE_H |
12 | #define XTENSA_TIE_H | 14 | #define _XTENSA_CORE_TIE_H |
13 | |||
14 | /*---------------------------------------------------------------------- | ||
15 | COPROCESSORS and EXTRA STATE | ||
16 | ----------------------------------------------------------------------*/ | ||
17 | 15 | ||
18 | #define XCHAL_CP_NUM 0 /* number of coprocessors */ | 16 | #define XCHAL_CP_NUM 0 /* number of coprocessors */ |
19 | #define XCHAL_CP_MASK 0x00 | 17 | #define XCHAL_CP_MAX 0 /* max CP ID + 1 (0 if none) */ |
18 | #define XCHAL_CP_MASK 0x00 /* bitmask of all CPs by ID */ | ||
19 | #define XCHAL_CP_PORT_MASK 0x00 /* bitmask of only port CPs */ | ||
20 | |||
21 | /* Basic parameters of each coprocessor: */ | ||
22 | #define XCHAL_CP7_NAME "XTIOP" | ||
23 | #define XCHAL_CP7_IDENT XTIOP | ||
24 | #define XCHAL_CP7_SA_SIZE 0 /* size of state save area */ | ||
25 | #define XCHAL_CP7_SA_ALIGN 1 /* min alignment of save area */ | ||
26 | #define XCHAL_CP_ID_XTIOP 7 /* coprocessor ID (0..7) */ | ||
27 | |||
28 | /* Filler info for unassigned coprocessors, to simplify arrays etc: */ | ||
29 | #define XCHAL_NCP_SA_SIZE 0 | ||
30 | #define XCHAL_NCP_SA_ALIGN 1 | ||
31 | #define XCHAL_CP0_SA_SIZE 0 | ||
32 | #define XCHAL_CP0_SA_ALIGN 1 | ||
33 | #define XCHAL_CP1_SA_SIZE 0 | ||
34 | #define XCHAL_CP1_SA_ALIGN 1 | ||
35 | #define XCHAL_CP2_SA_SIZE 0 | ||
36 | #define XCHAL_CP2_SA_ALIGN 1 | ||
37 | #define XCHAL_CP3_SA_SIZE 0 | ||
38 | #define XCHAL_CP3_SA_ALIGN 1 | ||
39 | #define XCHAL_CP4_SA_SIZE 0 | ||
40 | #define XCHAL_CP4_SA_ALIGN 1 | ||
41 | #define XCHAL_CP5_SA_SIZE 0 | ||
42 | #define XCHAL_CP5_SA_ALIGN 1 | ||
43 | #define XCHAL_CP6_SA_SIZE 0 | ||
44 | #define XCHAL_CP6_SA_ALIGN 1 | ||
45 | |||
46 | /* Save area for non-coprocessor optional and custom (TIE) state: */ | ||
47 | #define XCHAL_NCP_SA_SIZE 0 | ||
48 | #define XCHAL_NCP_SA_ALIGN 1 | ||
49 | |||
50 | /* Total save area for optional and custom state (NCP + CPn): */ | ||
51 | #define XCHAL_TOTAL_SA_SIZE 0 /* with 16-byte align padding */ | ||
52 | #define XCHAL_TOTAL_SA_ALIGN 1 /* actual minimum alignment */ | ||
53 | |||
54 | #define XCHAL_NCP_SA_NUM 0 | ||
55 | #define XCHAL_NCP_SA_LIST(s) | ||
56 | #define XCHAL_CP0_SA_NUM 0 | ||
57 | #define XCHAL_CP0_SA_LIST(s) | ||
58 | #define XCHAL_CP1_SA_NUM 0 | ||
59 | #define XCHAL_CP1_SA_LIST(s) | ||
60 | #define XCHAL_CP2_SA_NUM 0 | ||
61 | #define XCHAL_CP2_SA_LIST(s) | ||
62 | #define XCHAL_CP3_SA_NUM 0 | ||
63 | #define XCHAL_CP3_SA_LIST(s) | ||
64 | #define XCHAL_CP4_SA_NUM 0 | ||
65 | #define XCHAL_CP4_SA_LIST(s) | ||
66 | #define XCHAL_CP5_SA_NUM 0 | ||
67 | #define XCHAL_CP5_SA_LIST(s) | ||
68 | #define XCHAL_CP6_SA_NUM 0 | ||
69 | #define XCHAL_CP6_SA_LIST(s) | ||
70 | #define XCHAL_CP7_SA_NUM 0 | ||
71 | #define XCHAL_CP7_SA_LIST(s) | ||
72 | |||
73 | /* Byte length of instruction from its first nibble (op0 field), per FLIX. */ | ||
74 | #define XCHAL_OP0_FORMAT_LENGTHS 3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,3 | ||
20 | 75 | ||
21 | #endif /*XTENSA_CONFIG_TIE_H*/ | 76 | #endif /*_XTENSA_CORE_TIE_H*/ |
22 | 77 | ||
diff --git a/include/linux/init.h b/include/linux/init.h index a404a0055dd7..fb58c0493cf2 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
@@ -42,6 +42,7 @@ | |||
42 | discard it in modules) */ | 42 | discard it in modules) */ |
43 | #define __init __section(.init.text) __cold | 43 | #define __init __section(.init.text) __cold |
44 | #define __initdata __section(.init.data) | 44 | #define __initdata __section(.init.data) |
45 | #define __initconst __section(.init.rodata) | ||
45 | #define __exitdata __section(.exit.data) | 46 | #define __exitdata __section(.exit.data) |
46 | #define __exit_call __used __section(.exitcall.exit) | 47 | #define __exit_call __used __section(.exitcall.exit) |
47 | 48 | ||
@@ -106,6 +107,7 @@ | |||
106 | #define __memexitconst __section(.memexit.rodata) | 107 | #define __memexitconst __section(.memexit.rodata) |
107 | 108 | ||
108 | /* For assembly routines */ | 109 | /* For assembly routines */ |
110 | #define __HEAD .section ".head.text","ax" | ||
109 | #define __INIT .section ".init.text","ax" | 111 | #define __INIT .section ".init.text","ax" |
110 | #define __FINIT .previous | 112 | #define __FINIT .previous |
111 | 113 | ||
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 61742771c65d..695b5d657cf5 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1200,7 +1200,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch, | |||
1200 | "annotate %s with a matching annotation.\n", | 1200 | "annotate %s with a matching annotation.\n", |
1201 | from, sec2annotation(fromsec), fromsym, from_p, | 1201 | from, sec2annotation(fromsec), fromsym, from_p, |
1202 | to, sec2annotation(tosec), tosym, to_p, | 1202 | to, sec2annotation(tosec), tosym, to_p, |
1203 | fromsym, tosym, fromsym); | 1203 | tosym, fromsym, tosym); |
1204 | break; | 1204 | break; |
1205 | case INIT_TO_EXIT: | 1205 | case INIT_TO_EXIT: |
1206 | fprintf(stderr, | 1206 | fprintf(stderr, |