!157 删除无用的__cplusplus,移除不必要的文件x权限

Merge pull request !157 from Caoruihong/cplusplus
This commit is contained in:
openharmony_ci
2021-04-20 09:01:45 +08:00
committed by Gitee
374 changed files with 0 additions and 1065 deletions

0
kernel/BUILD.gn Executable file → Normal file
View File

0
kernel/Kconfig Executable file → Normal file
View File

0
kernel/base/BUILD.gn Executable file → Normal file
View File

0
kernel/base/Makefile Executable file → Normal file
View File

10
kernel/base/core/los_bitmap.c Executable file → Normal file
View File

@@ -33,11 +33,6 @@
#include "los_printf.h"
#include "los_toolchain.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_BITMAP_MASK 0x1FU
#define OS_BITMAP_WORD_MASK ~0UL
@@ -141,8 +136,3 @@ INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits)
return -1;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/core/los_process.c Executable file → Normal file
View File

@@ -54,11 +54,6 @@
#include "los_vm_phys.h"
#include "los_vm_syscall.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
LITE_OS_SEC_BSS LosProcessCB *g_processCBArray = NULL;
LITE_OS_SEC_DATA_INIT STATIC LOS_DL_LIST g_freeProcess;
@@ -1856,8 +1851,3 @@ LITE_OS_SEC_TEXT UINTPTR OsGetSigHandler(VOID)
return OsCurrProcessGet()->sigHandler;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif

10
kernel/base/core/los_sortlink.c Executable file → Normal file
View File

@@ -36,11 +36,6 @@
#include "los_sched_pri.h"
#include "los_mp.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
UINT32 OsSortLinkInit(SortLinkAttribute *sortLinkHeader)
{
@@ -252,8 +247,3 @@ UINT32 OsSortLinkGetNextExpireTime(const SortLinkAttribute *sortLinkHeader)
return OsSortLinkGetTargetExpireTime(listSorted);
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/core/los_swtmr.c Executable file → Normal file
View File

@@ -36,11 +36,6 @@
#include "los_process_pri.h"
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_BASE_CORE_SWTMR == YES)
#if (LOSCFG_BASE_CORE_SWTMR_LIMIT <= 0)
@@ -529,8 +524,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID)
#endif /* (LOSCFG_BASE_CORE_SWTMR == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif

10
kernel/base/core/los_sys.c Executable file → Normal file
View File

@@ -32,11 +32,6 @@
#include "los_sys_pri.h"
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_MAX_VALUE 0xFFFFFFFFUL
@@ -75,8 +70,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsUS2Tick(UINT64 microsec)
return (UINT32)ticks;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/core/los_task.c Executable file → Normal file
View File

@@ -62,11 +62,6 @@
#endif
#include "los_vm_map.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_BASE_CORE_TSK_LIMIT <= 0)
#error "task maxnum cannot be zero"
@@ -1695,8 +1690,3 @@ LITE_OS_SEC_TEXT UINT32 OsCreateResourceFreeTask(VOID)
return ret;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/core/los_tick.c Executable file → Normal file
View File

@@ -36,11 +36,6 @@
#include "los_vdso.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
LITE_OS_SEC_DATA_INIT UINT32 g_sysClock;
LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond;
@@ -69,8 +64,3 @@ LITE_OS_SEC_TEXT VOID OsTickHandler(VOID)
OsSchedTick();
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/base/include/los_event_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_futex_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_memory_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_mux_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_oom.h Executable file → Normal file
View File

0
kernel/base/include/los_percpu_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_process_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_rwlock_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_sched_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_sem_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_signal.h Executable file → Normal file
View File

0
kernel/base/include/los_sortlink_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_stat_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_sys_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_task_pri.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_boot.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_common.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_filemap.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_iomap.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_map.h Executable file → Normal file
View File

0
kernel/base/include/los_vm_phys.h Executable file → Normal file
View File

10
kernel/base/ipc/los_event.c Executable file → Normal file
View File

@@ -39,11 +39,6 @@
#include "los_exc.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventInit(PEVENT_CB_S eventCB)
{
UINT32 intSave;
@@ -341,8 +336,3 @@ OUT:
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_futex.c Executable file → Normal file
View File

@@ -39,11 +39,6 @@
#include "los_mux_pri.h"
#include "user_copy.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -1007,8 +1002,3 @@ EXIT:
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

View File

@@ -31,11 +31,6 @@
#include "los_ipcdebug_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if defined(LOSCFG_DEBUG_SEMAPHORE) || defined(LOSCFG_DEBUG_QUEUE)
@@ -83,8 +78,3 @@ VOID OsArraySortByTime(UINT32 *sortArray, UINT32 start, UINT32 end, const IpcSor
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_mux.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "los_exc.h"
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_BASE_IPC_MUX == YES)
#define MUTEXATTR_TYPE_MASK 0x0FU
@@ -567,8 +562,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_MuxUnlock(LosMux *mutex)
#endif /* (LOSCFG_BASE_IPC_MUX == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_queue.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "los_mp.h"
#include "los_percpu_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_BASE_IPC_QUEUE == YES)
#if (LOSCFG_BASE_IPC_QUEUE_LIMIT <= 0)
@@ -500,8 +495,3 @@ QUEUE_END:
#endif /* (LOSCFG_BASE_IPC_QUEUE == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

View File

@@ -36,11 +36,6 @@
#include "shcmd.h"
#endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_DEBUG_QUEUE
@@ -201,8 +196,3 @@ SHELLCMD_ENTRY(queue_shellcmd, CMD_TYPE_EX, "queue", 0, (CmdCallBackFunc)OsShell
#endif /* LOSCFG_SHELL */
#endif /* LOSCFG_DEBUG_QUEUE */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_rwlock.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "los_exc.h"
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_BASE_IPC_RWLOCK
#define RWLOCK_COUNT_MASK 0x00FFFFFFU
@@ -467,8 +462,3 @@ UINT32 LOS_RwlockUnLock(LosRwlock *rwlock)
#endif /* LOSCFG_BASE_IPC_RWLOCK */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_sem.c Executable file → Normal file
View File

@@ -39,11 +39,6 @@
#include "los_mp.h"
#include "los_percpu_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_BASE_IPC_SEM == YES)
@@ -290,8 +285,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle)
}
#endif /* (LOSCFG_BASE_IPC_SEM == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_sem_debug.c Executable file → Normal file
View File

@@ -38,11 +38,6 @@
#include "shcmd.h"
#endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define OS_ALL_SEM_MASK 0xffffffff
@@ -304,8 +299,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSemInfoGet(UINT32 argc, const CHAR **arg
SHELLCMD_ENTRY(sem_shellcmd, CMD_TYPE_EX, "sem", 1, (CmdCallBackFunc)OsShellCmdSemInfoGet);
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/ipc/los_signal.c Executable file → Normal file
View File

@@ -39,11 +39,6 @@
#include "capability_api.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int raise(int sig)
{
@@ -685,8 +680,3 @@ void OsRestorSignalContext(unsigned int *sp)
SCHEDULER_UNLOCK(intSave);
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/mem/common/los_memstat.c Executable file → Normal file
View File

@@ -32,11 +32,6 @@
#include "los_memstat_pri.h"
#include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
LITE_OS_SEC_BSS_MINOR STATIC TskMemUsedInfo g_tskMemUsedInfo[LOSCFG_BASE_CORE_TSK_LIMIT];
@@ -119,8 +114,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsTaskSlabUsage(UINT32 taskID)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -33,11 +33,6 @@
#include "los_hwi.h"
#include "los_spinlock.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_AARCH64
#define OS_MEMBOX_MAGIC 0xa55a5aa5a55a5aa5
@@ -230,8 +225,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_MemboxStatisticsGet(const VOID *boxMem, UINT32
return LOS_OK;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/mem/tlsf/los_memory.c Executable file → Normal file
View File

@@ -42,11 +42,6 @@
#include "los_trace.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* Used to cut non-essential functions. */
#define OS_MEM_FREE_BY_TASKID 0
@@ -1993,9 +1988,4 @@ BOOL OsMemIsHeapNode(const VOID *ptr)
return FALSE;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/base/misc/kill_shellcmd.c Executable file → Normal file
View File

View File

@@ -31,11 +31,6 @@
#include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
LITE_OS_SEC_TEXT UINTPTR LOS_Align(UINTPTR addr, UINT32 boundary)
{
@@ -62,8 +57,3 @@ LITE_OS_SEC_TEXT_MINOR VOID LOS_Msleep(UINT32 msecs)
(VOID)LOS_TaskDelay(interval);
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

0
kernel/base/misc/los_stackinfo.c Executable file → Normal file
View File

10
kernel/base/misc/mempt_shellcmd.c Executable file → Normal file
View File

@@ -43,11 +43,6 @@
#include "los_vm_map.h"
#include "los_vm_dump.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define MEM_SIZE_1K 0x400
#define MEM_SIZE_1M 0x100000
@@ -279,8 +274,3 @@ SHELLCMD_ENTRY(free_shellcmd, CMD_TYPE_EX, "free", XARGS, (CmdCallBackFunc)OsShe
SHELLCMD_ENTRY(uname_shellcmd, CMD_TYPE_EX, "uname", XARGS, (CmdCallBackFunc)OsShellCmdUname);
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/misc/panic_shellcmd.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "los_swtmr_pri.h"
#include "watchdog_if.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_SHELL_CMD_DEBUG
STATIC BOOL systemExcReset = FALSE;
@@ -126,8 +121,3 @@ SHELLCMD_ENTRY(panic_reset_shellcmd, CMD_TYPE_EX, "panicreset", 1, (CmdCallBackF
#endif
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

View File

@@ -36,11 +36,6 @@
#include "shcmd.h"
#include "shell.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define SWTMR_STRLEN 12
@@ -139,9 +134,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSwtmrInfoGet(INT32 argc, const UINT8 **a
SHELLCMD_ENTRY(swtmr_shellcmd, CMD_TYPE_EX, "swtmr", 1, (CmdCallBackFunc)OsShellCmdSwtmrInfoGet);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */

View File

@@ -40,11 +40,6 @@
#include "shell.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define SYSINFO_ENABLED(x) (((x) == YES) ? "YES" : "NO")
UINT32 OsShellCmdTaskCntGet(VOID)
@@ -163,8 +158,3 @@ INT32 OsShellCmdSystemInfo(INT32 argc, const CHAR **argv)
SHELLCMD_ENTRY(systeminfo_shellcmd, CMD_TYPE_EX, "systeminfo", 1, (CmdCallBackFunc)OsShellCmdSystemInfo);
#endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/misc/task_shellcmd.c Executable file → Normal file
View File

@@ -53,11 +53,6 @@
#endif
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define OS_PROCESS_MEM_INFO 0x2U
#define OS_PROCESS_INFO_LEN (g_processMaxNum * (sizeof(LosProcessCB)))
@@ -609,8 +604,3 @@ TASK_HELP:
SHELLCMD_ENTRY(task_shellcmd, CMD_TYPE_EX, "task", 1, (CmdCallBackFunc)OsShellCmdDumpTask);
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

10
kernel/base/misc/vm_shellcmd.c Executable file → Normal file
View File

@@ -44,11 +44,6 @@
#include "los_process_pri.h"
#include "fs/path_cache.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -264,8 +259,3 @@ SHELLCMD_ENTRY(pmm_shellcmd, CMD_TYPE_SHOW, "pmm", 0, (CmdCallBackFunc)OsShellCm
#endif
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -36,11 +36,6 @@
#include "los_atomic.h"
#include "los_exc.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SMP_LOCKDEP == YES)
@@ -344,8 +339,3 @@ VOID OsLockdepClearSpinlocks(VOID)
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -35,11 +35,6 @@
#include "los_sched_pri.h"
#include "los_swtmr.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SMP == YES)
@@ -112,8 +107,3 @@ UINT32 OsMpInit(VOID)
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

View File

@@ -31,16 +31,6 @@
#include "los_percpu_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
Percpu g_percpu[LOSCFG_KERNEL_CORE_NUM];
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -33,11 +33,6 @@
#if (LOSCFG_KERNEL_SMP == YES)
#include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID LOS_SpinInit(SPIN_LOCK_S *lock)
{
@@ -108,8 +103,3 @@ VOID LOS_SpinUnlockRestore(SPIN_LOCK_S *lock, UINT32 intSave)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/mp/los_stat.c Executable file → Normal file
View File

@@ -31,11 +31,6 @@
#include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SCHED_STATISTICS == YES)
#define HIGHTASKPRI 16
@@ -326,8 +321,3 @@ LITE_OS_SEC_TEXT_MINOR VOID OsShellMpStaticStop(VOID)
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/om/los_err.c Executable file → Normal file
View File

@@ -31,11 +31,6 @@
#include "los_err.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
LITE_OS_SEC_BSS STATIC LOS_ERRORHANDLE_FUNC g_errHandleHook = NULL;
@@ -54,8 +49,3 @@ LITE_OS_SEC_TEXT_INIT VOID LOS_SetErrHandleHook(LOS_ERRORHANDLE_FUNC fun)
g_errHandleHook = fun;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/sched/sched_sq/los_sched.c Executable file → Normal file
View File

@@ -47,11 +47,6 @@
#include "los_stat_pri.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_32BIT_MAX 0xFFFFFFFFUL
@@ -1137,8 +1132,3 @@ LOS_DL_LIST *OsSchedLockPendFindPos(const LosTaskCB *runTask, LOS_DL_LIST *lockL
return node;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_boot.c Executable file → Normal file
View File

@@ -38,11 +38,6 @@
#include "los_vm_page.h"
#include "los_arch_mmu.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
UINTPTR g_vmBootMemBase = (UINTPTR)&__bss_end;
BOOL g_kHeapInited = FALSE;
@@ -103,8 +98,3 @@ UINT32 OsSysMemInit(VOID)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_dump.c Executable file → Normal file
View File

@@ -45,11 +45,6 @@
#include "los_vm_lock.h"
#include "los_memory_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -553,8 +548,3 @@ VOID OsVmPhysUsedInfoGet(UINT32 *usedCount, UINT32 *totalCount)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_fault.c Executable file → Normal file
View File

@@ -45,11 +45,6 @@
#include "los_process_pri.h"
#include "arm.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -457,8 +452,3 @@ DONE:
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -42,11 +42,6 @@
#include "los_process_pri.h"
#include "los_vm_lock.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -764,8 +759,3 @@ INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -37,11 +37,6 @@
#include "los_vm_lock.h"
#include "los_memory.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID *LOS_DmaMemAlloc(DMA_ADDR_T *dmaAddr, size_t size, size_t align, enum DmaMemType type)
{
@@ -110,8 +105,3 @@ DMA_ADDR_T LOS_DmaVaddrToPaddr(VOID *vaddr)
return (DMA_ADDR_T)LOS_PaddrQuery(vaddr);
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_map.c Executable file → Normal file
View File

@@ -45,11 +45,6 @@
#include "los_memory_pri.h"
#include "los_vm_boot.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -1286,9 +1281,4 @@ VOID LOS_KernelFree(VOID *ptr)
}
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_page.c Executable file → Normal file
View File

@@ -35,11 +35,6 @@
#include "los_vm_boot.h"
#include "los_vm_filemap.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -132,8 +127,3 @@ LosVmPage *LOS_VmPageGet(PADDR_T paddr)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_phys.c Executable file → Normal file
View File

@@ -36,11 +36,6 @@
#include "los_vm_dump.h"
#include "los_process_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -639,8 +634,3 @@ VADDR_T *LOS_PaddrToKVaddr(PADDR_T paddr)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/los_vm_syscall.c Executable file → Normal file
View File

@@ -44,11 +44,6 @@
#include "los_vm_filemap.h"
#include "los_process_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -498,8 +493,3 @@ VOID LOS_DumpMemRegion(VADDR_T vaddr)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/base/vm/oom.c Executable file → Normal file
View File

@@ -44,11 +44,6 @@
#include "console.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM
@@ -252,8 +247,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OomTaskInit(VOID)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif

10
kernel/base/vm/shm.c Executable file → Normal file
View File

@@ -50,11 +50,6 @@
#include "shell.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_SHM
@@ -858,8 +853,3 @@ SHELLCMD_ENTRY(shm_shellcmd, CMD_TYPE_SHOW, "shm", 2, (CmdCallBackFunc)OsShellCm
#endif
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif

0
kernel/common/Kconfig Executable file → Normal file
View File

0
kernel/common/Makefile Executable file → Normal file
View File

View File

@@ -51,11 +51,6 @@
#include "fs/vfs_util.h"
#include "user_copy.h"
#include "fs/vnode.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define EACH_CHAR 1
#define UART_IOC_MAGIC 'u'
@@ -1620,8 +1615,3 @@ VOID OsWakeConsoleSendTask(VOID)
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/common/console.h Executable file → Normal file
View File

View File

@@ -37,11 +37,6 @@
#include "los_hwi_pri.h"
#include "shcmd.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_CPUP_INCLUDE_IRQ
STATIC CPUP_INFO_S hwiCpupAll[OS_HWI_MAX_NUM];
@@ -120,9 +115,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdHwi(INT32 argc, const CHAR **argv)
SHELLCMD_ENTRY(hwi_shellcmd, CMD_TYPE_EX, "hwi", 0, (CmdCallBackFunc)OsShellCmdHwi);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */

View File

@@ -31,11 +31,6 @@
#include "los_cir_buf_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
UINT32 LOS_CirBufUsedSize(CirBuf *cirbufCB)
{
@@ -218,8 +213,3 @@ VOID LOS_CirBufDeinit(CirBuf *cirbufCB)
(VOID)memset_s(cirbufCB, sizeof(CirBuf), 0, sizeof(CirBuf));
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/common/los_config.c Executable file → Normal file
View File

@@ -121,11 +121,6 @@
#include "los_quick_start_pri.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC SystemRebootFunc g_rebootHook = NULL;
@@ -418,8 +413,3 @@ UINT32 OsSystemInit(VOID)
return 0;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/common/los_config.h Executable file → Normal file
View File

View File

@@ -124,10 +124,5 @@ VOID OsExcInteractionTaskKeep(VOID)
(VOID)LOS_TaskDelete(OsCurrTaskGet()->taskID);
/* unreachable */
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif

View File

@@ -35,11 +35,6 @@
#include "fs/fs.h"
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_SHELL_EXCINFO
STATIC log_read_write_fn g_excInfoRW = NULL; /* the hook of read-writing exception information */
@@ -171,8 +166,3 @@ VOID OsRecordExcInfoTime(VOID)
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/common/los_hilog.h Executable file → Normal file
View File

View File

@@ -32,11 +32,6 @@
#include "los_magickey.h"
#include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_ENABLE_MAGICKEY
@@ -148,8 +143,3 @@ INT32 CheckMagicKey(CHAR key)
#endif
return 0;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/common/los_printf.c Executable file → Normal file
View File

@@ -47,11 +47,6 @@
#endif
#include "los_exc_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define SIZEBUF 256
@@ -280,8 +275,3 @@ VOID LOS_LkPrint(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, ...
}
#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

View File

@@ -70,11 +70,6 @@
STATIC los_disk *g_emmcDisk = NULL;
#endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifndef LOSCFG_SECURITY_BOOT
STATIC INT32 g_alignSize = 0;

0
kernel/common/los_rootfs.h Executable file → Normal file
View File

0
kernel/common/los_seq_buf.c Executable file → Normal file
View File

0
kernel/common/los_seq_buf.h Executable file → Normal file
View File

0
kernel/common/patchfs/los_patchfs.c Executable file → Normal file
View File

View File

@@ -40,11 +40,6 @@
#include "fs/path_cache.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC volatile UINT32 g_serialType = 0;
STATIC struct file g_serialFilep;
@@ -261,8 +256,3 @@ INT32 virtual_serial_deinit(VOID)
return unregister_driver(SERIAL);
}
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif

10
kernel/extended/cppsupport/los_cppsupport.c Executable file → Normal file
View File

@@ -32,11 +32,6 @@
#include "los_cppsupport.h"
#include "los_printf.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
typedef VOID (*InitFunc)(VOID);
@@ -53,8 +48,3 @@ LITE_OS_SEC_TEXT_MINOR INT32 LOS_CppSystemInit(UINTPTR initArrayStart, UINTPTR i
return 0;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
kernel/extended/cpup/cpup_shellcmd.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "shcmd.h"
#include "shell.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID OsCmdCpupOperateOneParam(UINT32 mode)
{
@@ -141,9 +136,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdCpup(INT32 argc, const CHAR **argv)
}
SHELLCMD_ENTRY(cpup_shellcmd, CMD_TYPE_EX, "cpup", XARGS, (CmdCallBackFunc)OsShellCmdCpup);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */

10
kernel/extended/cpup/los_cpup.c Executable file → Normal file
View File

@@ -34,11 +34,6 @@
#include "los_base.h"
#include "los_swtmr.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_CPUP
@@ -576,8 +571,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cp
#endif
#endif /* LOSCFG_KERNEL_CPUP */
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

0
kernel/extended/dynload/include/los_elf_auxvec_pri.h Executable file → Normal file
View File

0
kernel/extended/dynload/include/los_exec_elf.h Executable file → Normal file
View File

0
kernel/extended/dynload/include/los_ld_elf_pri.h Executable file → Normal file
View File

0
kernel/extended/dynload/include/los_load_elf.h Executable file → Normal file
View File

0
kernel/extended/dynload/src/los_exec_elf.c Executable file → Normal file
View File

0
kernel/extended/dynload/src/los_load_elf.c Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More