Skip to content

Commit

Permalink
put ksh messages to kernel/messsages.h
Browse files Browse the repository at this point in the history
  • Loading branch information
GandelXIV committed May 11, 2021
1 parent 8049e60 commit a0321e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kernel/ksh.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ byte ksh_interpret(char* command)
}
else
{
kprints("Unknown command\n");
kprints(KERNEL_INFO_SHELL_UNKNOWN_COMMAND);
}
return KSH_OK;
}
Expand All @@ -72,7 +72,7 @@ void ksh_start()
c[i] = (char) 0;
}
byte response;
kprints("Type 'help' to open ksh manual\n");
kprints(KERNEL_INFO_SHELL_WELCOME);
while (true)
{
kprintc('$');
Expand Down
6 changes: 4 additions & 2 deletions kernel/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
// PANIC fatal problem
// just a function

#define KERNEL_INFO_ENTERED "[KERNEL.INFO] Entered the kernel\n" // start of main()
#define KERNEL_INFO_INIT_START "[KERNEL.INFO] Initialising...\n" // start of init()
#define KERNEL_INFO_ENTERED "[KERNEL.INFO] Entered the kernel\n" // start of main()
#define KERNEL_INFO_INIT_START "[KERNEL.INFO] Initialising...\n" // start of init()
#define KERNEL_INFO_INIT_DONE "[KERNEL.INFO] Done!\n" // end of init()
#define KERNEL_INFO_WELCOME "[KERNEL.INFO] Welcome to Pidi-OS!\n" // end of main() startup
#define KERNEL_INFO_SHELL_WELCOME "Type 'help' to open ksh manual\n" // on kshstart()
#define KERNEL_INFO_SHELL_UNKNOWN_COMMAND "Unknown command\n" // ksh input unkown
#define FIRMWARE_ERROR_ISR_EXCEPTION "[FIRMWARE.ERROR] isr expection: "

0 comments on commit a0321e6

Please sign in to comment.