73 Memory_Copy(
const void *source,
void *destination,
const size_t size)
76 const uint8_t *sourceBytes = source;
77 uint8_t *destinationBytes = destination;
79 for (i = 0; i < size; ++i) {
80 destinationBytes[i] = sourceBytes[i];
AllocationMap kernelAllocationMap
The allocation map for the whole kernel.
#define ALLOW_ARITHM(X)
Allow arithmetic on a void pointer.
Kernel symbols definition.
Include appropriate config file.
void * brk
Break position, points to the first location beyond the current end of the heap.
const size_t LZ_CONFIG_BREAK_STACK_GAP
Size in bytes of the security gap between the break and the stack pointer.
void * KIncrementalMalloc(const size_t size)
Allocate memory for kernel objects using incremental method.
void Memory_Copy(const void *source, void *destination, const size_t size)
Copy bytes from one location to another in main memory.
int ptrdiff_t
Represents the difference between two pointers.
unsigned char uint8_t
Represents a unsigned integer type with width of exactly 8 bits.
#define NULL
NULL pointer.
Represents a map of the allocated memory regions and useful memory handlers for a task or the kernel...
Basic type definitions and useful macros.
static void * SetBreak(const unsigned int increment, AllocationMap *const map)
Set break position of a memory region.