Browse Source

fix a bug of compiler failed from wang weigen

it is OK
master
xuedongliang 5 months ago
parent
commit
0ddb5bfd1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Ubiquitous/XiUOS/kernel/memory/byte_manage.c

+ 1
- 1
Ubiquitous/XiUOS/kernel/memory/byte_manage.c View File

@ -953,7 +953,7 @@ void *x_umalloc(x_size_t size)
lock = CriticalAreaLock();
/* alignment */
size = ALIGN_MEN_UP(size, MEM_ALIGN_SIZE);
ret = UserByteManager.dynamic_buddy_manager.done->malloc(&UserByteManager.dynamic_buddy_manager,size);
ret = UserByteManager.dynamic_buddy_manager.done->malloc(&UserByteManager.dynamic_buddy_manager,size,DYNAMIC_BLOCK_NO_EXTMEM_MASK);
if(ret != NONE)
CHECK(UserByteManager.dynamic_buddy_manager.done->JudgeLegal(&UserByteManager.dynamic_buddy_manager, ret - SIZEOF_DYNAMICALLOCNODE_MEM));

Loading…
Cancel
Save