Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
f63ce993
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
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看板
提交
f63ce993
编写于
11月 10, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 10, 2021
浏览文件
操作
浏览文件
下载
差异文件
!692 chore: 修复内存模块的一些不规范用语
Merge pull request !692 from kenneth/mmu_fix
上级
e317f9b5
466996b2
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
12 deletion
+12
-12
arch/arm/arm/include/los_arch_mmu.h
arch/arm/arm/include/los_arch_mmu.h
+1
-1
arch/arm/arm/src/los_arch_mmu.c
arch/arm/arm/src/los_arch_mmu.c
+4
-4
kernel/base/vm/los_vm_dump.c
kernel/base/vm/los_vm_dump.c
+2
-2
kernel/base/vm/los_vm_fault.c
kernel/base/vm/los_vm_fault.c
+1
-1
kernel/base/vm/los_vm_scan.c
kernel/base/vm/los_vm_scan.c
+2
-2
kernel/include/los_membox.h
kernel/include/los_membox.h
+1
-1
kernel/include/los_memory.h
kernel/include/los_memory.h
+1
-1
未找到文件。
arch/arm/arm/include/los_arch_mmu.h
浏览文件 @
f63ce993
...
...
@@ -71,5 +71,5 @@ VADDR_T *OsGFirstTableGet(VOID);
#endif
/* __cplusplus */
#endif
/* __cplusplus */
#endif
/* __LOS_
VM_PAGE
_H__ */
#endif
/* __LOS_
ARCH_MMU
_H__ */
arch/arm/arm/src/los_arch_mmu.c
浏览文件 @
f63ce993
...
...
@@ -618,7 +618,7 @@ STATIC UINT32 OsCvtPte2FlagsToAttrs(UINT32 flags)
return
mmuFlags
;
}
STATIC
UINT32
OsMapL2PageContinous
(
PTE_T
pte1
,
UINT32
flags
,
VADDR_T
*
vaddr
,
PADDR_T
*
paddr
,
UINT32
*
count
)
STATIC
UINT32
OsMapL2PageContin
u
ous
(
PTE_T
pte1
,
UINT32
flags
,
VADDR_T
*
vaddr
,
PADDR_T
*
paddr
,
UINT32
*
count
)
{
PTE_T
*
pte2BasePtr
=
NULL
;
UINT32
archFlags
;
...
...
@@ -662,9 +662,9 @@ status_t LOS_ArchMmuMap(LosArchMmu *archMmu, VADDR_T vaddr, PADDR_T paddr, size_
l1Entry
=
OsGetPte1
(
archMmu
->
virtTtb
,
vaddr
);
if
(
OsIsPte1Invalid
(
l1Entry
))
{
OsMapL1PTE
(
archMmu
,
&
l1Entry
,
vaddr
,
flags
);
saveCounts
=
OsMapL2PageContinous
(
l1Entry
,
flags
,
&
vaddr
,
&
paddr
,
&
count
);
saveCounts
=
OsMapL2PageContin
u
ous
(
l1Entry
,
flags
,
&
vaddr
,
&
paddr
,
&
count
);
}
else
if
(
OsIsPte1PageTable
(
l1Entry
))
{
saveCounts
=
OsMapL2PageContinous
(
l1Entry
,
flags
,
&
vaddr
,
&
paddr
,
&
count
);
saveCounts
=
OsMapL2PageContin
u
ous
(
l1Entry
,
flags
,
&
vaddr
,
&
paddr
,
&
count
);
}
else
{
LOS_Panic
(
"%s %d, unimplemented tt_entry %x
\n
"
,
__FUNCTION__
,
__LINE__
,
l1Entry
);
}
...
...
@@ -716,7 +716,7 @@ STATUS_T LOS_ArchMmuMove(LosArchMmu *archMmu, VADDR_T oldVaddr, VADDR_T newVaddr
PADDR_T
paddr
=
0
;
if
((
archMmu
==
NULL
)
||
(
oldVaddr
==
0
)
||
(
newVaddr
==
0
)
||
(
count
==
0
))
{
VM_ERR
(
"invalid args: archMmu %p, oldVaddr %p, newVddr %p, count %d"
,
VM_ERR
(
"invalid args: archMmu %p, oldVaddr %p, newV
a
ddr %p, count %d"
,
archMmu
,
oldVaddr
,
newVaddr
,
count
);
return
LOS_NOK
;
}
...
...
kernel/base/vm/los_vm_dump.c
浏览文件 @
f63ce993
...
...
@@ -97,7 +97,7 @@ INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region)
if
(((
region
->
range
.
base
+
region
->
range
.
size
)
>
regionTemp
->
range
.
base
)
&&
(
region
->
range
.
base
<
(
regionTemp
->
range
.
base
+
regionTemp
->
range
.
size
)))
{
VM_ERR
(
"overlap between regions:
\n
"
"fla
l
s:%#x base:%p size:%08x space:%p
\n
"
"fla
g
s:%#x base:%p size:%08x space:%p
\n
"
"flags:%#x base:%p size:%08x space:%p"
,
region
->
regionFlags
,
region
->
range
.
base
,
region
->
range
.
size
,
region
->
space
,
regionTemp
->
regionFlags
,
regionTemp
->
range
.
base
,
regionTemp
->
range
.
size
,
regionTemp
->
space
);
...
...
@@ -521,7 +521,7 @@ VOID OsVmPhysDump(VOID)
PRINTK
(
"active anon %d
\n
"
,
seg
->
lruSize
[
VM_LRU_ACTIVE_ANON
]);
PRINTK
(
"inactive anon %d
\n
"
,
seg
->
lruSize
[
VM_LRU_INACTIVE_ANON
]);
PRINTK
(
"active file %d
\n
"
,
seg
->
lruSize
[
VM_LRU_ACTIVE_FILE
]);
PRINTK
(
"inacti
c
e file %d
\n
"
,
seg
->
lruSize
[
VM_LRU_INACTIVE_FILE
]);
PRINTK
(
"inacti
v
e file %d
\n
"
,
seg
->
lruSize
[
VM_LRU_INACTIVE_FILE
]);
}
}
PRINTK
(
"
\n\r
pmm pages: total = %u, used = %u, free = %u
\n
"
,
...
...
kernel/base/vm/los_vm_fault.c
浏览文件 @
f63ce993
...
...
@@ -140,7 +140,7 @@ STATIC STATUS_T OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault)
return
LOS_ERRNO_VM_NO_MEMORY
;
}
/*
nu
map a page when cow happend only */
/*
un
map a page when cow happend only */
STATIC
LosVmPage
*
OsCowUnmapOrg
(
LosArchMmu
*
archMmu
,
LosVmMapRegion
*
region
,
LosVmPgFault
*
vmf
)
{
UINT32
intSave
;
...
...
kernel/base/vm/los_vm_scan.c
浏览文件 @
f63ce993
...
...
@@ -77,7 +77,7 @@ VOID OsLruCacheAdd(LosFilePage *fpage, enum OsLruList lruType)
LOS_SpinUnlockRestore
(
&
physSeg
->
lruLock
,
intSave
);
}
/* del
l
ete a lru node, caller need hold lru_lock */
/* delete a lru node, caller need hold lru_lock */
VOID
OsLruCacheDel
(
LosFilePage
*
fpage
)
{
LosVmPhysSeg
*
physSeg
=
fpage
->
physSeg
;
...
...
@@ -175,7 +175,7 @@ VOID OsPageRefIncLocked(LosFilePage *fpage)
LOS_SpinUnlockRestore
(
&
fpage
->
physSeg
->
lruLock
,
intSave
);
}
/* page referced dec: (call by
t
hrinker)
/* page referced dec: (call by
s
hrinker)
----------inactive----------|----------active------------
[ref:0,act:0], [ref:1,act:0]|[ref:0,act:1], [ref:1,act:1]
ref:1, act:1 --> ref:0, act:1
...
...
kernel/include/los_membox.h
浏览文件 @
f63ce993
...
...
@@ -230,7 +230,7 @@ extern VOID LOS_ShowBox(VOID *pool);
*
* @param boxMem [IN] Type #VOID* Pointer to the calculate membox.
* @param maxBlk [OUT] Type #UINT32* Record membox max block.
* @param blkCnt [OUT] Type #UINT32* Record membox block count alreay allocated.
* @param blkCnt [OUT] Type #UINT32* Record membox block count alrea
d
y allocated.
* @param blkSize [OUT] Type #UINT32* Record membox block size.
*
* @retval #LOS_OK The heap status calculate success.
...
...
kernel/include/los_memory.h
浏览文件 @
f63ce993
...
...
@@ -59,7 +59,7 @@ extern "C" {
/**
* @ingroup los_memory
* The recored layes of function call.
* The recored laye
r
s of function call.
*/
#define LOS_RECORD_LR_CNT 3
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录