diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-29 01:14:10 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-29 01:14:10 +0000 |
| commit | 9681d6a6cbde12b00beab62683b8db98f680ba2b (patch) | |
| tree | 06a6cf3cd6fc5b636fd4599a34c57f5e8d53ab00 | |
| parent | b9cae0d43fc9a56b430dbee5e7ae795b63db6ad2 (diff) | |
clear scren
| -rw-r--r-- | kjarna/efi/start.c | 2 | ||||
| -rw-r--r-- | kjarna_runtime/main.c | 4 |
2 files changed, 5 insertions, 1 deletions
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 <unistd.h> #include <stdio.h> +#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); |
