chore: add a mini config for qemu arm virt
support turn off as many features as possible. current only libc and posix and bsd can not be turned off. Signed-off-by: Caoruihong <crh.cao@huawei.com> Change-Id: I1e97570c67593207a56dc11f357eca4b4a018bfd
This commit is contained in:
@@ -749,8 +749,12 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsSystemProcessCreate(VOID)
|
||||
LOS_ListTailInsert(&kerInitProcess->childrenList, &idleProcess->siblingList);
|
||||
idleProcess->group = kerInitProcess->group;
|
||||
LOS_ListTailInsert(&kerInitProcess->group->processList, &idleProcess->subordinateGroupList);
|
||||
#ifdef LOSCFG_SECURITY_CAPABILITY
|
||||
idleProcess->user = kerInitProcess->user;
|
||||
#endif
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
idleProcess->files = kerInitProcess->files;
|
||||
#endif
|
||||
|
||||
ret = OsIdleTaskCreate();
|
||||
if (ret != LOS_OK) {
|
||||
|
||||
@@ -37,7 +37,9 @@
|
||||
#ifndef __LOS_VM_FILEMAP_H__
|
||||
#define __LOS_VM_FILEMAP_H__
|
||||
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
#include "fs/file.h"
|
||||
#endif
|
||||
#include "los_vm_map.h"
|
||||
#include "los_vm_page.h"
|
||||
#include "los_vm_common.h"
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "los_sem_pri.h"
|
||||
#include "los_queue_pri.h"
|
||||
#include "los_swtmr_pri.h"
|
||||
#include "los_task_pri.h"
|
||||
|
||||
#ifdef LOSCFG_SHELL
|
||||
#include "shcmd.h"
|
||||
|
||||
@@ -42,8 +42,9 @@
|
||||
#include "los_oom.h"
|
||||
#include "los_vm_dump.h"
|
||||
#include "los_process_pri.h"
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
#include "fs/path_cache.h"
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef LOSCFG_KERNEL_VM
|
||||
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
|
||||
#include "los_vm_dump.h"
|
||||
#include "los_mmu_descriptor_v6.h"
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
#include "fs/fs.h"
|
||||
#endif
|
||||
#include "los_printf.h"
|
||||
#include "los_vm_page.h"
|
||||
#include "los_vm_phys.h"
|
||||
|
||||
@@ -42,6 +42,9 @@
|
||||
#include "los_process_pri.h"
|
||||
#include "los_vm_lock.h"
|
||||
|
||||
#ifndef UNUSED
|
||||
#define UNUSED(x) (VOID)x
|
||||
#endif
|
||||
|
||||
#ifdef LOSCFG_KERNEL_VM
|
||||
|
||||
|
||||
@@ -40,7 +40,9 @@
|
||||
#include "los_vm_shm_pri.h"
|
||||
#include "los_arch_mmu.h"
|
||||
#include "los_process_pri.h"
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
#include "fs/fs.h"
|
||||
#endif
|
||||
#include "los_task.h"
|
||||
#include "los_memory_pri.h"
|
||||
#include "los_vm_boot.h"
|
||||
|
||||
@@ -626,7 +626,7 @@ size_t LOS_PhysPagesFree(LOS_DL_LIST *list)
|
||||
#else
|
||||
VADDR_T *LOS_PaddrToKVaddr(PADDR_T paddr)
|
||||
{
|
||||
if ((paddr < DDR_MEM_ADDR) || (paddr >= (DDR_MEM_ADDR + DDR_MEM_SIZE))) {
|
||||
if ((paddr < DDR_MEM_ADDR) || (paddr >= ((PADDR_T)DDR_MEM_ADDR + DDR_MEM_SIZE))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user