Skip to content

Commit

Permalink
📝updated manuals
Browse files Browse the repository at this point in the history
  • Loading branch information
EDI-Systems committed Mar 8, 2018
1 parent 618731d commit c63446b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified Documents/M5P1_Light-Weight-RTOS-User-Manual.pdf
Binary file not shown.
Binary file modified Documents/M5P1_轻量级实时操作系统使用说明书.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion MProkaron/Kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ ret_t RMP_Mem_Init(volatile void* Pool, ptr_t Size)
volatile struct RMP_Mem_Head* Mem_Head;

/* See if the memory pool is large enough to enable dynamic allocation - at least 4096 words */
if(Size<(4096*sizeof(ptr_t)))
if((Pool==0)||(Size<(4096*sizeof(ptr_t)))||((Size>>27)>0))
return RMP_ERR_MEM;

/* See if the address and size is word-aligned */
Expand Down

0 comments on commit c63446b

Please sign in to comment.