calling main shell from kernel
This commit is contained in:
parent
e3b14232ea
commit
adfb460a5e
4
kernel.c
4
kernel.c
@ -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();
|
||||
}
|
||||
|
3
tests.c
3
tests.c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user