5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
* this memory simply by growing the heap the proper
* length. */
#include <k/mem.h>
#include <k/def.h>
#ifdef KFenv_posix
# include <posix/posix.h>
#endif
kmres kmlina(sz size) {
k_platform_syscall_arg
top = (sz)kmlini(),
newbrk = top + size;
|
|
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
* this memory simply by growing the heap the proper
* length. */
#include <k/mem.h>
#include <k/def.h>
#ifdef KFenv_posix
# include <posix.h>
#endif
kmres kmlina(sz size) {
k_platform_syscall_arg
top = (sz)kmlini(),
newbrk = top + size;
|