Closed EducatedMF closed 5 years ago
malloc() is a standard library function. it requires kernel system call brk() to perform its operations. you cannot just call it in kernel code because there are no system calls implemented yet. so first you have to write your own malloc() function.
Hello, Before anything else, thanks for the videos and this repo, awesome work! I managed to compile, print/read ints/strings and draw graphics. But now I want to convert the OS to 64bit, also when horsing around testing stuff, I tried using malloc and even though I have included stdlib.h I get : "....c:(.text+0x602): undefined reference to `malloc' " this is where I am trying to use malloc
Also can you provide more detail/reading material different than wikipedia on how vga_entry(...) works?