Implemented simple Multiboot1 kernel

This commit is contained in:
2024-12-29 22:02:48 +01:00
parent 84a0d49942
commit bfe67a791e
14 changed files with 488 additions and 25 deletions
+13 -11
View File
@@ -1,17 +1,19 @@
#ifndef _CTYPE_H
#define _CTYPE_H
/* Bitfield values
Property | Bit
------------|-----
Digit | 0
Letter | 1
Lowercase | 2
Punct | 3
Space | 4
Control | 5
Printable | 6
Hex digit | 7
/*
* Bitfield values
*
* Property | Bit
* ------------|-----
* Digit | 0
* Letter | 1
* Lowercase | 2
* Punct | 3
* Space | 4
* Control | 5
* Printable | 6
* Hex digit | 7
*/
#define _DIGIT_MASK (1<<0)
#define _ALPHA_MASK (1<<1)
+4 -11
View File
@@ -1,14 +1,7 @@
#
# C Standard library
#
.PHONY: all clean
include make.defaults
all:
@echo "TODO: Write this makefile..."
$(LIBC): $(LIBC_SRC)
@echo "Building $(LIBC)..."
for f in $(LIBC_SRC); do\
filename=$$(basename $$f .c);\
$(CC) $(CFLAGS) -I$(LIBC_INC) -o $(BIN)/libc/$$filename.o -c $$f;\
done
$(LD) $(LDFLAGS) -r -o $(LIBC) $(BIN)/libc/**.o
clean: