mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added 'memmap' command
This commit is contained in:
+3
-2
@@ -57,8 +57,6 @@ void main() {
|
||||
|
||||
diskRead(5, 1, filetable); // Read the filetable and store it in memory
|
||||
|
||||
printPhysicalMemmap();
|
||||
|
||||
// Run Interactive Shell Program
|
||||
// TODO: Make it in another file
|
||||
while (1) {
|
||||
@@ -179,10 +177,13 @@ void main() {
|
||||
print(" gfx | Does a graphics test\n");
|
||||
print(" help | Prints this message\n");
|
||||
print(" ls | Lists all available files\n");
|
||||
print(" memmap | Prints the memory map and info\n");
|
||||
print(" reboot | Reboots the system\n");
|
||||
print(" test | Performs tests\n");
|
||||
} else if (strcmp(input, "ls") == 0) {
|
||||
printFiletable(filetable);
|
||||
} else if (strcmp(input, "memmap") == 0) {
|
||||
printPhysicalMemmap();
|
||||
} else if (strcmp(input, "reboot") == 0) {
|
||||
outb(0x64, 0xFE);
|
||||
} else if (strcmp(input, "test") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user