File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1111typedef __kernel_size_t size_t ;
1212#endif /* ifndef _SIZE_T */
1313
14+ #ifndef NULL
15+ #define NULL (void *)0x0
16+ #endif /* ifndef _NULL */
17+
1418#ifndef _INT_TYPES
1519#define _INT_TYPES
1620typedef __kernel_int8_t int8_t ;
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ BUILD_DIR = ../build/kernel
55TARGET = $(BUILD_DIR ) /kernel.bin
66ASM_OBJS = kernel_asm.o util/portio_asm.o
77OBJS = kernel.o video/video.o interrupt/interrupt.o \
8- interrupt/handler.o serial/serial.o
8+ interrupt/handler.o serial/serial.o memory/alloc.o
99INCLUDE = util/portio.h video/video.h util/types.h interrupt/interrupt.h \
10- util/keyboard_map.h config.h serial/serial.h debug/debug.h
10+ util/keyboard_map.h config.h serial/serial.h debug/debug.h \
11+ memory/alloc.h
1112INCLUDE_DIR = include
1213
1314all : $(TARGET )
Original file line number Diff line number Diff line change 1+ #include "alloc.h"
2+
3+ void * malloc (size_t size )
4+ {
5+ return NULL ;
6+ }
Original file line number Diff line number Diff line change 11#ifndef ALLOC_H_FCDE3OCS
22#define ALLOC_H_FCDE3OCS
33
4+ #include <types.h>
5+
46void * malloc (size_t size );
57void * realloc (void * ptr , size_t size );
68void * calloc (size_t nmemb , size_t size );
You can’t perform that action at this time.
0 commit comments