aboutsummaryrefslogtreecommitdiff
path: root/src/lib/mem.h
blob: ec1402f4497e9d32bbe1f852e0c5bcfdd5e07d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LIB_MEM_H
#define LIB_MEM_H

struct MemTab {
	unsigned char size;
	unsigned char in_use;
	void* data;
} __attribute__((packed));

void memcpy(unsigned char* src, unsigned char* dest, unsigned int n);
unsigned char memcmp(unsigned char* a, unsigned char* b, unsigned int n);

void memshow32(unsigned long* addr, unsigned int n);
void memcpy32(unsigned long* src, unsigned long* dest, unsigned int n);
unsigned char memcmp32(unsigned long* a, unsigned long* b, unsigned int n);

void* malloc(unsigned char size);
void free(void* memloc);
void* heap_base(void);
void* heap_top(void);
void heap_info(void);

#endif