Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
23c2c270
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
464
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
23c2c270
编写于
3月 27, 2021
作者:
O
openharmony_ci
提交者:
Gitee
3月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
!98 内核支持syscall关闭
Merge pull request !98 from zhangfanfan2/master
上级
f2ba6f95
b1be50cd
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
18 addition
and
3 deletion
+18
-3
arch/arm/arm/src/los_hw_exc.S
arch/arm/arm/src/los_hw_exc.S
+2
-0
fs/vfs/vfs_cmd/vfs_shellcmd.c
fs/vfs/vfs_cmd/vfs_shellcmd.c
+4
-1
kernel/Kconfig
kernel/Kconfig
+8
-2
kernel/common/los_config.c
kernel/common/los_config.c
+2
-0
tools/build/mk/los_config.mk
tools/build/mk/los_config.mk
+2
-0
未找到文件。
arch/arm/arm/src/los_hw_exc.S
浏览文件 @
23c2c270
...
...
@@ -189,6 +189,7 @@ _osExceptSwiHdl:
MRS
R3
,
SPSR
MOV
R4
,
LR
#ifdef LOSCFG_KERNEL_SYSCALL
AND
R1
,
R3
,
#
CPSR_MASK_MODE
@
Interrupted
mode
CMP
R1
,
#
CPSR_USER_MODE
@
User
mode
BNE
OsKernelSVCHandler
@
Branch
if
not
user
mode
...
...
@@ -222,6 +223,7 @@ _osExceptSwiHdl:
LDMFD
SP
!,
{PC}
^
@
Return
to
user
OsKernelSVCHandler
:
#endif
ADD
R0
,
SP
,
#(
4
*
16
)
MOV
R5
,
R0
STMFD
R0
!,
{
R4
}
@
Store
PC
...
...
fs/vfs/vfs_cmd/vfs_shellcmd.c
浏览文件 @
23c2c270
...
...
@@ -1386,6 +1386,7 @@ int checkNum(const char *arg)
return
0
;
}
#ifdef LOSCFG_KERNEL_SYSCALL
int
osShellCmdSu
(
int
argc
,
const
char
**
argv
)
{
unsigned
int
su_uid
;
...
...
@@ -1415,7 +1416,7 @@ int osShellCmdSu(int argc, const char **argv)
SysSetGroupID
(
su_gid
);
return
0
;
}
#endif
int
osShellCmdChmod
(
int
argc
,
const
char
**
argv
)
{
...
...
@@ -1569,8 +1570,10 @@ SHELLCMD_ENTRY(touch_shellcmd, CMD_TYPE_EX, "touch", XARGS, (CmdCallBackFunc)osS
#if (defined(LOSCFG_FS_FAT))
SHELLCMD_ENTRY
(
sync_shellcmd
,
CMD_TYPE_EX
,
"sync"
,
XARGS
,
(
CmdCallBackFunc
)
osShellCmdSync
);
#endif
#ifdef LOSCFG_KERNEL_SYSCALL
SHELLCMD_ENTRY
(
su_shellcmd
,
CMD_TYPE_EX
,
"su"
,
XARGS
,
(
CmdCallBackFunc
)
osShellCmdSu
);
#endif
#endif
SHELLCMD_ENTRY
(
ls_shellcmd
,
CMD_TYPE_EX
,
"ls"
,
XARGS
,
(
CmdCallBackFunc
)
osShellCmdLs
);
SHELLCMD_ENTRY
(
pwd_shellcmd
,
CMD_TYPE_EX
,
"pwd"
,
XARGS
,
(
CmdCallBackFunc
)
osShellCmdPwd
);
SHELLCMD_ENTRY
(
cd_shellcmd
,
CMD_TYPE_EX
,
"cd"
,
XARGS
,
(
CmdCallBackFunc
)
osShellCmdCd
);
...
...
kernel/Kconfig
浏览文件 @
23c2c270
...
...
@@ -33,6 +33,12 @@ config KERNEL_SCHED_STATISTICS
help
This option will enable schedulder statistics.
config KERNEL_SYSCALL
bool "Enable Syscall"
default y
help
This option will enable syscall.
config KERNEL_EXTKERNEL
bool "Enable Extend Kernel"
default y
...
...
@@ -65,7 +71,7 @@ config CPUP_INCLUDE_IRQ
config KERNEL_DYNLOAD
bool "Enable Dynamic Load Feature"
default y
depends on KERNEL_EXTKERNEL
depends on KERNEL_EXTKERNEL
&& KERNEL_SYSCALL
help
If you wish to build LiteOS with support for dynamic load.
...
...
@@ -79,7 +85,7 @@ config ASLR
config KERNEL_VDSO
bool "Enable VDSO Feature"
default n
depends on KERNEL_EXTKERNEL
depends on KERNEL_EXTKERNEL
&& KERNEL_SYSCALL
help
If you wish to speed up some system calls.
...
...
kernel/common/los_config.c
浏览文件 @
23c2c270
...
...
@@ -277,7 +277,9 @@ LITE_OS_SEC_TEXT_INIT INT32 OsMain(VOID)
return
ret
;
}
#ifdef LOSCFG_KERNEL_SYSCALL
SyscallHandleInit
();
#endif
/*
* CPUP should be inited before first task creation which depends on the semaphore
...
...
tools/build/mk/los_config.mk
浏览文件 @
23c2c270
...
...
@@ -488,8 +488,10 @@ ifeq ($(LOSCFG_NULL_ADDRESS_PROTECT), y)
LITEOS_CMACRO
+=
-DLOSCFG_NULL_ADDRESS_PROTECT
endif
ifeq
($(LOSCFG_KERNEL_SYSCALL), y)
LITEOS_BASELIB
+=
-lsyscall
LIB_SUBDIRS
+=
syscall
endif
LIB_SUBDIRS
+=
kernel/user
############################# Tools && Debug Option End #################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录