# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.

# SPDX-License-Identifier: MIT

config KERNEL
	bool "RTOS Kernel"
	default y
	help
	  Enable RTOS kernel.

if KERNEL

config KERNEL_ARCH_DIR
	string
	default "AML_ARM_64_BIT" if ARM_CA35_64_BIT || ARM_CA73_64_BIT
	default "AML_ARM_32_BIT" if ARM_CA9
	default "AML_RISC-V" if RISCV
	default "AML_Xtensa" if XTENSA
	help
	  System arch dir string.


config KERNEL_COMPILER_DIR
	string
	default "GCC" if ARM || ARM64
	default "GCC" if RISCV
	default "XCC" if XTENSA
	help
	  System compiler dir string.

config DMALLOC
	bool "Debug Memory Allocation"
	help
	  Enable the memory allocation statistics of tasks..

if DMALLOC
config DMALLOC_SIZE
	hex "Debug Memory Allocation Buffer Size"
	default 128
	help
	  Set the buffer size of memory allocation statistics.
endif # DMALLOC

config MEMORY_ERROR_DETECTION
	bool "Memory Error Detection"
	help
	  Enable detecting out-of-bounds access, memory leaks.

if MEMORY_ERROR_DETECTION
config MEMORY_ERROR_DETECTION_SIZE
	hex "Memory Error Detection Buffer Size"
	default 1000
	help
	  Set the buffer size of memory error detection.

config MEMORY_ERROR_DETECTION_PRINT
	bool "Memory Error Detection Print"
	help
	  Print details of memory error field.

config MEMORY_ERROR_DETECTION_BENCHMARKS
	bool "Memory Error Detection Benchmarks Test"
	help
	  Memory error detection tool performance test.
endif # MEMORY_ERROR_DETECTION

endif # KERNEL
