forked from PoliEcho-holding-org/kern
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
|
diskRead(5, 1, filetable); // Read the filetable and store it in memory
|
||||||
|
|
||||||
printPhysicalMemmap();
|
|
||||||
|
|
||||||
// Run Interactive Shell Program
|
// Run Interactive Shell Program
|
||||||
// TODO: Make it in another file
|
// TODO: Make it in another file
|
||||||
while (1) {
|
while (1) {
|
||||||
@@ -179,10 +177,13 @@ void main() {
|
|||||||
print(" gfx | Does a graphics test\n");
|
print(" gfx | Does a graphics test\n");
|
||||||
print(" help | Prints this message\n");
|
print(" help | Prints this message\n");
|
||||||
print(" ls | Lists all available files\n");
|
print(" ls | Lists all available files\n");
|
||||||
|
print(" memmap | Prints the memory map and info\n");
|
||||||
print(" reboot | Reboots the system\n");
|
print(" reboot | Reboots the system\n");
|
||||||
print(" test | Performs tests\n");
|
print(" test | Performs tests\n");
|
||||||
} else if (strcmp(input, "ls") == 0) {
|
} else if (strcmp(input, "ls") == 0) {
|
||||||
printFiletable(filetable);
|
printFiletable(filetable);
|
||||||
|
} else if (strcmp(input, "memmap") == 0) {
|
||||||
|
printPhysicalMemmap();
|
||||||
} else if (strcmp(input, "reboot") == 0) {
|
} else if (strcmp(input, "reboot") == 0) {
|
||||||
outb(0x64, 0xFE);
|
outb(0x64, 0xFE);
|
||||||
} else if (strcmp(input, "test") == 0) {
|
} else if (strcmp(input, "test") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user