summaryrefslogtreecommitdiff
path: root/net/net_sys.h
blob: 3539bfcef3fb22d224876a9717b936bd3cbc7f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * @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"
#else
#include "net_sys_linux.h"
#endif