Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. config ARCH_ARM_CORTEX_M85
  86. bool
  87. select ARCH_ARM_CORTEX_M
  88. select RT_USING_CPU_FFS
  89. select RT_USING_HW_ATOMIC
  90. config ARCH_ARM_CORTEX_M23
  91. bool
  92. select ARCH_ARM_CORTEX_M
  93. select RT_USING_HW_ATOMIC
  94. config ARCH_ARM_CORTEX_M33
  95. bool
  96. select ARCH_ARM_CORTEX_M
  97. select RT_USING_CPU_FFS
  98. select RT_USING_HW_ATOMIC
  99. config ARCH_ARM_CORTEX_R
  100. bool
  101. select ARCH_ARM
  102. select RT_USING_HW_ATOMIC
  103. config ARCH_ARM_CORTEX_R52
  104. bool
  105. select ARCH_ARM_CORTEX_R
  106. config ARCH_ARM_MMU
  107. bool
  108. select RT_USING_CACHE
  109. select ARCH_MM_MMU
  110. depends on ARCH_ARM
  111. if RT_USING_SMART
  112. config KERNEL_VADDR_START
  113. hex "The virtural address of kernel start"
  114. default 0xffff000000000000 if ARCH_ARMV8
  115. default 0xc0000000 if ARCH_ARM
  116. default 0xffffffc000000000 if ARCH_RISCV && ARCH_REMAP_KERNEL
  117. default 0x80000000 if ARCH_RISCV
  118. depends on ARCH_MM_MMU
  119. config RT_IOREMAP_LATE
  120. bool "Support to create IO mapping in the kernel address space after system initlalization."
  121. default n
  122. depends on ARCH_ARM_CORTEX_A
  123. depends on ARCH_MM_MMU
  124. endif
  125. config ARCH_ARM_ARM9
  126. bool
  127. select ARCH_ARM
  128. config ARCH_ARM_ARM11
  129. bool
  130. select ARCH_ARM
  131. config ARCH_ARM_CORTEX_A
  132. bool
  133. select ARCH_ARM
  134. select ARCH_ARM_MMU
  135. select RT_USING_CPU_FFS
  136. select RT_USING_HW_ATOMIC
  137. if ARCH_ARM_CORTEX_A
  138. config RT_SMP_AUTO_BOOT
  139. bool
  140. default n
  141. config RT_USING_GIC_V2
  142. bool
  143. default n
  144. config RT_USING_GIC_V3
  145. bool
  146. default n
  147. config RT_NO_USING_GIC
  148. bool
  149. default y if !RT_USING_GIC_V2 && !RT_USING_GIC_V3
  150. endif
  151. config ARCH_ARM_CORTEX_A5
  152. bool
  153. select ARCH_ARM_CORTEX_A
  154. config ARCH_ARM_CORTEX_A7
  155. bool
  156. select ARCH_ARM_CORTEX_A
  157. config ARCH_ARM_CORTEX_A8
  158. bool
  159. select ARCH_ARM_CORTEX_A
  160. config ARCH_ARM_CORTEX_A9
  161. bool
  162. select ARCH_ARM_CORTEX_A
  163. config ARCH_ARM_CORTEX_A55
  164. bool
  165. select ARCH_ARM_CORTEX_A
  166. config ARCH_ARM_SECURE_MODE
  167. bool "Running in secure mode [ARM Cortex-A]"
  168. default n
  169. depends on ARCH_ARM_CORTEX_A
  170. config RT_BACKTRACE_FUNCTION_NAME
  171. bool "To show function name when backtrace."
  172. default n
  173. depends on ARCH_ARM_CORTEX_A
  174. config ARCH_ARMV8
  175. bool
  176. select ARCH_ARM
  177. select ARCH_ARM_MMU
  178. select RT_USING_CPU_FFS
  179. config ARCH_MIPS
  180. bool
  181. config ARCH_MIPS64
  182. bool
  183. select ARCH_CPU_64BIT
  184. config ARCH_MIPS_XBURST
  185. bool
  186. select ARCH_MIPS
  187. config ARCH_ANDES
  188. bool
  189. config ARCH_CSKY
  190. bool
  191. config ARCH_POWERPC
  192. bool
  193. config ARCH_RISCV
  194. bool
  195. config ARCH_RISCV_FPU
  196. bool
  197. config ARCH_RISCV_FPU_S
  198. select ARCH_RISCV_FPU
  199. bool
  200. config ARCH_RISCV_FPU_D
  201. select ARCH_RISCV_FPU
  202. bool
  203. config ARCH_RISCV32
  204. select ARCH_RISCV
  205. bool
  206. config ARCH_RISCV64
  207. select ARCH_RISCV
  208. select ARCH_CPU_64BIT
  209. bool
  210. if ARCH_RISCV64
  211. config ARCH_USING_RISCV_COMMON64
  212. bool
  213. depends on ARCH_RISCV64
  214. select RT_USING_CPUTIME
  215. help
  216. Using the common64 implementation under ./libcpu/risc-v
  217. endif
  218. config ARCH_REMAP_KERNEL
  219. bool
  220. depends on RT_USING_SMART
  221. help
  222. Remapping kernel image to high virtual address region
  223. config ARCH_USING_ASID
  224. bool
  225. depends on RT_USING_SMART
  226. help
  227. Using ASID support from architecture
  228. config ARCH_IA32
  229. bool
  230. config ARCH_TIDSP
  231. bool
  232. config ARCH_TIDSP_C28X
  233. bool
  234. select ARCH_TIDSP
  235. select ARCH_CPU_STACK_GROWS_UPWARD
  236. config ARCH_HOST_SIMULATOR
  237. bool
  238. config ARCH_CPU_STACK_GROWS_UPWARD
  239. bool
  240. default n
  241. config ARCH_USING_HW_THREAD_SELF
  242. bool
  243. default n