6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
* value `0`. (note that the brk syscall and the libc
* wrapper have different behavior.) */
#include <k/mem.h>
#include <k/def.h>
#ifdef KFenv_posix
# include <posix/posix.h>
#endif
/* returns void* instead of kmres because kmlini has
* no failure state */
void* kmlini(void) {
k_platform_syscall_arg zero = 0;
/* brk adjusts the heap break then returns the new
|
|
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
* value `0`. (note that the brk syscall and the libc
* wrapper have different behavior.) */
#include <k/mem.h>
#include <k/def.h>
#ifdef KFenv_posix
# include <posix.h>
#endif
/* returns void* instead of kmres because kmlini has
* no failure state */
void* kmlini(void) {
k_platform_syscall_arg zero = 0;
/* brk adjusts the heap break then returns the new
|