mirror of
https://github.com/justinian/jsix.git
synced 2025-12-11 00:44:31 -08:00
Map is still identity-mapped. I think we need to sort and/or clean up the map before using a higher half address. In-kernel vga output not working yet, but do_the_set_registers() is getting called.
21 lines
383 B
C
21 lines
383 B
C
#pragma once
|
|
#include <efi.h>
|
|
|
|
#ifndef KERNEL_PHYS_ADDRESS
|
|
#define KERNEL_PHYS_ADDRESS 0x100000
|
|
#endif
|
|
|
|
#ifndef KERNEL_VIRT_ADDRESS
|
|
#define KERNEL_VIRT_ADDRESS 0xf00000000
|
|
#endif
|
|
|
|
#ifndef KERNEL_MEMTYPE
|
|
#define KERNEL_MEMTYPE 0x80000000
|
|
#endif
|
|
|
|
#ifndef KERNEL_FILENAME
|
|
#define KERNEL_FILENAME L"kernel.bin"
|
|
#endif
|
|
|
|
EFI_STATUS loader_load_kernel(void **kernel_image, UINT64 *length);
|