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 "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();
|
||||||
}
|
}
|
||||||
|
3
tests.c
3
tests.c
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user