Started using virtual memory manager in kernel. Also changes read() function to accept a char* to write to

This commit is contained in:
2024-05-24 15:47:45 +02:00
parent 978ada55ca
commit f009bbdac9
8 changed files with 63 additions and 71 deletions
+2 -4
View File
@@ -5,10 +5,8 @@ void print(const char* s) { // Use Syscall(1) - Puts()
__asm__ volatile ("int $0x80" : : "a"(1), "b"(s));
}
char* read() { // Use Syscall(2) - Gets()
char* s;
__asm__ volatile ("int $0x80" : "=b"(s) : "a"(2));
return s;
void read(char* s) { // Use Syscall(2) - Gets()
__asm__ volatile ("int $0x80" : : "a"(2), "b"(s));
}
#endif