Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. if ARCH_ARMV8 && ARCH_CPU_64BIT
  2. orsource "./aarch64/Kconfig"
  3. endif
  4. config ARCH_CPU_64BIT
  5. bool
  6. config RT_USING_CACHE
  7. bool
  8. default n
  9. config RT_USING_HW_ATOMIC
  10. bool
  11. default n
  12. config ARCH_CPU_BIG_ENDIAN
  13. bool
  14. config ARCH_ARM_BOOTWITH_FLUSH_CACHE
  15. bool
  16. default n
  17. config ARCH_CPU_STACK_GROWS_UPWARD
  18. bool
  19. default n
  20. config RT_USING_CPU_FFS
  21. bool
  22. default n
  23. config ARCH_MM_MMU
  24. bool
  25. config ARCH_MM_MPU
  26. bool
  27. config ARCH_ARM
  28. bool
  29. config ARCH_ARM_CORTEX_M
  30. bool
  31. select ARCH_ARM
  32. config ARCH_ARM_CORTEX_R
  33. bool
  34. select ARCH_ARM
  35. config ARCH_ARM_CORTEX_FPU
  36. bool
  37. config ARCH_ARM_CORTEX_SECURE
  38. bool
  39. config ARCH_ARM_CORTEX_M0
  40. bool
  41. select ARCH_ARM_CORTEX_M
  42. config ARCH_ARM_CORTEX_M3
  43. bool
  44. select ARCH_ARM_CORTEX_M
  45. select RT_USING_CPU_FFS
  46. select RT_USING_HW_ATOMIC
  47. config ARCH_ARM_MPU
  48. bool
  49. depends on ARCH_ARM
  50. select ARCH_MM_MPU
  51. config ARCH_ARM_CORTEX_M4
  52. bool
  53. select ARCH_ARM_CORTEX_M
  54. select RT_USING_CPU_FFS
  55. select RT_USING_HW_ATOMIC
  56. config ARCH_ARM_CORTEX_M7
  57. bool
  58. select ARCH_ARM_CORTEX_M
  59. select RT_USING_CPU_FFS
  60. select RT_USING_CACHE
  61. select RT_USING_HW_ATOMIC
  62. config ARCH_ARM_CORTEX_M85
  63. bool
  64. select ARCH_ARM_CORTEX_M
  65. select RT_USING_CPU_FFS
  66. select RT_USING_HW_ATOMIC
  67. config ARCH_ARM_CORTEX_M23
  68. bool
  69. select ARCH_ARM_CORTEX_M
  70. select RT_USING_HW_ATOMIC
  71. config ARCH_ARM_CORTEX_M33
  72. bool
  73. select ARCH_ARM_CORTEX_M
  74. select RT_USING_CPU_FFS
  75. select RT_USING_HW_ATOMIC
  76. config ARCH_ARM_CORTEX_R
  77. bool
  78. select ARCH_ARM
  79. select RT_USING_HW_ATOMIC
  80. config ARCH_ARM_CORTEX_R52
  81. bool
  82. select ARCH_ARM_CORTEX_R
  83. config ARCH_ARM_MMU
  84. bool
  85. select RT_USING_CACHE
  86. select ARCH_MM_MMU
  87. depends on ARCH_ARM
  88. if RT_USING_SMART
  89. config KERNEL_VADDR_START
  90. hex "The virtural address of kernel start"
  91. default 0xffff000000000000 if ARCH_ARMV8
  92. default 0xc0000000 if ARCH_ARM
  93. default 0xffffffc000000000 if ARCH_RISCV && ARCH_REMAP_KERNEL
  94. default 0x80000000 if ARCH_RISCV
  95. depends on ARCH_MM_MMU
  96. config RT_IOREMAP_LATE
  97. bool "Support to create IO mapping in the kernel address space after system initlalization."
  98. default n
  99. depends on ARCH_ARM_CORTEX_A
  100. depends on ARCH_MM_MMU
  101. endif
  102. config ARCH_ARM_ARM9
  103. bool
  104. select ARCH_ARM
  105. config ARCH_ARM_ARM11
  106. bool
  107. select ARCH_ARM
  108. config ARCH_ARM_CORTEX_A
  109. bool
  110. select ARCH_ARM
  111. select ARCH_ARM_MMU
  112. select RT_USING_CPU_FFS
  113. select RT_USING_HW_ATOMIC
  114. if ARCH_ARM_CORTEX_A
  115. config RT_SMP_AUTO_BOOT
  116. bool
  117. default n
  118. config RT_USING_GIC_V2
  119. bool
  120. default n
  121. config RT_USING_GIC_V3
  122. bool
  123. default n
  124. config RT_NO_USING_GIC
  125. bool
  126. default y if !RT_USING_GIC_V2 && !RT_USING_GIC_V3
  127. endif
  128. config ARCH_ARM_CORTEX_A5
  129. bool
  130. select ARCH_ARM_CORTEX_A
  131. config ARCH_ARM_CORTEX_A7
  132. bool
  133. select ARCH_ARM_CORTEX_A
  134. config ARCH_ARM_CORTEX_A8
  135. bool
  136. select ARCH_ARM_CORTEX_A
  137. config ARCH_ARM_CORTEX_A9
  138. bool
  139. select ARCH_ARM_CORTEX_A
  140. config ARCH_ARM_CORTEX_A55
  141. bool
  142. select ARCH_ARM_CORTEX_A
  143. config ARCH_ARM_SECURE_MODE
  144. bool "Running in secure mode [ARM Cortex-A]"
  145. default n
  146. depends on ARCH_ARM_CORTEX_A
  147. config RT_BACKTRACE_FUNCTION_NAME
  148. bool "To show function name when backtrace."
  149. default n
  150. depends on ARCH_ARM_CORTEX_A
  151. config ARCH_ARMV8
  152. bool
  153. select ARCH_ARM
  154. select ARCH_ARM_MMU
  155. select RT_USING_CPU_FFS
  156. select ARCH_USING_ASID
  157. select ARCH_USING_IRQ_CTX_LIST
  158. config ARCH_MIPS
  159. bool
  160. config ARCH_MIPS64
  161. bool
  162. select ARCH_CPU_64BIT
  163. config ARCH_MIPS_XBURST
  164. bool
  165. select ARCH_MIPS
  166. config ARCH_ANDES
  167. bool
  168. config ARCH_CSKY
  169. bool
  170. config ARCH_POWERPC
  171. bool
  172. config ARCH_RISCV
  173. bool
  174. config ARCH_RISCV_FPU
  175. bool
  176. config ARCH_RISCV_VECTOR
  177. bool
  178. if ARCH_RISCV_VECTOR
  179. choice
  180. prompt "RISCV Vector Vlen"
  181. default ARCH_VECTOR_VLEN_128
  182. config ARCH_VECTOR_VLEN_128
  183. bool "128"
  184. config ARCH_VECTOR_VLEN_256
  185. bool "256"
  186. endchoice
  187. endif
  188. config ARCH_RISCV_FPU_S
  189. select ARCH_RISCV_FPU
  190. bool
  191. config ARCH_RISCV_FPU_D
  192. select ARCH_RISCV_FPU
  193. bool
  194. config ARCH_RISCV32
  195. select ARCH_RISCV
  196. bool
  197. config ARCH_RISCV64
  198. select ARCH_RISCV
  199. select ARCH_CPU_64BIT
  200. bool
  201. if ARCH_RISCV64
  202. config ARCH_USING_NEW_CTX_SWITCH
  203. bool
  204. default y
  205. config ARCH_USING_RISCV_COMMON64
  206. bool
  207. depends on ARCH_RISCV64
  208. select RT_USING_CPUTIME
  209. select ARCH_USING_NEW_CTX_SWITCH
  210. help
  211. Using the common64 implementation under ./libcpu/risc-v
  212. endif
  213. config ARCH_REMAP_KERNEL
  214. bool
  215. depends on RT_USING_SMART
  216. help
  217. Remapping kernel image to high virtual address region
  218. config ARCH_USING_ASID
  219. bool
  220. depends on RT_USING_SMART
  221. help
  222. Using ASID support from architecture
  223. config ARCH_IA32
  224. bool
  225. config ARCH_TIDSP
  226. bool
  227. config ARCH_TIDSP_C28X
  228. bool
  229. select ARCH_TIDSP
  230. select ARCH_CPU_STACK_GROWS_UPWARD
  231. config ARCH_HOST_SIMULATOR
  232. bool
  233. config ARCH_CPU_STACK_GROWS_UPWARD
  234. bool
  235. default n
  236. config ARCH_USING_HW_THREAD_SELF
  237. bool
  238. default n
  239. config ARCH_USING_IRQ_CTX_LIST
  240. bool
  241. default n