Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
bc70db58
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看板
提交
bc70db58
编写于
3月 14, 2022
作者:
X
x_xiny
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:修复拼写错误
Signed-off-by:
N
x_xiny
<
1301913191@qq.com
>
Change-Id: I1cc4897e5d37dd98696221f0cc70220cef45e7d4
上级
0f75bf01
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
24 addition
and
24 deletion
+24
-24
Kconfig
Kconfig
+2
-2
Makefile
Makefile
+1
-1
fs/include/fs/fs_operation.h
fs/include/fs/fs_operation.h
+1
-1
fs/vfs/bcache/src/bcache.c
fs/vfs/bcache/src/bcache.c
+1
-1
kernel/base/include/los_stackinfo_pri.h
kernel/base/include/los_stackinfo_pri.h
+2
-2
kernel/base/mp/los_lockdep.c
kernel/base/mp/los_lockdep.c
+2
-2
kernel/extended/liteipc/hm_liteipc.c
kernel/extended/liteipc/hm_liteipc.c
+1
-1
kernel/include/los_ld_elflib.h
kernel/include/los_ld_elflib.h
+2
-2
kernel/include/los_trace.h
kernel/include/los_trace.h
+2
-2
net/lwip-2.1/enhancement/src/api_shell.c
net/lwip-2.1/enhancement/src/api_shell.c
+2
-2
net/telnet/src/telnet_dev.c
net/telnet/src/telnet_dev.c
+2
-2
testsuites/kernel/sample/kernel_base/core/swtmr/full/It_los_swtmr_037.c
...nel/sample/kernel_base/core/swtmr/full/It_los_swtmr_037.c
+2
-2
testsuites/kernel/sample/kernel_base/core/swtmr/full/It_los_swtmr_066.c
...nel/sample/kernel_base/core/swtmr/full/It_los_swtmr_066.c
+1
-1
testsuites/kernel/sample/posix/mutex/smoke/It_posix_mutex_016.c
...ites/kernel/sample/posix/mutex/smoke/It_posix_mutex_016.c
+2
-2
testsuites/unittest/common/osTest.cpp
testsuites/unittest/common/osTest.cpp
+1
-1
未找到文件。
Kconfig
浏览文件 @
bc70db58
...
...
@@ -189,7 +189,7 @@ config DEBUG_VERSION
It also means you do not want to use debug modules, like shell,telnet,tftp,nfs and
memory check, etc.
If you select this option that means you enable a debug version for LiteOS.
That means you want a opposite behaviour compared to release version.
That means you want a
n
opposite behaviour compared to release version.
config DEBUG_KERNEL
bool "Enable Debug LiteOS Kernel Resource"
...
...
@@ -198,7 +198,7 @@ config DEBUG_KERNEL
help
If you select this option that means you enable debugging kernel resource.
It also means you want to get queue, mutex, semaphore, memory debug information.
That means you want a opposite behaviour compared to release version.
That means you want a
n
opposite behaviour compared to release version.
config DEBUG_QUEUE
bool "Enable Queue Debugging"
...
...
Makefile
浏览文件 @
bc70db58
...
...
@@ -97,7 +97,7 @@ Targets:
cleanall
:
clean all build outputs
all
:
make liteos kernel image and rootfs image (Default target)
$(APPS)
:
build all apps
$(ROOTFS)
:
make a original rootfs image
$(ROOTFS)
:
make a
n
original rootfs image
$(LITEOS_LIBS_TARGET)
:
compile all kernel modules (libraries)
$(LITEOS_TARGET)
:
make liteos kernel image
update_config
:
update product kernel config (use menuconfig)
...
...
fs/include/fs/fs_operation.h
浏览文件 @
bc70db58
...
...
@@ -98,7 +98,7 @@ extern char *rindex(const char *s, int c);
* @ingroup fs
*
* @par Description:
* The set_label() function shall set the value of a global varible,
* The set_label() function shall set the value of a global vari
a
ble,
* the value will be used to set the label of SD card in format().
*
* @param name [IN] label to set, the length must be less than 12
...
...
fs/vfs/bcache/src/bcache.c
浏览文件 @
bc70db58
...
...
@@ -351,7 +351,7 @@ static INT32 BcacheSyncBlock(OsBcache *bc, OsBcacheBlock *block)
UINT32
len
,
start
,
end
;
if
(
block
->
modified
==
TRUE
)
{
D
((
"bcache writ
t
ing block = %llu
\n
"
,
block
->
num
));
D
((
"bcache writing block = %llu
\n
"
,
block
->
num
));
ret
=
FindFlagPos
(
block
->
flag
,
bc
->
sectorPerBlock
>>
UNINT_LOG2_SHIFT
,
&
start
,
&
end
);
if
(
ret
==
ENOERR
)
{
...
...
kernel/base/include/los_stackinfo_pri.h
浏览文件 @
bc70db58
...
...
@@ -48,7 +48,7 @@ typedef struct {
}
StackInfo
;
#define OS_INVALID_WATERLINE 0xFFFFFFFF
#define OS_STACK_MAGIC_CHECK(topstack) (*(UINTPTR *)(topstack) == OS_STACK_MAGIC_WORD)
/* 1:magic valid 0:
u
nvalid */
#define OS_STACK_MAGIC_CHECK(topstack) (*(UINTPTR *)(topstack) == OS_STACK_MAGIC_WORD)
/* 1:magic valid 0:
i
nvalid */
extern
VOID
OsExcStackInfo
(
VOID
);
extern
VOID
OsExcStackInfoReg
(
const
StackInfo
*
stackInfo
,
UINT32
stackNum
);
...
...
@@ -81,4 +81,4 @@ extern UINT32 OsStackWaterLineGet(const UINTPTR *stackBottom, const UINTPTR *sta
#endif
/* __cplusplus */
#endif
/* __cplusplus */
#endif
/* _LOS_STACK_INFO_PRI_H */
\ No newline at end of file
#endif
/* _LOS_STACK_INFO_PRI_H */
kernel/base/mp/los_lockdep.c
浏览文件 @
bc70db58
...
...
@@ -87,7 +87,7 @@ STATIC INLINE CHAR *OsLockDepErrorStringGet(enum LockDepErrType type)
errorString
=
"lockdep overflow"
;
break
;
default:
errorString
=
"unknow error code"
;
errorString
=
"unknow
n
error code"
;
break
;
}
...
...
@@ -313,7 +313,7 @@ VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
/* record lock holding time */
heldlocks
[
depth
].
holdTime
=
OsLockDepGetCycles
()
-
heldlocks
[
depth
].
holdTime
;
/* if unlock a older lock, needs move heldLock records */
/* if unlock a
n
older lock, needs move heldLock records */
while
(
depth
<
lockDep
->
lockDepth
-
1
)
{
lockDep
->
heldLocks
[
depth
]
=
lockDep
->
heldLocks
[
depth
+
1
];
depth
++
;
...
...
kernel/extended/liteipc/hm_liteipc.c
浏览文件 @
bc70db58
...
...
@@ -1208,7 +1208,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 LiteIpcMsgHandle(IpcContent *con)
}
content
->
outMsg
=
msg
;
if
((
content
->
outMsg
->
type
<
0
)
||
(
content
->
outMsg
->
type
>=
MT_DEATH_NOTIFY
))
{
PRINT_ERR
(
"LiteIpc unknow msg type:%d
\n
"
,
content
->
outMsg
->
type
);
PRINT_ERR
(
"LiteIpc unknow
n
msg type:%d
\n
"
,
content
->
outMsg
->
type
);
ret
=
-
EINVAL
;
goto
BUFFER_FREE
;
}
...
...
kernel/include/los_ld_elflib.h
浏览文件 @
bc70db58
...
...
@@ -90,10 +90,10 @@ extern VOID *LOS_SoLoad(CHAR *elfFileName);
/**
* @ingroup dynload
* @brief Load a object file.
* @brief Load a
n
object file.
*
* @par Description:
* This API is used to load a object file under a particular module file path.
* This API is used to load a
n
object file under a particular module file path.
* @attention
* <ul>
* <li>The parameter passed to this API should be a legal path of an object file.</li>
...
...
kernel/include/los_trace.h
浏览文件 @
bc70db58
...
...
@@ -331,9 +331,9 @@ extern TRACE_EVENT_HOOK g_traceEventHook;
* <li>The first param is treat as key, keep at least this param if you want trace this event.</li>
* <li>All parameters were treated as UINTPTR.</li>
* </ul>
* eg. Trace a event as:
* eg. Trace a
n
event as:
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId, taskStatus, oldPrio, newPrio
* eg. Not Trace a event as:
* eg. Not Trace a
n
event as:
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio)
* eg. Trace only you need parmas as:
* #define TASK_PRIOSET_PARAMS(taskId, taskStatus, oldPrio, newPrio) taskId
...
...
net/lwip-2.1/enhancement/src/api_shell.c
浏览文件 @
bc70db58
...
...
@@ -1750,7 +1750,7 @@ LWIP_STATIC int osPingFunc(u32_t destip, u32_t cnt, u32_t interval, u32_t data_l
PRINTK
(
"
\n
Ping: parameter problem ..."
);
break
;
default
:
PRINTK
(
"
\n
Ping: unknow error ..."
);
PRINTK
(
"
\n
Ping: unknow
n
error ..."
);
break
;
}
i
++
;
...
...
@@ -2371,7 +2371,7 @@ LWIP_STATIC int create_ping6_socket(u8_t type, const void *param)
ret
=
lwip_setsockopt
(
sfd
,
SOL_SOCKET
,
SO_BINDTODEVICE
,
(
char
*
)(
param
),
strlen
((
char
*
)(
param
)));
if
(
ret
==
-
1
)
{
(
void
)
lwip_close
(
sfd
);
PRINTK
(
"ping6: unknown iface %s
\n
"
,
(
char
*
)(
param
));
PRINTK
(
"ping6: unknown
n
iface %s
\n
"
,
(
char
*
)(
param
));
return
ret
;
}
}
...
...
net/telnet/src/telnet_dev.c
浏览文件 @
bc70db58
...
...
@@ -191,7 +191,7 @@ STATIC INT32 TelnetClose(struct file *file)
}
/*
* Description : When a command resolver task tr
y
s to read the telnet device,
* Description : When a command resolver task tr
ie
s to read the telnet device,
* this method is called, and it will take out user's commands from the FIFO to run.
* Return : -1 --- On failure
* Non-negative integer --- length of commands taken out from the FIFO of the telnet device.
...
...
@@ -236,7 +236,7 @@ STATIC ssize_t TelnetRead(struct file *file, CHAR *buf, size_t bufLen)
}
/*
* Description : When a command resolver task tr
y
s to write command results to the telnet device,
* Description : When a command resolver task tr
ie
s to write command results to the telnet device,
* just use lwIP send function to send out results.
* Return : -1 --- buffer is NULL
* Non-negative integer --- length of written data, maybe 0.
...
...
testsuites/kernel/sample/kernel_base/core/swtmr/full/It_los_swtmr_037.c
浏览文件 @
bc70db58
...
...
@@ -66,8 +66,8 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskDelay
(
12
);
// 12, set delay time
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
if
(
g_testCount
<
10
)
{
// 10, if g_testCount < 10 set a erro code, then exit
ICUNIT_GOTO_EQUAL
(
g_testCount
,
10
,
g_testCount
,
EXIT
);
// 10, if g_testCount < 10 set a erro code, then exit
if
(
g_testCount
<
10
)
{
// 10, if g_testCount < 10 set a
n
erro code, then exit
ICUNIT_GOTO_EQUAL
(
g_testCount
,
10
,
g_testCount
,
EXIT
);
// 10, if g_testCount < 10 set a
n
erro code, then exit
}
EXIT:
...
...
testsuites/kernel/sample/kernel_base/core/swtmr/full/It_los_swtmr_066.c
浏览文件 @
bc70db58
...
...
@@ -63,7 +63,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_SwtmrTimeGet
(
swTmrID
,
&
tick
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
if
(
tick
>
4
)
{
// 4, if tick > 4, set a erro code, then exit
if
(
tick
>
4
)
{
// 4, if tick > 4, set a
n
erro code, then exit
ICUNIT_GOTO_EQUAL
(
1
,
0
,
tick
,
EXIT
);
}
...
...
testsuites/kernel/sample/posix/mutex/smoke/It_posix_mutex_016.c
浏览文件 @
bc70db58
...
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(VOID)
rc
=
pthread_mutexattr_getprioceiling
(
&
mta
,
&
prioceiling
);
ICUNIT_GOTO_EQUAL
(
rc
,
ENOERR
,
rc
,
EXIT
);
/* Make sure that prioceiling is within
g
the legal SCHED_FIFO boundries. */
/* Make sure that prioceiling is within the legal SCHED_FIFO boundries. */
if
(
prioceiling
!=
i
)
{
rc
=
pthread_mutexattr_destroy
(
&
mta
);
ICUNIT_GOTO_EQUAL
(
rc
,
ENOERR
,
rc
,
EXIT
);
...
...
@@ -101,4 +101,4 @@ VOID ItPosixMux016(void)
#if __cplusplus
}
#endif
/* __cpluscplus */
#endif
/* __cpluscplus */
\ No newline at end of file
#endif
/* __cpluscplus */
testsuites/unittest/common/osTest.cpp
浏览文件 @
bc70db58
...
...
@@ -469,7 +469,7 @@ int RemoveDir(const char *dir)
rmdir
(
dir
);
/* now dir is empty */
}
else
{
perror
(
"unknow file type!"
);
perror
(
"unknow
n
file type!"
);
}
return
0
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录