summaryrefslogtreecommitdiff
path: root/net/net_sys.h
blob: 507b334c0e788ffbfd2de9dde4a89697ede12222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * @file
 *
 * this functions need to be provided and linked against the fool stack.
 *
 *  * memcpy(dst,src,x);      - copy x bytes of memory to dst from src
 *  * klog(...);              - printf style logger
 *  * addr=kballoc(x);        - allocate x 4096 byte pages of memory
 *  * kbfree(addr);           - free memory allocated with kballoc
 *
 *  You only need to provide this functions, check the provided 
 *  implementations for examples:
 *
 *  * net_sys_linux           - linux userspace
 *  * net_sys_foolos_kernel.h - standalone fool-os in-kernel
 */

#ifdef FOOLOS_KERNEL
#include "net_sys_foolos_kernel.h"
#endif

#ifdef PLATFORM_LINUX
#include "net_sys_linux.h"
#endif