!187 remove redundant field regions in VmSpace structure
Merge pull request !187 from Harylee/dev
This commit is contained in:
commit
e5cb9cb56e
|
@ -107,9 +107,8 @@ struct VmMapRegion {
|
||||||
|
|
||||||
typedef struct VmSpace {
|
typedef struct VmSpace {
|
||||||
LOS_DL_LIST node; /**< vm space dl list */
|
LOS_DL_LIST node; /**< vm space dl list */
|
||||||
LOS_DL_LIST regions; /**< region dl list */
|
|
||||||
LosRbTree regionRbTree; /**< region red-black tree root */
|
LosRbTree regionRbTree; /**< region red-black tree root */
|
||||||
LosMux regionMux; /**< region list mutex lock */
|
LosMux regionMux; /**< region red-black tree mutex lock */
|
||||||
VADDR_T base; /**< vm space base addr */
|
VADDR_T base; /**< vm space base addr */
|
||||||
UINT32 size; /**< vm space size */
|
UINT32 size; /**< vm space size */
|
||||||
VADDR_T heapBase; /**< vm space heap base address */
|
VADDR_T heapBase; /**< vm space heap base address */
|
||||||
|
|
|
@ -132,7 +132,6 @@ STATIC BOOL OsVmSpaceInitCommon(LosVmSpace *vmSpace, VADDR_T *virtTtb)
|
||||||
{
|
{
|
||||||
LOS_RbInitTree(&vmSpace->regionRbTree, OsRegionRbCmpKeyFn, OsRegionRbFreeFn, OsRegionRbGetKeyFn);
|
LOS_RbInitTree(&vmSpace->regionRbTree, OsRegionRbCmpKeyFn, OsRegionRbFreeFn, OsRegionRbGetKeyFn);
|
||||||
|
|
||||||
LOS_ListInit(&vmSpace->regions);
|
|
||||||
status_t retval = LOS_MuxInit(&vmSpace->regionMux, NULL);
|
status_t retval = LOS_MuxInit(&vmSpace->regionMux, NULL);
|
||||||
if (retval != LOS_OK) {
|
if (retval != LOS_OK) {
|
||||||
VM_ERR("Create mutex for vm space failed, status: %d", retval);
|
VM_ERR("Create mutex for vm space failed, status: %d", retval);
|
||||||
|
|
Loading…
Reference in New Issue