Kconfig 6.0 KB

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