From 9681d6a6cbde12b00beab62683b8db98f680ba2b Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Thu, 29 Feb 2024 01:14:10 +0000 Subject: clear scren --- kjarna/efi/start.c | 2 ++ kjarna_runtime/main.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kjarna/efi/start.c b/kjarna/efi/start.c index 1c15c2c..8ef8cbe 100644 --- a/kjarna/efi/start.c +++ b/kjarna/efi/start.c @@ -19,6 +19,8 @@ EFI_STATUS _start(EFI_HANDLE handle, EFI_SYSTEM_TABLE *system_table) struct efi_context app_context = { handle, system_table }; efi_context = &app_context; + system_table->ConOut->ClearScreen(system_table->ConOut); + if (main(0, nullptr) != 0) { efi_errno = EFI_ABORTED; diff --git a/kjarna_runtime/main.c b/kjarna_runtime/main.c index dc00f4a..12a5522 100644 --- a/kjarna_runtime/main.c +++ b/kjarna_runtime/main.c @@ -1,12 +1,14 @@ #include #include +#define KJARNA_REVISION 1 + int main(int argc, char **argv) { (void)argc; (void)argv; - fputs("hello, runtime world!\n", stdout); + printf("kjarna %d\n", KJARNA_REVISION); while (1); -- cgit v1.3.1-1-g115d