get rsdp
This commit is contained in:
@@ -3,6 +3,17 @@
|
||||
extern "C" void _start(BootInfo* bootInfo) {
|
||||
KernelInfo kernelInfo = InitializeKernel(bootInfo);
|
||||
PageTableManager* pageTableManager = kernelInfo.pageTableManager;
|
||||
|
||||
GlobalRenderer->Print(to_hstring((uint64_t)bootInfo->rsdp));
|
||||
GlobalRenderer->Next();
|
||||
GlobalRenderer->PutChar(*(uint8_t*)bootInfo->rsdp);
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 1));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 2));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 3));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 4));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 5));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 6));
|
||||
GlobalRenderer->PutChar(*((uint8_t*)bootInfo->rsdp + 7));
|
||||
|
||||
while (true) {
|
||||
ProcessMousePacket();
|
||||
|
||||
@@ -19,6 +19,7 @@ struct BootInfo {
|
||||
EFI_MEMORY_DESCRIPTOR* mMap;
|
||||
uint64_t mMapSize;
|
||||
uint64_t mMapDescriptorSize;
|
||||
void* rsdp;
|
||||
};
|
||||
|
||||
extern uint64_t _KernelStart;
|
||||
|
||||
Reference in New Issue
Block a user