2022-12-23 10:33:23 +00:00
|
|
|
#include "InitRD.h"
|
|
|
|
#include "arch/MMU.h"
|
|
|
|
#include "boot/bootboot.h"
|
|
|
|
|
|
|
|
TarStream g_initrd;
|
|
|
|
extern const BOOTBOOT bootboot;
|
|
|
|
|
|
|
|
void InitRD::initialize()
|
|
|
|
{
|
2023-02-27 12:27:21 +00:00
|
|
|
u64 virtual_initrd_address = MMU::translate_physical_address(bootboot.initrd_ptr);
|
2022-12-23 10:33:23 +00:00
|
|
|
|
|
|
|
g_initrd.initialize((void*)virtual_initrd_address, bootboot.initrd_size);
|
2023-01-02 12:07:29 +00:00
|
|
|
}
|