Differences From Artifact [fd2ee0e61b]:
- File mod/kmem/heapf.fn.c — part of check-in [709ffb094d] at 2019-08-22 04:31:43 on branch trunk — finish moving heap allocation/free functions to the posix syscall apparatus and deprecate the direct assembly implementations of platform_mmap; update the kmem docs to match new function signatures (and remove typos) (user: lexi, size: 1631) [annotate] [blame] [check-ins using]
To Artifact [868113c60d]:
- File mod/kmem/heapf.fn.c — part of check-in [f37ee769c9] at 2019-08-22 08:52:25 on branch trunk — add tests for linear allocators, fix dumb bug in kmheapf() that caused it to return an error on success (user: lexi, size: 1631) [annotate] [blame] [check-ins using]
35 35 * (ptr - sizeof sz). see kmheap.c for details. */ 36 36 k_platform_syscall_arg args[] = { (sz)header, total }; 37 37 struct k_platform_syscall_answer r = k_platform_syscall 38 38 (k_platform_syscall_munmap, Kmsz(args), args); 39 39 40 - if(r.error==0) { 40 + if(r.error!=0) { 41 41 /* we don't need to bother recovering the error 42 42 * code, there's only one possible munmap error */ 43 43 return kmcond_bad_address; 44 44 } 45 45