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 "stlio.h"
#include "mem.h" #include "mem.h"
#include "tests.h" #include "tests.h"
#include "shell.h"
void kinit() { void kinit() {
//gdt_configure(); //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 // Should kmain return, we fall back to the loader which then just keeps in a hung state
void kmain() { void kmain() {
kinit(); kinit();
test_read(); clear_fb();
jmain();
} }

View File

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