update PrintInt and change PutString to PutInt

This commit is contained in:
ChenYen-Yen committed 2024-10-22 16:27:49 +08:00
1 parent 486f032cf0
commit b18dbf056f
8 files changed
+21 -35

No files matched your search

+4 -1
View File
@@ -308,4 +308,7 @@ int Kernel::CreateFile(char *filename)
return fileSystem->Create(filename);
}
void Kernel::PrintInt(int value)
{
return synchConsoleOut->PutInt(value);
}
+3 -1
View File
@@ -42,7 +42,9 @@ class Kernel {
void ConsoleTest(); // interactive console self test
void NetworkTest(); // interactive 2-machine network test
Thread* getThread(int threadID){return t[threadID];}
Thread* getThread(int threadID){return t[threadID];}
void PrintInt(int n);
int CreateFile(char* filename); // fileSystem call