Created the Malloc function; first stage of memory management implemented.
This commit is contained in:
@@ -2,15 +2,21 @@
|
||||
#define __SYSTEM_H
|
||||
/* Primitives */
|
||||
typedef enum { false, true } bool;
|
||||
typedef unsigned int size_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
/* MAIN.C */
|
||||
extern unsigned char *memcpy(unsigned char *dest, const unsigned char *src, int count);
|
||||
extern unsigned char *memset(unsigned char *dest, unsigned char val, int count);
|
||||
extern unsigned short *memsetw(unsigned short *dest, unsigned short val, int count);
|
||||
extern int strlen(const char *str);
|
||||
unsigned char strconcat(unsigned char *dest, unsigned char* src);
|
||||
extern unsigned char inportb (unsigned short _port);
|
||||
extern void outportb (unsigned short _port, unsigned char _data);
|
||||
extern bool strcmp(char* str1, char* str2);
|
||||
extern void idle();
|
||||
char* int_to_string(int value, int base);
|
||||
/* ISRS.C */
|
||||
void isrs_install();
|
||||
/* This defines what the stack looks like after an ISR was running */
|
||||
|
||||
Reference in New Issue
Block a user