diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-22 20:05:51 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-22 20:05:51 +0000 |
| commit | aec58be40927ec0b2a0e6742396f880d52ce38b5 (patch) | |
| tree | 5336b9966808a6d0706e7469d239d1dbc11cb3e2 /kjarna/efi | |
| parent | e97aa65fc42f08fe666a9a21b69d05ab17231920 (diff) | |
kjarna runtime
Diffstat (limited to 'kjarna/efi')
| -rw-r--r-- | kjarna/efi/image.c | 2 | ||||
| -rw-r--r-- | kjarna/efi/start.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/kjarna/efi/image.c b/kjarna/efi/image.c index 8af9cfd..c26b588 100644 --- a/kjarna/efi/image.c +++ b/kjarna/efi/image.c @@ -89,7 +89,7 @@ static ssize_t load_segments(int fd, Elf64_Ehdr *ehdr, Elf64_Phdr *phdrs, char * static struct image_buffer load_image(void) { - const char *image_entry_path = "\\adasoft\\sophia\\efi.os"; + const char *image_entry_path = "\\adasoft\\sophia\\kjarna.os"; int image_fd; diff --git a/kjarna/efi/start.c b/kjarna/efi/start.c index 4a10541..ebeb67d 100644 --- a/kjarna/efi/start.c +++ b/kjarna/efi/start.c @@ -19,11 +19,14 @@ EFI_STATUS _start(EFI_HANDLE handle, EFI_SYSTEM_TABLE *system_table) struct efi_context app_context = { handle, system_table }; efi_context = &app_context; + efi_write(1, "hello, efi world!\r\n", -1); + if (main(0, nullptr) != 0) { efi_errno = EFI_ABORTED; } + return _exit(efi_errno); } |
