|
1 | | -config FRAME_POINTER |
2 | | - def_bool n |
3 | | - |
4 | 1 | config ZONE_DMA |
5 | 2 | def_bool y |
6 | 3 |
|
7 | 4 | config XTENSA |
8 | 5 | def_bool y |
| 6 | + select ARCH_WANT_FRAME_POINTERS |
9 | 7 | select HAVE_IDE |
10 | 8 | select GENERIC_ATOMIC64 |
11 | 9 | select HAVE_GENERIC_HARDIRQS |
@@ -49,6 +47,15 @@ config HZ |
49 | 47 | source "init/Kconfig" |
50 | 48 | source "kernel/Kconfig.freezer" |
51 | 49 |
|
| 50 | +config LOCKDEP_SUPPORT |
| 51 | + def_bool y |
| 52 | + |
| 53 | +config STACKTRACE_SUPPORT |
| 54 | + def_bool y |
| 55 | + |
| 56 | +config TRACE_IRQFLAGS_SUPPORT |
| 57 | + def_bool y |
| 58 | + |
52 | 59 | config MMU |
53 | 60 | def_bool n |
54 | 61 |
|
@@ -100,6 +107,35 @@ config MATH_EMULATION |
100 | 107 | help |
101 | 108 | Can we use information of configuration file? |
102 | 109 |
|
| 110 | +config INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX |
| 111 | + bool "Initialize Xtensa MMU inside the Linux kernel code" |
| 112 | + default y |
| 113 | + help |
| 114 | + Earlier version initialized the MMU in the exception vector |
| 115 | + before jumping to _startup in head.S and had an advantage that |
| 116 | + it was possible to place a software breakpoint at 'reset' and |
| 117 | + then enter your normal kernel breakpoints once the MMU was mapped |
| 118 | + to the kernel mappings (0XC0000000). |
| 119 | + |
| 120 | + This unfortunately doesn't work for U-Boot and likley also wont |
| 121 | + work for using KEXEC to have a hot kernel ready for doing a |
| 122 | + KDUMP. |
| 123 | + |
| 124 | + So now the MMU is initialized in head.S but it's necessary to |
| 125 | + use hardware breakpoints (gdb 'hbreak' cmd) to break at _startup. |
| 126 | + xt-gdb can't place a Software Breakpoint in the 0XD region prior |
| 127 | + to mapping the MMU and after mapping even if the area of low memory |
| 128 | + was mapped gdb wouldn't remove the breakpoint on hitting it as the |
| 129 | + PC wouldn't match. Since Hardware Breakpoints are recommended for |
| 130 | + Linux configurations it seems reasonable to just assume they exist |
| 131 | + and leave this older mechanism for unfortunate souls that choose |
| 132 | + not to follow Tensilica's recommendation. |
| 133 | + |
| 134 | + Selecting this will cause U-Boot to set the KERNEL Load and Entry |
| 135 | + address at 0x00003000 instead of the mapped std of 0xD0003000. |
| 136 | + |
| 137 | + If in doubt, say Y. |
| 138 | + |
103 | 139 | endmenu |
104 | 140 |
|
105 | 141 | config XTENSA_CALIBRATE_CCOUNT |
@@ -249,21 +285,6 @@ endmenu |
249 | 285 |
|
250 | 286 | menu "Executable file formats" |
251 | 287 |
|
252 | | -# only elf supported |
253 | | -config KCORE_ELF |
254 | | - def_bool y |
255 | | - depends on PROC_FS |
256 | | - help |
257 | | - If you enabled support for /proc file system then the file |
258 | | - /proc/kcore will contain the kernel core image in ELF format. This |
259 | | - can be used in gdb: |
260 | | - |
261 | | - $ cd /usr/src/linux ; gdb vmlinux /proc/kcore |
262 | | - |
263 | | - This is especially useful if you have compiled the kernel with the |
264 | | - "-g" option to preserve debugging information. It is mainly used |
265 | | - for examining kernel data structures on the live kernel. |
266 | | - |
267 | 288 | source "fs/Kconfig.binfmt" |
268 | 289 |
|
269 | 290 | endmenu |
|
0 commit comments