calling main shell from kernel

This commit is contained in:
shockrah 2019-12-05 02:16:56 -08:00
parent e3b14232ea
commit adfb460a5e
2 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@
#include "stlio.h"
#include "mem.h"
#include "tests.h"
#include "shell.h"
void kinit() {
//gdt_configure();
@ -20,5 +21,6 @@ void kinit() {
// Should kmain return, we fall back to the loader which then just keeps in a hung state
void kmain() {
kinit();
test_read();
clear_fb();
jmain();
}

View File

@ -2,6 +2,7 @@
#include "stlio.h"
#include "tests.h"
#include "serial.h"
#include "shell.h"
void test_serial_write() {
char* serial1 = "0123456789abcdef0123456789abcdef";
@ -16,8 +17,6 @@ void test_write(void) {
void test_dispatcher(void) {
clear_fb();
test_write();
test_write();
}
void test_read(void) {
char buf[5];